lib/bundler/lazy_specification.rb in bundler-2.3.24 vs lib/bundler/lazy_specification.rb in bundler-2.3.25

- old
+ new

@@ -77,12 +77,10 @@ source.local! candidates = if source.is_a?(Source::Path) || !ruby_platform_materializes_to_ruby_platform? target_platform = ruby_platform_materializes_to_ruby_platform? ? platform : local_platform - source.specs.search(Dependency.new(name, version)).select do |spec| - MatchPlatform.platforms_match?(spec.platform, target_platform) - end + GemHelpers.select_best_platform_match(source.specs.search(Dependency.new(name, version)), target_platform) else source.specs.search(self) end return self if candidates.empty?