ruby-changes:72779
From: David <ko1@a...>
Date: Tue, 2 Aug 2022 16:10:41 +0900 (JST)
Subject: [ruby-changes:72779] 35e508d13e (master): [rubygems/rubygems] Refactor materialization conditions
https://git.ruby-lang.org/ruby.git/commit/?id=35e508d13e From 35e508d13e6d936af7725ccf9ac15deb69e35257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> 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(-) 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 https://github.com/ruby/ruby/blob/trunk/lib/bundler/lazy_specification.rb#L91 @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.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/