Skip to content

Commit

Permalink
Add Ruby 3.4 support (#258)
Browse files Browse the repository at this point in the history
* Add Ruby 3.4's Hash#inspect symbol change

* Add Ruby 3.4 to CI matrix
  • Loading branch information
cllns authored Jan 1, 2025
1 parent 7c8fe93 commit 77e6e0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
fail-fast: false
matrix:
ruby:
- "3.4"
- "3.3"
- "3.2"
- "3.1"
Expand Down
6 changes: 5 additions & 1 deletion spec/integration/template_rendering/locals_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 77e6e0d

Please sign in to comment.