From 9bc9412bea4f3f254558bb8089eff33782e007f5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 15 Sep 2026 18:46:34 +0900 Subject: [PATCH 1/2] Pend the dirs= unresolved deps test under Ruby::Box It asserts on the warning captured from $stderr, which Ruby::Box does not capture yet. Co-Authored-By: Claude Opus 5 --- test/rubygems/test_gem_specification.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index 23bad23b504a..d07e55847107 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -710,6 +710,7 @@ def test_self_attribute_names end def test_self_dirs_equals_with_unresolved_deps + pend_for_ruby_box_stdio_capture a = util_spec "a", 1 b = util_spec "b", 1 install_gem_user a From c577a7ff5b7bee0493bdfecb3c39d04f625371fe Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 15 Sep 2026 19:00:36 +0900 Subject: [PATCH 2/2] Allow a bundler checksum before myrack in the empty CHECKSUMS spec When bundler runs from an installed gem, as under RGV=system, the lockfile also locks a checksum for bundler itself, which sorts before myrack. Co-Authored-By: Claude Opus 5 --- spec/runtime/setup_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb index c17662d05165..729675b64ea8 100644 --- a/spec/runtime/setup_spec.rb +++ b/spec/runtime/setup_spec.rb @@ -270,7 +270,7 @@ def clean_load_path(lp) ruby "require 'bundler'; Bundler.setup" expect(out).to include("Resolving dependencies...") lockfile = File.read(bundled_app_lock) - expect(lockfile).to include("CHECKSUMS\n myrack (1.0.0)\n") + expect(lockfile).to match(/^CHECKSUMS\n(?: .+\n)* myrack \(1\.0\.0\)\n/) ruby "require 'bundler'; Bundler.setup" expect(out).not_to include("Resolving dependencies...")