diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-03-16 13:48:03 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-03-17 18:50:55 +0900 |
commit | 70164eec0f48a691dd039f55ac897036aa32e5cf (patch) | |
tree | e991dceeb7aa2d730d60ae8ca8ce512fa7517823 /lib/rubygems/commands/specification_command.rb | |
parent | fef0313ec79beab2383e30062803a0f21b198b21 (diff) |
[rubygems/rubygems] util/rubocop -A --only Style/RescueModifier
https://github.com/rubygems/rubygems/commit/b490379eab
Diffstat (limited to 'lib/rubygems/commands/specification_command.rb')
-rw-r--r-- | lib/rubygems/commands/specification_command.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rubygems/commands/specification_command.rb b/lib/rubygems/commands/specification_command.rb index 5cdf5966d2..6025660498 100644 --- a/lib/rubygems/commands/specification_command.rb +++ b/lib/rubygems/commands/specification_command.rb @@ -106,7 +106,11 @@ Specific fields in the specification can be extracted in YAML format: if local? if File.exist? gem - specs << Gem::Package.new(gem).spec rescue nil + begin + specs << Gem::Package.new(gem).spec + rescue + nil + end end if specs.empty? |