Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f922d9 commit 08e1554Copy full SHA for 08e1554
bundler/lib/bundler/lazy_specification.rb
@@ -91,10 +91,10 @@ def __materialize__(platform)
91
@specification = if source.is_a?(Source::Gemspec) && source.gemspec.name == name
92
source.gemspec.tap {|s| s.source = source }
93
else
94
- search_object = if source.is_a?(Source::Path)
+ search_object = if source.is_a?(Source::Path) || !ruby_platform_materializes_to_ruby_platform?
95
Dependency.new(name, version)
96
97
- ruby_platform_materializes_to_ruby_platform? ? self : Dependency.new(name, version)
+ self
98
end
99
candidates = source.specs.search(search_object)
100
same_platform_candidates = candidates.select do |spec|
0 commit comments