summaryrefslogtreecommitdiff
path: root/lib/bundler/definition.rb
diff options
context:
space:
mode:
authorMartin Emde <martin.emde@gmail.com>2023-09-03 08:17:16 -0700
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-10-23 13:59:01 +0900
commit6362bfdc337c1929a381734ded417b796f9767bf (patch)
tree3893d14bcc7643ee85d40a5efd5f6914debda99f /lib/bundler/definition.rb
parent92f23a48e3bb7555ca99fc49e15b250a70f9d086 (diff)
[rubygems/rubygems] rename Index#== to Index#subset?
https://github.com/rubygems/rubygems/commit/a96a561087
Diffstat (limited to 'lib/bundler/definition.rb')
-rw-r--r--lib/bundler/definition.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 5c605c47ac..9d13c18d37 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -657,8 +657,7 @@ module Bundler
locked_index = Index.new
locked_index.use(@locked_specs.select {|s| source.can_lock?(s) })
- # order here matters, since Index#== is checking source.specs.include?(locked_index)
- locked_index != source.specs
+ !locked_index.subset?(source.specs)
rescue PathError, GitError => e
Bundler.ui.debug "Assuming that #{source} has not changed since fetching its specs errored (#{e})"
false