[rubygems/rubygems] Revert "Reuse SpecSet#materialize logic"

This reverts commit https://github.com/rubygems/rubygems/commit/a20585b4512d.

https://github.com/rubygems/rubygems/commit/aa9102659e
This commit is contained in:
David Rodríguez 2023-03-23 12:31:07 +01:00 committed by Hiroshi SHIBATA
parent b5f2432917
commit 192a3a6bfb
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -78,8 +78,8 @@ module Bundler
lookup.dup
end
def materialize(deps, platforms = [nil])
materialized = self.for(deps, true, platforms)
def materialize(deps)
materialized = self.for(deps, true)
SpecSet.new(materialized)
end
@ -100,7 +100,9 @@ module Bundler
def incomplete_ruby_specs?(deps)
return false if @specs.empty?
materialize(deps, [Gem::Platform::RUBY]).incomplete_specs.any?
materialized = self.for(deps, true, [Gem::Platform::RUBY])
SpecSet.new(materialized).incomplete_specs.any?
end
def missing_specs