Skip to content

Conversation

@pat
Copy link
Contributor

@pat pat commented Apr 27, 2024

Given MRI 3.4 will have a warning whenever frozen string literals are edited, this PR fixes up the two situations where I expect that to happen.

I've tried to modify the CI workflows to have frozen string literals enforced, but the relevant RUBYOPT flags (--enable-frozen-string-literal --debug-frozen-string-literal) can't be used in old Ruby versions (<= 2.3) and so setting it globally is not an option - though it did turn up the frozen string in the client spec.

Annoyingly, setting RUBYOPT conditionally (like is done with other variables) doesn't work either - I think it gets stuck somewhere within rake-compiler, but given that it works in modern Ruby versions when the env is set globally, this inconsistency is especially odd.

Anyway: I figure it's worth having this PR around for now, and the CI wrangling can be sorted another time.

In particular, the extconf.rb build script. But there's also one test
as well.
@sodabrew sodabrew merged commit 450d070 into brianmario:master Sep 5, 2024
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