diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/spec_set.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb index 2361fc356c..c4bbb84877 100644 --- a/lib/bundler/spec_set.rb +++ b/lib/bundler/spec_set.rb @@ -78,8 +78,8 @@ module Bundler 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 @@ -100,9 +100,7 @@ module Bundler 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 |