lib/bundler/lazy_specification.rb in bundler-2.3.13 vs lib/bundler/lazy_specification.rb in bundler-2.3.14
- old
+ new
@@ -92,10 +92,10 @@
installable_candidates = same_platform_candidates.select 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 = installable_candidates.last
+ search = installable_candidates.last || same_platform_candidates.last
search.dependencies = dependencies if search && (search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification))
search
end
end