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

Don't assume strings are mutable #56

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

Conversation

chocolateboy
Copy link

Avoid a FrozenError when strings are frozen globally, e.g. via --enable=frozen-string-literal.

@NorseGaud
Copy link
Collaborator

Hi @chocolateboy , can you write a test for this?

@chocolateboy
Copy link
Author

I've tested it manually. You can test it automatically by adding:

# frozen_string_literal: true

to the start of every ruby file (which is recommended anyway). That way all specs test it.

@NorseGaud
Copy link
Collaborator

Sorry, I don't have a ruby environment anymore and really can't merge anything that doesn't have a test. Maybe one of the other maintainers of this repo can take a look. I don't think there are any other maintainers that are active for this repo :(

@NorseGaud NorseGaud added the bug label Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants