Skip to content

Commit 5d079f4

Browse files
committed
Add RUBYOPT='--enable=frozen-string-literal --debug=frozen-string-literal' in CI
1 parent a80d2d4 commit 5d079f4

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/edge.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
bundler-cache: true
2828

2929
- name: Run tests
30-
run: bundle exec rake spec
30+
run: "RUBYOPT='--enable=frozen-string-literal --debug=frozen-string-literal' bundle exec rspec"
3131

3232
- name: Coveralls
3333
uses: coverallsapp/github-action@v2

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
bundler-cache: true
8585

8686
- name: Run Tests (${{ matrix.specs }})
87-
run: bundle exec rspec ${{ matrix.specs }}
87+
run: "RUBYOPT='--enable=frozen-string-literal --debug=frozen-string-literal' bundle exec rspec ${{ matrix.specs }}"
8888

8989
- name: Coveralls
9090
uses: coverallsapp/github-action@v2

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* [#2549](https://github.com/ruby-grape/grape/pull/2549): Delegate cookies management to `Grape::Request` - [@ericproulx](https://github.com/ericproulx).
1212
* [#2554](https://github.com/ruby-grape/grape/pull/2554): Remove `Grape::Http::Headers` and `Grape::Util::Lazy::Object` - [@ericproulx](https://github.com/ericproulx).
1313
* [#2556](https://github.com/ruby-grape/grape/pull/2556): Remove unused `Grape::Request::DEFAULT_PARAMS_BUILDER` constant - [@eriklovmo](https://github.com/eriklovmo).
14+
* [#2558](https://github.com/ruby-grape/grape/pull/2558): Add Ruby's option `enable_frozen_string_literal` in CI - [@ericproulx](https://github.com/ericproulx).
1415
* Your contribution here.
1516

1617
#### Fixes

0 commit comments

Comments
 (0)