Skip to content

Remove unknown keyword arg from DateTime.parse#488

Merged
hsbt merged 1 commit intoruby:masterfrom
headius:bad_datetime_parse_keyword
Dec 2, 2021
Merged

Remove unknown keyword arg from DateTime.parse#488
hsbt merged 1 commit intoruby:masterfrom
headius:bad_datetime_parse_keyword

Conversation

@headius
Copy link
Copy Markdown
Contributor

@headius headius commented Dec 1, 2021

This snuck in while addding tests for the create_additions
feature. Caught by JRuby when we added the limit option to the
Date/DateTime parsing methods, which causes this to be rejected as
an unknown keyword.

This snuck in while addding tests for the `create_additions`
feature. Caught by JRuby when we added the `limit` option to the
Date/DateTime parsing methods, which causes this to be rejected as
an unknown keyword.
@headius
Copy link
Copy Markdown
Contributor Author

headius commented Dec 1, 2021

We opted to exclude this test in jruby/jruby@a9f3b6b because it started to fail when we added the limit option. JRuby's date library is still partially in Ruby, and adding the limit option there meant it started to reject unknown keywords, like `create_additions.

This was not found by CRuby because the option processing in CRuby's date library does not reject unknown keywords.

@hsbt hsbt merged commit 431317d into ruby:master Dec 2, 2021
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.

2 participants