1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Require bundler consistently

The `$LOAD_PATH` should be properly setup so that the local version is
used.

https://github.com/rubygems/rubygems/commit/03c0ab4082
This commit is contained in:
David Rodríguez 2021-12-04 12:57:00 +01:00 committed by git
parent b9c426eaea
commit c7232a2a0a

View file

@ -16,12 +16,7 @@ begin
rescue Gem::LoadError
end
if File.exist?(bundler_gemspec)
require_relative "../../bundler/lib/bundler"
else
require "bundler"
end
require "bundler"
require "test/unit"
ENV["JARS_SKIP"] = "true" if Gem.java_platform? # avoid unnecessary and noisy `jar-dependencies` post install hook