Skip to content

Ensure compatibility with ruby --enable-frozen-string-literal#21648

Merged
dazuma merged 1 commit intogoogleapis:mainfrom
byroot:fix-frozen-string-warnings
Apr 30, 2025
Merged

Ensure compatibility with ruby --enable-frozen-string-literal#21648
dazuma merged 1 commit intogoogleapis:mainfrom
byroot:fix-frozen-string-warnings

Conversation

@byroot
Copy link
Copy Markdown
Contributor

@byroot byroot commented Feb 22, 2025

Ref: https://bugs.ruby-lang.org/issues/20205

Since Ruby 2.4 it is possible to run ruby with --enable-frozen-string-literal and it's supposed to be the default behavior in the future.

It just require some very minor change for this gem to be compatible.

@byroot byroot requested a review from a team February 22, 2025 10:06
@byroot byroot force-pushed the fix-frozen-string-warnings branch 3 times, most recently from 7e5646b to b26aa46 Compare February 22, 2025 10:12
@wlipa
Copy link
Copy Markdown

wlipa commented Apr 28, 2025

It would be great if this could be released soon. These warnings massively pile up in my logs under ruby 3.4.

Ref: https://bugs.ruby-lang.org/issues/20205

Since Ruby 2.4 it is possible to run ruby with `--enable-frozen-string-literal` and it's supposed to be the default behavior in the future.

It just require some very minor change for this gem to be compatible.
@byroot byroot force-pushed the fix-frozen-string-warnings branch from b26aa46 to 9773609 Compare April 28, 2025 20:35
@byroot
Copy link
Copy Markdown
Contributor Author

byroot commented Apr 28, 2025

@dazuma sorry for the ping, but would you have time to look at this PR? This will become a compatibility issue in the near future.

Copy link
Copy Markdown
Contributor

@dazuma dazuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dazuma dazuma merged commit 951fbb5 into googleapis:main Apr 30, 2025
10 checks passed
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