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

[rubygems/rubygems] Fix unnecessary $LOAD_PATH modification in standalone script

Due to the `bundler` gem itself being ignored from `$LOAD_PATHS`, a
`nil` value is being introduced here, resulting in the current folder
being added to the `$LOAD_PATH` by the standalone script.

I'm pretty sure this is unintentional.

https://github.com/rubygems/rubygems/commit/df54b07b5e
This commit is contained in:
David Rodríguez 2021-07-27 19:01:04 +02:00 committed by Hiroshi SHIBATA
parent 23c27d2c7b
commit 97c0d3fead
Notes: git 2021-08-31 19:07:24 +09:00

View file

@ -31,7 +31,7 @@ module Bundler
gem_path(path, spec).sub(version_dir, '#{ruby_engine}/#{ruby_version}')
# This is a static string intentionally. It's interpolated at a later time.
end
end.flatten
end.flatten.compact
end
def version_dir