Skip to content

Commit e5d9b4e

Browse files
committed
Run spec on ruby-head for the effect of frozen string literal
See also https://bugs.ruby-lang.org/issues/20205 Itamae has no frozen_string_literal magic comments. In the future, Ruby will enable frozen string literal by default. This commit checks its effect for itamae, by recurring GitHub actions.
1 parent 151185c commit e5d9b4e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ jobs:
5959
rubyopt: "--yjit"
6060
- ruby: "3.3"
6161
rubyopt: "--yjit"
62+
include:
63+
# ruby-debug is the same as ruby-head but with assertions enabled (-DRUBY_DEBUG=1)
64+
- ruby: "debug"
65+
rubyopt: "--jit" # See also https://bugs.ruby-lang.org/issues/20205 (enable frozen string literal as default)
66+
- ruby: "debug"
67+
rubyopt: "--jit --disable=frozen-string-literal"
6268

6369
uses: ./.github/workflows/test_main.yml
6470
with:

itamae.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
3232
spec.add_runtime_dependency "hashie"
3333
spec.add_runtime_dependency "ansi"
3434
spec.add_runtime_dependency "schash", "~> 0.1.0"
35+
spec.add_runtime_dependency "base64"
3536

3637
spec.add_development_dependency "bundler", ">= 1.3"
3738
spec.add_development_dependency "rake"

0 commit comments

Comments
 (0)