aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-07-27 19:01:04 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 19:06:14 +0900
commit97c0d3fead87316c127235f91535068ce60d0fa2 (patch)
tree5c070dabffd21ef4b3724508b7bfb3df863bc250 /lib
parent23c27d2c7b10431ab806d25a7ea4ff5fc87691d3 (diff)
downloadruby-97c0d3fead87316c127235f91535068ce60d0fa2.tar.gz
[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
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/installer/standalone.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/installer/standalone.rb b/lib/bundler/installer/standalone.rb
index f16135cb48..0dd1ef0903 100644
--- a/lib/bundler/installer/standalone.rb
+++ b/lib/bundler/installer/standalone.rb
@@ -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