mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Use space inside block braces everywhere
To make rubygems code style consistent with bundler.
This commit is contained in:
parent
ef481c120c
commit
955f1837a1
Notes:
git
2020-06-15 21:21:04 +09:00
99 changed files with 469 additions and 469 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue