We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d878cb commit ffb161bCopy full SHA for ffb161b
bundler/lib/bundler/lazy_specification.rb
@@ -96,12 +96,12 @@ def __materialize__(platform)
96
else
97
source.specs.search(self)
98
end
99
- installable_candidates = candidates.select do |spec|
+ best_installable_candidate = candidates.reverse.find do |spec|
100
spec.is_a?(StubSpecification) ||
101
(spec.required_ruby_version.satisfied_by?(Gem.ruby_version) &&
102
spec.required_rubygems_version.satisfied_by?(Gem.rubygems_version))
103
104
- search = installable_candidates.last || candidates.last
+ search = best_installable_candidate || candidates.last
105
search.dependencies = dependencies if search && (search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification))
106
search
107
0 commit comments