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

Call .dup on string before modifying it in-place. #78

Closed

Conversation

gstokkink
Copy link

Prevents Ruby 3.4 frozen string warnings.

Fixes #76.

Prevents Ruby 3.4 frozen string warnings.

Fixes rmm5t#76.
@gstokkink
Copy link
Author

@rmm5t I didn't add an explicit test, as I guess you don't have CI set up to run different Ruby versions. Locally the test suite now runs without warnings for Ruby 3.4.

@marcelolx
Copy link

Tested it in our app and this fixes the warnings, thanks @gstokkink

@rmm5t
Copy link
Owner

rmm5t commented Feb 12, 2025

I guess you don't have CI set up to run different Ruby versions

CI is setup to run different ruby versions.

@rmm5t
Copy link
Owner

rmm5t commented Feb 24, 2025

Thank you; however, favoring #64 instead.

@rmm5t rmm5t closed this Feb 24, 2025
@gstokkink gstokkink deleted the ruby-3-4-compatibility branch February 24, 2025 06:29
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.

Frozen String Literal warnings in Ruby 3.4
3 participants