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

Add strict_integer option to parse numbers with commas as strings #537

Merged
merged 1 commit into from
Jan 22, 2022

Conversation

sethboyles
Copy link
Contributor

Addresses #273

This PR introduces a strict_integer option to the load/parsing methods, allowing for closer adherence to the YML spec, which specifies that numbers including commas should be parsed as strings. More details in the above linked issue.

Authored-by: Seth Boyles <sethboyles@gmail.com>
Copy link
Member

@tenderlove tenderlove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'll merge when the build comes back green. Thanks for doing this!

@tenderlove tenderlove merged commit 47d4a6a into ruby:master Jan 22, 2022
@sethboyles
Copy link
Contributor Author

Thanks for the merge! Any idea when we will see this released?

ceritium added a commit to ceritium/flatito that referenced this pull request Mar 15, 2024
Remove the option strict_integer, it was introduced on Ruby 3.2.0 but we
don't really need it. Removing it, we make the code compatible from
3.0.0 to 3.2.0 at least.

Related MR: ruby/psych#537
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants