aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/installer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/installer.rb')
-rw-r--r--lib/rubygems/installer.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index 85358e0d1a..a88d393336 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -216,7 +216,8 @@ class Gem::Installer
existing = io.read.slice(%r{
^(
gem \s |
- load \s Gem\.bin_path\(
+ load \s Gem\.bin_path\( |
+ load \s Gem\.activate_bin_path\(
)
(['"])(.*?)(\2),
}x, 3)
@@ -719,7 +720,7 @@ if ARGV.first
end
end
-load Gem.bin_path('#{spec.name}', '#{bin_file_name}', version)
+load Gem.activate_bin_path('#{spec.name}', '#{bin_file_name}', version)
TEXT
end