Skip to content

Add frozen_string_literal: false to files that modify strings and run tests with frozen strings #640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

davidgm0
Copy link

@davidgm0 davidgm0 commented Jun 4, 2025

Partially addresses #639. It runs tests with frozen strings, but allows modifying strings for those files with frozen_string_literal: false. This should allow using fog-google in projects that use RUBYOPT="--enable-frozen-string-literal" without errors. Next step would involve removing the strings modifications. This is more involved, so I thought that it would make sense to do this first.

@dgmora
Copy link

dgmora commented Jun 4, 2025

I gave this a try and now I am not getting FrozenError: can't modify frozen String: "/"

@davidgm0
Copy link
Author

@Temikus Is this something you could take a look at?

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