summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-03-16 20:15:52 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-23 17:18:49 +0900
commita757e21bc0ab1a9595ddad38e92f3941caf84d98 (patch)
tree558aec495c46aa15b54a1126fbf821ae757053e1 /lib
parentebebc90ec297c945cdf94c90f8db85dd7ddbcb7b (diff)
Reuse `SpecSet#materialize` logic
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7582
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/spec_set.rb8
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