[前][次][番号順一覧][スレッド一覧]

ruby-changes:67407

From: David <ko1@a...>
Date: Tue, 31 Aug 2021 19:06:48 +0900 (JST)
Subject: [ruby-changes:67407] 97c0d3fead (master): [rubygems/rubygems] Fix unnecessary $LOAD_PATH modification in standalone script

https://git.ruby-lang.org/ruby.git/commit/?id=97c0d3fead

From 97c0d3fead87316c127235f91535068ce60d0fa2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Tue, 27 Jul 2021 19:01:04 +0200
Subject: [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
---
 lib/bundler/installer/standalone.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bundler/installer/standalone.rb b/lib/bundler/installer/standalone.rb
index f16135c..0dd1ef0 100644
--- a/lib/bundler/installer/standalone.rb
+++ b/lib/bundler/installer/standalone.rb
@@ -31,7 +31,7 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/installer/standalone.rb#L31
           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
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]