From 35e508d13e6d936af7725ccf9ac15deb69e35257 Mon Sep 17 00:00:00 2001 From: David Rodríguez Date: Sat, 23 Jul 2022 20:56:17 +0200 Subject: [rubygems/rubygems] Refactor materialization conditions https://github.com/rubygems/rubygems/commit/08e1554fb6 --- lib/bundler/lazy_specification.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb index ff9444e009..fdf37fd7a4 100644 --- a/lib/bundler/lazy_specification.rb +++ b/lib/bundler/lazy_specification.rb @@ -91,10 +91,10 @@ module Bundler @specification = if source.is_a?(Source::Gemspec) && source.gemspec.name == name source.gemspec.tap {|s| s.source = source } else - search_object = if source.is_a?(Source::Path) + search_object = if source.is_a?(Source::Path) || !ruby_platform_materializes_to_ruby_platform? Dependency.new(name, version) else - ruby_platform_materializes_to_ruby_platform? ? self : Dependency.new(name, version) + self end candidates = source.specs.search(search_object) same_platform_candidates = candidates.select do |spec| -- cgit v1.2.3