diff options
Diffstat (limited to 'lib/rubygems/commands/update_command.rb')
-rw-r--r-- | lib/rubygems/commands/update_command.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/commands/update_command.rb b/lib/rubygems/commands/update_command.rb index 45d82e9385..2e6f11949a 100644 --- a/lib/rubygems/commands/update_command.rb +++ b/lib/rubygems/commands/update_command.rb @@ -181,11 +181,11 @@ class Gem::Commands::UpdateCommand < Gem::Command end end - matching_gems = spec_tuples.select do |(name, version, platform),| + matching_gems = spec_tuples.select do |(name, _, platform),| name == l_name and Gem::Platform.match platform end - highest_remote_gem = matching_gems.sort_by do |(name, version),| + highest_remote_gem = matching_gems.sort_by do |(_, version),| version end.last |