From a3fcfda7affaf478ebb792bb68f1c30fd48a78c0 Mon Sep 17 00:00:00 2001 From: Wes Rich Date: Thu, 19 Nov 2026 09:15:33 -0500 Subject: [PATCH 1/2] Bump Ruby to 3.4.13 Patches GHSA-34m4-m9fh-gqp5 (Ruby2Shell), a heap overflow in single-byte encoding case conversion reachable through Rails by default. https://verialabs.com/ruby2shell/ Co-Authored-By: Claude Opus 5.5 --- .ruby-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index 2aa5131..618659f 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.4.7 +3.4.13 From cd31e3e542fd8d2a3342ed417caf4f2ba3637203 Mon Sep 17 00:00:00 2001 From: Wes Rich Date: Thu, 19 Nov 2026 10:07:04 -0500 Subject: [PATCH 2/2] Drop Ruby 3.5 from CI and derive timezone offsets in spec 3.5 shipped as 4.0, so setup-ruby resolves it to 3.5.0-preview1, which the runner no longer provides. Quote 4.0 so YAML doesn't read it as 4. The timezone spec hardcoded 34 offsets; ubuntu-latest's newer tzdata yields 33, so build the expected list from ActiveSupport::TimeZone.all instead. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 2 +- spec/marsh_grass_spec.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f612da2..c34b250 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["3.0", 3.1, 3.2, 3.3, 3.4, 3.5, 4.0] + ruby: ["3.0", 3.1, 3.2, 3.3, 3.4, "4.0"] gemfile: [ activesupport-7.1, diff --git a/spec/marsh_grass_spec.rb b/spec/marsh_grass_spec.rb index 2fb68d8..fa03c2c 100644 --- a/spec/marsh_grass_spec.rb +++ b/spec/marsh_grass_spec.rb @@ -180,12 +180,12 @@ def make_time(first, second) timezone_hours = [] after(:all) do # assert that the repetitions were run - expect(timezone_hours.length).to eq 34 - offsets = %w[+00:00 +01:00 +02:00 +03:00 +03:30 +04:00 +04:30 +05:00 +05:30 +05:45 +06:00 +06:30 +07:00 +08:00 +09:00 +09:30 +10:00 +11:00 +12:00 +12:45 +13:00 -01:00 -02:00 -03:00 -03:30 -04:00 -05:00 -06:00 -07:00 -08:00 -09:00 -10:00 -11:00 -12:00] + offsets = ActiveSupport::TimeZone.all.map(&:formatted_offset).uniq.sort + expect(timezone_hours.length).to eq offsets.length expect(timezone_hours.uniq.sort).to eq offsets end - # Should run 34x + # Should run once per distinct offset it 'allows testing for all timezone variations', :time_zones do timezone_hours << Time.zone.formatted_offset end