Use space inside block braces everywhere

To make rubygems code style consistent with bundler.
This commit is contained in:
David Rodríguez 2020-06-10 19:46:05 +02:00 committed by Hiroshi SHIBATA
parent ef481c120c
commit 955f1837a1
Notes: git 2020-06-15 21:21:04 +09:00
99 changed files with 469 additions and 469 deletions

View file

@ -322,13 +322,13 @@ class Gem::Dependency
def to_spec
matches = self.to_specs.compact
active = matches.find { |spec| spec.activated? }
active = matches.find {|spec| spec.activated? }
return active if active
return matches.first if prerelease?
# Move prereleases to the end of the list for >= 0 requirements
pre, matches = matches.partition { |spec| spec.version.prerelease? }
pre, matches = matches.partition {|spec| spec.version.prerelease? }
matches += pre if requirement == Gem::Requirement.default
matches.first