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

Implement XML::Reader.new with keyword args and forward Reader() to it #3326

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

infews
Copy link
Contributor

@infews infews commented Nov 14, 2024

What problem is this PR intended to solve?

Adds support for keyword args for optional args for Nokogiri::XML::Reader#initialize

Have you included adequate test coverage?

Yas, says @flavorjones

Does this change affect the behavior of either the C or the Java implementations?

@flavorjones flavorjones added the event/hackday2024 RubyConf 2024 Hack Day label Nov 14, 2024
@infews
Copy link
Contributor Author

infews commented Nov 14, 2024

Reader.from_io and Reader.from_memory are C functions, @flavorjones !

@flavorjones flavorjones added this to the v1.17.0 milestone Nov 29, 2024
@flavorjones flavorjones self-assigned this Nov 29, 2024
@flavorjones
Copy link
Member

Thanks for your patience. The last couple of weeks have been really busy, but I'm hoping to review and merge this in the next week or so!

@flavorjones flavorjones force-pushed the Update_XML_Reader branch 2 times, most recently from d6cb07d to 14432b9 Compare December 6, 2024 21:12
@flavorjones
Copy link
Member

Rebased. Kept the tests but dropped the #initialize method signature in favor of making a .new method that Reader() forwards to.

@flavorjones flavorjones changed the title Update XML::Reader#initialize to keyword args Implement XML::Reader.new with keyword args and forward Reader() to it Dec 6, 2024
infews and others added 3 commits December 6, 2024 16:23
XML::Reader() now forwards to this method. Expanded documentation for it.
@flavorjones flavorjones merged commit cc329b7 into sparklemotion:main Dec 6, 2024
130 of 131 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event/hackday2024 RubyConf 2024 Hack Day
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants