summaryrefslogtreecommitdiff
path: root/lib/bundler/spec_set.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-03-23 12:31:07 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-06 13:07:16 +0900
commit192a3a6bfb6b69d1673ffa918bc78184de871c65 (patch)
treea5f59239b4c93fd0abb76440a9c4fa7864046150 /lib/bundler/spec_set.rb
parentb5f243291742886a1280277c2ff954177b4f50a7 (diff)
[rubygems/rubygems] Revert "Reuse `SpecSet#materialize` logic"
This reverts commit https://github.com/rubygems/rubygems/commit/a20585b4512d. https://github.com/rubygems/rubygems/commit/aa9102659e
Diffstat (limited to 'lib/bundler/spec_set.rb')
-rw-r--r--lib/bundler/spec_set.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb
index c4bbb84877..2361fc356c 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, 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