Skip to content

Don't assume strings are mutable#56

Open
chocolateboy wants to merge 1 commit intogreatseth:masterfrom
chocolateboy:immutable-strings
Open

Don't assume strings are mutable#56
chocolateboy wants to merge 1 commit intogreatseth:masterfrom
chocolateboy:immutable-strings

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