summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-07-30 11:48:46 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 19:06:14 +0900
commit23c27d2c7b10431ab806d25a7ea4ff5fc87691d3 (patch)
tree52e1911bfbb5cc582a1c463690fb66e3f2d7a47b
parent0ab160e2e0b959054c28b06f1ada3f015c9f3bc3 (diff)
[rubygems/rubygems] Don't sort materialized specs when not necessary
This should fix a weird flaky spec failure, given that the code producing the error will be no longer run. https://github.com/rubygems/rubygems/commit/a171965409
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4789
-rw-r--r--lib/bundler/spec_set.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb
index 4e252b45a7..7be4fcca87 100644
--- a/lib/bundler/spec_set.rb
+++ b/lib/bundler/spec_set.rb
@@ -92,7 +92,7 @@ module Bundler
end
def missing_specs
- select {|s| s.is_a?(LazySpecification) }
+ @specs.select {|s| s.is_a?(LazySpecification) }
end
def merge(set)