Skip to content
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

dumper: Support frozen strings #134

Merged
merged 1 commit into from
Jan 19, 2022
Merged

dumper: Support frozen strings #134

merged 1 commit into from
Jan 19, 2022

Conversation

bastelfreak
Copy link
Contributor

In Ruby 2.7 and newer, frozen strings became a thing. I maintain a
Puppet module where the dumper.rb got vendored in and frozen strings are
now enbled in the module. With this patch the dumper.rb supports frozen
strings.

@bastelfreak
Copy link
Contributor Author

please let me know if you want me to add the frozen string comment to the header of the file.

lib/toml-rb/dumper.rb Outdated Show resolved Hide resolved
@emancu
Copy link
Owner

emancu commented Jan 19, 2022

Hi @bastelfreak thanks for your contribution!
Would you mind adding the forzen string comment too? That could be helpful as well.

In Ruby 2.7 and newer, frozen strings became a thing. I maintain a
Puppet module where the dumper.rb got vendored in and frozen strings are
now enbled in the module. With this patch the dumper.rb supports frozen
strings.
@bastelfreak
Copy link
Contributor Author

@emancu thanks for the feedback, should be fine now.

@emancu emancu merged commit 7204a77 into emancu:master Jan 19, 2022
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.

3 participants