From d185f7daa90f0b5429f9ca6c689ccd12ba928e9c Mon Sep 17 00:00:00 2001 From: meganemura Date: Sun, 30 Aug 2026 23:49:31 +0900 Subject: [PATCH 1/2] Add Ruby 3.4 and 4.0 to the CI matrix --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0930434..7ced65a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,8 @@ jobs: - "3.1" - "3.2" - "3.3" + - "3.4" + - "4.0" steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 From 2067589a036b3c3a182d0d3a10f54f2f9b0f15f1 Mon Sep 17 00:00:00 2001 From: meganemura Date: Sun, 30 Aug 2026 23:49:32 +0900 Subject: [PATCH 2/2] Accept both backtrace quote styles in mismatch backtrace test Ruby 3.4+ renders backtrace locations with a plain quote (in 'block...') instead of the older backtick+apostrophe style (in `block...'), which broke this assertion when testing against newer Rubies. --- test/scientist/experiment_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/scientist/experiment_test.rb b/test/scientist/experiment_test.rb index 434e673..9dbb330 100644 --- a/test/scientist/experiment_test.rb +++ b/test/scientist/experiment_test.rb @@ -604,7 +604,7 @@ def @ex.raised(op, exception) assert_equal " \"value\"", lines[2] assert_equal "candidate:", lines[3] assert_equal " #", lines[4] - assert_match %r(test/scientist/experiment_test.rb:\d+:in `block), lines[5] + assert_match %r(test/scientist/experiment_test.rb:\d+:in [`']block), lines[5] end end end