diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-03-22 13:26:37 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-03-23 17:18:49 +0900 |
commit | 0eef33e113e61f0d6efcf47f93602bd9d68f68d2 () | |
tree | 1305402633da67630cf1ebfebbb6a630420108be /lib/rubygems/installer.rb | |
parent | bec069b0cae3934bb2caee3aad7fbf587ab95937 (diff) |
[rubygems/rubygems] util/rubocop -A --only Style/Next
https://.com/rubygems/rubygems/commit/e5868e92f7
Notes: Merged: https://.com/ruby/ruby/pull/7582
-rw-r--r-- | lib/rubygems/installer.rb | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -354,25 +354,23 @@ 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+)/ - message = "pre-install hook#{location} failed for #{spec.full_name}" - raise Gem::InstallError, message - end end end def run_post_build_hooks # :nodoc: Gem.post_build_hooks.each do |hook| - if hook.call(self) == false - FileUtils.rm_rf gem_dir - location = " at #{$1}" if hook.inspect =~ /[ @](.*:\d+)/ - message = "post-build hook#{location} failed for #{spec.full_name}" - raise Gem::InstallError, message - end end end |