Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support frozen string literals #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pat
Copy link

@pat pat commented Mar 29, 2024

This is to avoid deprecation warnings with the forthcoming change in Ruby 3.4 where modifying a string literal will cause a deprecation warning by default.
ruby/ruby@12be40a

Essentially, I'm just marking some of the string literals as explicitly not-frozen, because it's clear they're going to be modified.

I've tested this by running the test suite with RUBYOPT="--enable-frozen-string-literal --debug-frozen-string-literal". However, the last version of codeclimate-test-reporter requires a very outdated version of simplecov which has not been patched to handle frozen string literals - but removing the codeclimate-test-reporter dependency and upgrading simplecov gets all the tests green.

It seems that codeclimate-test-reporter is deprecated anyway.
https://docs.codeclimate.com/docs/configuring-test-coverage

This is to avoid deprecation warnings with the forthcoming change in
Ruby 3.4 where modifying a string literal will cause a deprecation
warning by default.
ruby/ruby@12be40a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant