From 91b9bd62347dbb0971904593a11320d64076a1ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 25 Jul 2022 11:14:06 +0200 Subject: [PATCH] [rubygems/rubygems] This should go through the standard source search logic https://github.com/rubygems/rubygems/commit/087e3e4e3b --- lib/bundler/lazy_specification.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb index fdf37fd7a4..3d704a7f12 100644 --- a/lib/bundler/lazy_specification.rb +++ b/lib/bundler/lazy_specification.rb @@ -88,9 +88,7 @@ module Bundler end def __materialize__(platform) - @specification = if source.is_a?(Source::Gemspec) && source.gemspec.name == name - source.gemspec.tap {|s| s.source = source } - else + @specification = begin search_object = if source.is_a?(Source::Path) || !ruby_platform_materializes_to_ruby_platform? Dependency.new(name, version) else