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

Use named parameters for safe_load. #73

Closed
wants to merge 1 commit into from

Conversation

voxik
Copy link
Contributor

@voxik voxik commented Mar 11, 2022

This is available since Psych 3.1 [1, 2], but mandatory since Psych 4.0 [3].

Of course the question is if this is acceptable with regard to backward compatibility, because if I am not mistaken Psych 3.1 was introduced in Ruby 2.6.

Fixes #72

This is available since Psych 3.1 [[1], [2]], but mandatory since Psych
4.0 [[3]].

Fixes jnunemaker#72

[1]: ruby/psych#358
[2]: ruby/psych#378
[3]: ruby/psych@0767227
@kiskoza
Copy link
Collaborator

kiskoza commented Jan 26, 2024

Thanks for sending in this PR, but finally we picked #74 to solve this issue as it was a bit more general solution. Feel free to re-open this PR or start a new one if you think otherwise.

@kiskoza kiskoza closed this Jan 26, 2024
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.

JSON failures with Ruby 3.1 / Psych 4.0
2 participants