From 23c27d2c7b10431ab806d25a7ea4ff5fc87691d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 30 Jul 2021 11:48:46 +0200 Subject: [PATCH] [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 --- lib/bundler/spec_set.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)