diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-08-14 16:25:15 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-14 16:25:15 +0900 |
commit | 182a408c2c4113eb316c2a87e35880144afb4498 (patch) | |
tree | a4b62e5d846fb1317522a022c29411b8b1b2ea6d /lib/rubygems/installer.rb | |
parent | 0623e2b7cc621b1733a760b72af246b06c30cf96 (diff) | |
download | ruby-182a408c2c4113eb316c2a87e35880144afb4498.tar.gz |
change Proc#to_s format ('@...' -> ' ...') (#2362)
Now Proc#to_s returns
"#<Proc:0x00000237a0f5f170@t.rb:1>".
However, it is convenient to select a file name by (double-)clicking
on some terminals by separating ' ' instead of '@' like
"#<Proc:0x00000237a0f5f170 t.rb:1>"
[Feature #16101]
Diffstat (limited to 'lib/rubygems/installer.rb')
-rw-r--r-- | lib/rubygems/installer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb index b230ce7bed..554cfc4509 100644 --- a/lib/rubygems/installer.rb +++ b/lib/rubygems/installer.rb @@ -370,7 +370,7 @@ class Gem::Installer if hook.call(self) == false FileUtils.rm_rf gem_dir - location = " at #{$1}" if hook.inspect =~ /@(.*:\d+)/ + location = " at #{$1}" if hook.inspect =~ / (.*:\d+)/ message = "post-build hook#{location} failed for #{spec.full_name}" raise Gem::InstallError, message |