summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-10-30 00:20:28 +0200
committergit <svn-admin@ruby-lang.org>2021-11-03 17:42:39 +0900
commitc5224c71aeba147a111131c16688a208c161ee75 (patch)
tree050056345107cc7bfa6093bbf5202fb4a9875323 /lib/rubygems
parent9fc7ea64a1deb1e342a54607d16b5cf7eb9ec351 (diff)
[rubygems/rubygems] Fix `gem install` vs `gem fetch` inconsistency
https://github.com/rubygems/rubygems/commit/b3e985799e
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/commands/fetch_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/fetch_command.rb b/lib/rubygems/commands/fetch_command.rb
index 619f56a5da..373851643d 100644
--- a/lib/rubygems/commands/fetch_command.rb
+++ b/lib/rubygems/commands/fetch_command.rb
@@ -60,7 +60,7 @@ then repackaging it.
specs_and_sources = filtered unless filtered.empty?
end
- spec, source = specs_and_sources.max_by {|s,| s.version }
+ spec, source = specs_and_sources.max_by {|s,| s }
if spec.nil?
show_lookup_failure gem_name, version, errors, options[:domain]