1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] This should go through the standard source search logic

https://github.com/rubygems/rubygems/commit/087e3e4e3b
This commit is contained in:
David Rodríguez 2022-07-25 11:14:06 +02:00 committed by git
parent 35e508d13e
commit 91b9bd6234

View file

@ -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