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

Marks strings mutable in preparation for enable-frozen-string-literal #57

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

radville
Copy link

In preparation for all strings to be frozen as default, this gets test suite passing with RUBYOPT=--enable-frozen-string-literal

When adding --enable-frozen-string-literal to our codebase, we started to see frozen string errors coming from uuidtools.

These changes remove those errors by unfreezing strings when they should be mutable. They get the test suite to pass with RUBYOPT="--enable-frozen-string-literal", which will be the default in the future.

In preparation for all strings to be frozen as default, this gets test suite passing with RUBYOPT=--enable-frozen-string-literal
spec/uuidtools/uuid_parsing_spec.rb Outdated Show resolved Hide resolved
spec/uuidtools/uuid_parsing_spec.rb Outdated Show resolved Hide resolved
@radville radville force-pushed the radville/frozen-strings branch from ee6f48d to d552d13 Compare August 28, 2024 14:28
@radville radville marked this pull request as ready for review August 28, 2024 14:28
@bquorning
Copy link

cc @sporkmonger in case this PR was overlooked.

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.

3 participants