Skip to content

Conversation

@Mr0grog
Copy link
Member

@Mr0grog Mr0grog commented Nov 3, 2025

This solves a couple random warnings that have been floating around for a while. None are really a huge deal AFAICT:

  • Add pstore to the bundle. TBH I think this warning would otherwise just go away when pstore stops being bundled with Ruby and yaml still is (I assume the bundled yaml gem will have to stop referencing it? idunno what the plan here is), but I'm tired of seeing this warning.

  • Opt-in to frozen string literals in a test that was triggering warnings about them. Nothing about the test is really changing, though. As far as I can tell, Rails test requests pass string values for POST bodies directly on to Rack's mock_request, which then tries to set the string's encoding, which causes the warning. I guess it does not do so if the string is frozen, though.

    Really I should probably just add this frozen_string_literal directive to every Ruby file…

This solves a few random warnings that have been floating around for a while. Not really a huge deal:
- Add `pstore` to the bundle. TBH I think this warning would otherwise just go away when pstore stops being bundled with Ruby but yaml still is, but I'm tired of seeing this warning.
- Opt-in to frozen string literals in a test that was triggering warnings about them. Nothing about the test is really changing, though. As far as I can tell, Rails test requests pass string values for POST bodies directly on to Rack's mock request, which then tries to set the string's encoding, which causes the warning. I guess it does not do so if the string is frozen, though.
Should have done this long ago!
@Mr0grog
Copy link
Member Author

Mr0grog commented Nov 13, 2025

Really I should probably just add this frozen_string_literal directive to every Ruby file…

Went ahead and actually did this. Long overdue. THE FUTURE IS HERE!

@Mr0grog Mr0grog merged commit 9b63f5a into main Nov 13, 2025
5 checks passed
@Mr0grog Mr0grog deleted the unwarnify branch November 13, 2025 01:44
@github-project-automation github-project-automation bot moved this from Inbox to Done in Web Monitoring Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants