зеркало из https://github.com/github/ruby.git
Support the current stable version of Ruby like 2.5 and 2.6.
This commit is contained in:
Родитель
221ba9b66c
Коммит
7664b5cb65
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче