mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
5487e76374
commit
8c98f7be57
1 changed files with 2 additions and 3 deletions
|
@ -96,12 +96,11 @@ module Bundler
|
|||
else
|
||||
source.specs.search(self)
|
||||
end
|
||||
best_installable_candidate = candidates.reverse.find do |spec|
|
||||
search = candidates.reverse.find do |spec|
|
||||
spec.is_a?(StubSpecification) ||
|
||||
(spec.required_ruby_version.satisfied_by?(Gem.ruby_version) &&
|
||||
spec.required_rubygems_version.satisfied_by?(Gem.rubygems_version))
|
||||
end
|
||||
search = best_installable_candidate || candidates.last
|
||||
end || candidates.last
|
||||
search.dependencies = dependencies if search && (search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification))
|
||||
search
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue