[openstreetmap/openstreetmap-website] Add frozen_string_literal comments to ruby files (PR #5932)

Andy Allan notifications at github.com
Wed Sep 17 14:39:35 UTC 2025


gravitystorm left a comment (openstreetmap/openstreetmap-website#5932)

Thanks @tomhughes , merged.

I've been trying to avoid making changes to 800+ files since the whole frozen-string thing was first mentioned in the ruby2.x era, hoping that we could find a different approach. However, I can't see a better alternative now that ruby 3.4 is generating copious warnings. If all our deps were safe (which they aren't) and if there was a straightfoward way to pass the `--enable=frozen_string_literal` option to just affected versions of ruby (i.e. 3.4+) for every possible way a dev might try to run our code (which there isn't), then I would have chosen that instead.

I'm already looking forward to removing these pragmas at some point in due course! Here's hoping that upstream ruby don't make the transition drag out for too much longer.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5932#issuecomment-3303327967
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5932/c3303327967 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250917/3a3e8f0b/attachment.htm>


More information about the rails-dev mailing list