Skip to content

Commit

Permalink
Reuse SpecSet#materialize logic
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and hsbt committed Mar 23, 2023
1 parent ebebc90 commit a757e21
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/bundler/spec_set.rb
Expand Up @@ -78,8 +78,8 @@ def to_hash
lookup.dup
end

def materialize(deps)
materialized = self.for(deps, true)
def materialize(deps, platforms = [nil])
materialized = self.for(deps, true, platforms)

SpecSet.new(materialized)
end
Expand All @@ -100,9 +100,7 @@ def materialized_for_all_platforms
def incomplete_ruby_specs?(deps)
return false if @specs.empty?

materialized = self.for(deps, true, [Gem::Platform::RUBY])

SpecSet.new(materialized).incomplete_specs.any?
materialize(deps, [Gem::Platform::RUBY]).incomplete_specs.any?
end

def missing_specs
Expand Down

0 comments on commit a757e21

Please sign in to comment.