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

Use a mutable string to be used a string buffer for Ruby 3.4 #32

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

Conversation

bibstha
Copy link

@bibstha bibstha commented Jan 13, 2025

Ruby is slowly moving towards frozen string literals by default.
This is from Ruby 3.4.0 release

String literals in files without a frozen_string_literal comment now emit a deprecation warning when they are mutated. These warnings can be enabled with -W:deprecated or by setting Warning[:deprecated] = true. To disable this change, you can run Ruby with the --disable-frozen-string-literal command line argument. [Feature #20205]

Minitest has deprecation warnings enabled by default and therefore it is quite noisy without this fix.

With this, the code should be compatible with newer versions of Ruby as well as backward compatible.

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