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

Fix cause of ruby 3.4.0-rc1 frozen String deprecation warnings #35

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

jamesds
Copy link
Contributor

@jamesds jamesds commented Dec 13, 2024

Appreciate your work on this gem :)

Currently, testing a project using this gem on ruby 3.4.0-rc1, or running this gem's test suite, displays the following deprecation warning:

active_flag-2.0.2/lib/active_flag/value.rb:51: warning: warning: string returned by :something?.to_s will be frozen in the future

Where :something? is the method name being handled by Value#method_missing

This is a simple fix, to use #chomp instead of #chomp! to fix the behaviour in the warning, and make this gem one step closer to being compatible with Ruby 3.5 🎉

Any issues let me know!

@kenn kenn merged commit 25143bc into kenn:master Dec 13, 2024
5 checks passed
@kenn
Copy link
Owner

kenn commented Dec 13, 2024

Thanks, released as v2.0.3! 🎉

@jamesds
Copy link
Contributor Author

jamesds commented Dec 13, 2024

Quick work - thank you very much @kenn!

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.

2 participants