From 16bdfa1b2a6b4cb40417e7673ad9eaa80664e4f0 Mon Sep 17 00:00:00 2001 From: Schneems Date: Fri, 26 Dec 2025 12:21:51 -0600 Subject: [ruby/rubygems] Split logic to two lines https://github.com/ruby/rubygems/commit/5a6eca4cf9 --- lib/bundler/runtime.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb index 5eb827dcb2..f632ce9144 100644 --- a/lib/bundler/runtime.rb +++ b/lib/bundler/runtime.rb @@ -174,7 +174,8 @@ module Bundler spec_cache_paths = [] spec_gemspec_paths = [] spec_extension_paths = [] - Bundler.rubygems.add_default_gems_to(specs).values.each do |spec| + specs_to_keep = Bundler.rubygems.add_default_gems_to(specs).values + specs_to_keep.each do |spec| spec_gem_paths << spec.full_gem_path # need to check here in case gems are nested like for the rails git repo md = %r{(.+bundler/gems/.+-[a-f0-9]{7,12})}.match(spec.full_gem_path) -- cgit v1.2.3