Skip to content

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

Merged
flavorjones merged 3 commits into
sparklemotion:mainfrom
infews:Update_XML_Reader
Dec 6, 2024
Merged

Implement XML::Reader.new with keyword args and forward Reader() to it#3326
flavorjones merged 3 commits into
sparklemotion:mainfrom
infews:Update_XML_Reader

Conversation

@infews
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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