summaryrefslogtreecommitdiff
path: root/lib/rubygems/source
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2020-06-10 19:46:05 +0200
committerHiroshi SHIBATA <[email protected]>2020-06-15 21:20:37 +0900
commit955f1837a180d8936f90ab6cf039ccb8f751be72 ()
tree0d48749501febfccefda3b1376511c421d4118e4 /lib/rubygems/source
parentef481c120c55bf0351a586739f9b5d704f3f7a7d (diff)
Use space inside block braces everywhere
To make rubygems code style consistent with bundler.
Notes: Merged: https://.com/ruby/ruby/pull/3229
-rw-r--r--lib/rubygems/source/local.rb4
1 files changed, 2 insertions, 2 deletions
@@ -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 }
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 }
end
def fetch_spec(name) # :nodoc: