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

Fix frozen string literal warnings on Ruby 3.4 #65

Merged
merged 2 commits into from
Dec 26, 2024
Merged

Conversation

mattbrictson
Copy link
Collaborator

@mattbrictson mattbrictson commented Dec 25, 2024

On the recently-released Ruby 3.4, the following warning is printed when using the plist gem:

plist-3.7.1/lib/plist/parser.rb:60: warning: literal string will be frozen in the future (run with --debug-frozen-string-literal for more information)

Fix by using "".dup to ensure the string literal is not frozen by default in future Ruby versions.

@mattbrictson mattbrictson merged commit 456efb9 into master Dec 26, 2024
16 checks passed
@mattbrictson mattbrictson deleted the frozen-string branch December 26, 2024 17:38
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.

1 participant