diff options
Diffstat (limited to 'lib/rubygems/dependency.rb')
-rw-r--r-- | lib/rubygems/dependency.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/dependency.rb b/lib/rubygems/dependency.rb index 0c58815c85..be0bf24700 100644 --- a/lib/rubygems/dependency.rb +++ b/lib/rubygems/dependency.rb @@ -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 |