Skip to content

Conversation

@mockdeep
Copy link

What

This removes the monkey patch to the VERSION string, and updates Builder to not need it.

Why

Ruby 3.4 gives a warning about frozen strings, so adding the <=> method to the VERSION string is verboten. Looking at Builder, it seems like the version could never be <= "0.1.3" going forward, so the condition no longer seems necessary.

We could alternatively add some different version checking logic, but I thought I'd go the route of deleting code if it's not used. Happy to make adjustments if preferred.

**What**

This removes the monkey patch to the `VERSION` string, and updates
`Builder` to not need it.

**Why**

Ruby 3.4 gives a warning about frozen strings, so adding the `<=>`
method to the `VERSION` string is verboten. Looking at `Builder`, it
seems like the version could *never* be `<= "0.1.3"` going forward, so
the condition no longer seems necessary.

We could alternatively add some different version checking logic, but I
thought I'd go the route of deleting code if it's not used. Happy to
make adjustments if preferred.
@manuelmeurer
Copy link

Could we merge this to get rid of the warning? 🙏

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