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

Mark mutable strings as mutable #142

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

HParker
Copy link
Contributor

@HParker HParker commented Aug 20, 2024

Running the test suite with RUBYOPT="--enable-frozen-string-literal" simulates Ruby's future behavior having frozen string on by default. This fixed the error that happens with this option enabled by marking two strings which are mutated as mutable with the + operator.

Running the test suite with RUBYOPT="--enable-frozen-string-literal"
simulates Ruby's future behavior having frozen string on by default.
This fixed the error that happens with this option enabled by marking two strings which are mutated as mutable with the + operator.
@grosser grosser merged commit fb6baf1 into grosser:master Aug 21, 2024
7 checks passed
@grosser
Copy link
Owner

grosser commented Aug 21, 2024

ahh 🤦 this is wrong ... they are consts and should already be frozen

@grosser
Copy link
Owner

grosser commented Aug 21, 2024

bug is that - lib/fast_gettext/vendor/**/* is excluded from rubocop :/

@grosser
Copy link
Owner

grosser commented Aug 21, 2024

... let's at least run CI with frozen strings so this does not happen again #143

@grosser
Copy link
Owner

grosser commented Aug 21, 2024

3.1.0

@HParker
Copy link
Contributor Author

HParker commented Aug 21, 2024

Thanks! ❤️

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