summaryrefslogtreecommitdiff
path: root/lib/bundler/spec_set.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-08-02 17:45:28 +0200
committergit <svn-admin@ruby-lang.org>2022-08-05 16:36:42 +0900
commit5a9db23734e76c2915f1ccb8f87e992bc831598b (patch)
tree7ffe7a2bec90b4c77e6e35d2e1b12feb2f13f56b /lib/bundler/spec_set.rb
parent73f0573cb3be4e1c7e315ee61833f3c9c3252be9 (diff)
[rubygems/rubygems] Automatically remove "ruby" from lockfile if incomplete
https://github.com/rubygems/rubygems/commit/69d0b4e10b
Diffstat (limited to 'lib/bundler/spec_set.rb')
-rw-r--r--lib/bundler/spec_set.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb
index 735cdac126..d7239f5c8c 100644
--- a/lib/bundler/spec_set.rb
+++ b/lib/bundler/spec_set.rb
@@ -91,6 +91,10 @@ module Bundler
SpecSet.new(materialized)
end
+ def incomplete_ruby_specs?(deps)
+ self.class.new(self.for(deps, true, [Gem::Platform::RUBY])).incomplete_specs.any?
+ end
+
def missing_specs
@specs.select {|s| s.is_a?(LazySpecification) }
end