aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/installer.rb
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-08-14 16:30:30 +0900
committerKoichi Sasada <ko1@atdot.net>2019-08-14 16:30:30 +0900
commit1cffd5b4f0b88669bc2daff025ab0b1650961a43 (patch)
tree0cb79ab27134cd259a168626b1c08ac205d4d998 /lib/rubygems/installer.rb
parent0971460e3113ea7dc3fd2a4ae80dd5947fd2dc55 (diff)
downloadruby-1cffd5b4f0b88669bc2daff025ab0b1650961a43.tar.gz
fix last commit.
Diffstat (limited to 'lib/rubygems/installer.rb')
-rw-r--r--lib/rubygems/installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index 554cfc4509..b5e4635f39 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -357,7 +357,7 @@ class Gem::Installer
def run_pre_install_hooks # :nodoc:
Gem.pre_install_hooks.each do |hook|
if hook.call(self) == false
- location = " at #{$1}" if hook.inspect =~ /@(.*:\d+)/
+ location = " at #{$1}" if hook.inspect =~ / (.*:\d+)/
message = "pre-install hook#{location} failed for #{spec.full_name}"
raise Gem::InstallError, message