1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool
David Rodríguez 5a384e2c08 Fix some bundler specs (#2380)
* These seem to consistenly pass already

* Show actual command when running `make test-bundler`

Current the setup command that installs the necessary gems for testing
bundler was printed, but not the actual command that runs the tests.
That was a bit confusing.

* Borrow trick from setproctitle specs

* A title that long doesn't get set sometimes

No idea why, but the test doesn't need that the title is that long.

* Fix most gem helper spec ruby-core failures

* Fix the rest of the gem helper failures

* Fix version spec by improving the assertion

* Remove unnecessary `BUNDLE_RUBY` environment var

We can use `RUBY` when necessary, and `BUNDLE_RUBY` is not a good name
because bundler considers `BUNDLE_*` variables as settings.

* Rename `BUNDLE_GEM` to `GEM_COMMAND`

This is more descriptive I think, and also friendlier for bundler
because `BUNDLE_` env variables are interpreted by bundler as settings,
and this is not a bundler setting.

This fixes one bundler spec failure in config specs against ruby-core.

* Fix quality spec when run in core

Use the proper path helper.

* Fix dummy lib builder to never load default gems

If a dummy library is named as a default gem, when requiring the library
from its executable, the default gem would be loaded when running from
core, because in core all default gems share path with bundler, and thus
they are always in the $LOAD_PATH. We fix the issue by loading lib
relatively inside dummy lib executables.

* More exact assertions

Sometimes I have the problem that I do some "print debugging" inside
specs, and suddently the spec passes. This happens when the assertion is
too relaxed, and the things I print make it match, specially when they
are simple strings like "1.0" than can be easily be part of gem paths
that I print for debugging.

I fix this by making a more exact assertion.

* Detect the correct shebang when ENV["RUBY"] is set

* Relax assertion

So that the spec passes even if another paths containing "ext" are in
the load path. This works to fix a ruby-core issue, but it's a better
assertion in general. We just want to know that the extension path was
added.

* Use folder structure independent path helper

It should fix this spec for ruby-core.

* Fix the last failing spec on ruby-core

* Skip `bundle open <default_gem>` spec when no default gems
2019-08-20 09:46:31 +09:00
..
lib Gem::ConfigMap is deprecated now 2019-08-18 13:25:31 +09:00
m4 Remove IA64 support. 2019-06-19 23:30:04 +12:00
ruby_vm MJIT Support for getblockparamproxy 2019-07-14 18:04:19 +09:00
test Get rid of failures about coverage 2019-07-25 20:57:32 +09:00
asm_parse.rb
bisect.sh Recent commits of trunk do not have svn revision 2019-05-07 22:53:45 +09:00
build-transcode
checksum.rb Move vpath.rb into tool library direcotry. 2019-07-15 13:16:16 +09:00
colors Move to tool/lib from test/lib. 2019-07-02 07:59:54 +09:00
darwin-cc
downloader.rb Revert "Fix building with 1.8 BASERUBY" 2019-05-29 18:03:21 -07:00
enc-emoji-citrus-gen.rb Put jisx0208.rb to under the library directory. 2019-07-15 11:16:29 +09:00
enc-emoji4unicode.rb
enc-unicode.rb
eval.rb
expand-config.rb
extlibs.rb Put colorize to library directory. 2019-07-15 09:40:22 +09:00
fake.rb
fetch-bundled_gems.rb
file2lastrev.rb Put vcs .rb to under the lib direcotory. 2019-07-15 09:40:22 +09:00
format-release Fix release post output for tool/format-release 2019-08-04 08:58:20 +09:00
gem-unpack.rb
gen_dummy_probes.rb
gen_ruby_tapset.rb
generic_erb.rb Removed needless LOAD_PATH modification. 2019-07-15 13:44:37 +09:00
git-refresh
gperf.sed
id2token.rb Removed needless LOAD_PATH modification. 2019-07-15 13:44:37 +09:00
ifchange
insns2vm.rb
install-sh
leaked-globals Put colorize to library directory. 2019-07-15 09:40:22 +09:00
make-snapshot Put colorize to library directory. 2019-07-15 09:40:22 +09:00
make_hgraph.rb
mdoc2man.rb
merger.rb Omit version.h when merging 2019-08-19 15:37:28 +09:00
mjit_archflag.sh
mk_call_iseq_optimized.rb add debug counters to count call cache fastpath. 2019-03-22 07:57:26 +00:00
mkconfig.rb Removed unused variable 2019-06-28 12:39:14 +09:00
mkrunnable.rb
node_name.rb
parse.rb
prereq.status Substitute autoconf variables by prereq.status 2019-07-02 09:44:37 +09:00
probes_to_wiki.rb
pure_parser.rb Refine error message 2019-08-03 14:20:36 +09:00
rbinstall.rb Insert a newline before =end 2019-07-15 09:28:44 +09:00
rbuninstall.rb
redmine-backporter.rb tool/redmine-backporter.rb: Change redmine git revisions URL path. 2019-06-16 11:59:59 +09:00
release.sh
rmdirs
run-gcov.rb
run-lcov.rb
runruby.rb Fix some bundler specs (#2380) 2019-08-20 09:46:31 +09:00
strip-rdoc.rb
sync_default_gems.rb Use master branch instead of trunk. 2019-08-18 18:08:59 +09:00
test-coverage.rb
transcode-tblgen.rb
transform_mjit_header.rb
travis_retry.sh We did not have tool/ before checkout 2019-08-12 14:37:26 +09:00
update-deps
vtlh.rb
ytab.sed Propagate parser_params to rb_yytnamerr 2019-05-10 22:02:54 +09:00