From 77e6e0dcc4f8af6ca776acae18466ba0ce678425 Mon Sep 17 00:00:00 2001 From: Sean Collins Date: Tue, 31 Dec 2024 20:34:25 -0700 Subject: [PATCH] Add Ruby 3.4 support (#258) * Add Ruby 3.4's Hash#inspect symbol change * Add Ruby 3.4 to CI matrix --- .github/workflows/ci.yml | 1 + spec/integration/template_rendering/locals_spec.rb | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19860893..f4ed78d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: fail-fast: false matrix: ruby: + - "3.4" - "3.3" - "3.2" - "3.1" diff --git a/spec/integration/template_rendering/locals_spec.rb b/spec/integration/template_rendering/locals_spec.rb index dd9601b9..840e2c1f 100644 --- a/spec/integration/template_rendering/locals_spec.rb +++ b/spec/integration/template_rendering/locals_spec.rb @@ -12,6 +12,10 @@ expose :text, decorate: false end.new - expect(view.(text: "Hello").to_s).to eq %{Locals: {:text=>"Hello"}} + if RUBY_VERSION < "3.4" + expect(view.call(text: "Hello").to_s).to eq %{Locals: {:text=>"Hello"}} + else + expect(view.call(text: "Hello").to_s).to eq %{Locals: {text: "Hello"}} + end end end