mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Refactor materialization conditions
https://github.com/rubygems/rubygems/commit/08e1554fb6
This commit is contained in:
parent
ed9bbfd759
commit
35e508d13e
1 changed files with 2 additions and 2 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue