diff options
author | David RodrÃguez <[email protected]> | 2020-03-24 07:39:24 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-24 15:39:24 +0900 |
commit | 96064e6f1ce100a37680dc8f9509f06b3350e9c8 (patch) | |
tree | 798b59f015cb82ee3cd0427f80584032175829ba /lib/rubygems/commands/contents_command.rb | |
parent | 930b012ad96bfb0bd12446b89407120744ef92eb (diff) |
Sync rubygems with current master (#2889)
Notes
Notes:
Merged-By: hsbt <[email protected]>
Diffstat (limited to 'lib/rubygems/commands/contents_command.rb')
-rw-r--r-- | lib/rubygems/commands/contents_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/contents_command.rb b/lib/rubygems/commands/contents_command.rb index 26d6828fe6..989ca5855c 100644 --- a/lib/rubygems/commands/contents_command.rb +++ b/lib/rubygems/commands/contents_command.rb @@ -167,7 +167,7 @@ prefix or only the files that are requireable. end def spec_for(name) - spec = Gem::Specification.find_all_by_name(name, @version).last + spec = Gem::Specification.find_all_by_name(name, @version).first return spec if spec |