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 the YAML.load_file decorator to be as strict as regular YAML.load_file #435

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

casperisfine
Copy link
Contributor

Fix: #434

Our strictness was based on the incorrect assumption that all extra types would use a tag, which is incorrect as Time and Date objects can be expressed in regular YAML syntax without the use of !ruby/object.

…ad_file

Fix: #434

Our strictness was based on the incorrect assumption that all extra types
would use a tag, which is incorrect as `Time` and `Date` objects can be
expressed in regular YAML syntax without the use of `!ruby/object`.
@nirvdrum
Copy link

The PR looks good and works for me. Thanks!

@casperisfine casperisfine merged commit a00bce2 into main Jan 25, 2023
@casperisfine casperisfine deleted the stricter-yaml-load-file branch January 25, 2023 19:34
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems January 25, 2023 19:49 Inactive
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.

YAML cache "bypasses" permitted_classes in some cases
3 participants