diff options
Diffstat (limited to 'lib/rubygems/source')
-rw-r--r-- | lib/rubygems/source/local.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/source/local.rb b/lib/rubygems/source/local.rb index 875e992d85..15700a0df2 100644 --- a/lib/rubygems/source/local.rb +++ b/lib/rubygems/source/local.rb @@ -61,7 +61,7 @@ class Gem::Source::Local < Gem::Source when :latest tup = pkg.spec.name_tuple - cur = names.find { |x| x.name == tup.name } + cur = names.find {|x| x.name == tup.name } if !cur names << tup elsif cur.version < tup.version @@ -98,7 +98,7 @@ class Gem::Source::Local < Gem::Source end end - found.max_by { |s| s.version } + found.max_by {|s| s.version } end def fetch_spec(name) # :nodoc: |