Skip to content

Make nokogiri optional#40

Merged
Watson1978 merged 2 commits into
masterfrom
rexml
Jun 22, 2026
Merged

Make nokogiri optional#40
Watson1978 merged 2 commits into
masterfrom
rexml

Conversation

@ashie

@ashie ashie commented Jun 18, 2026

Copy link
Copy Markdown
Member

Use REXML as runtime fallback.

We are considering to drop Nokogiri from fluent-package in the next major version.
AFAIK only this plugin mandatory depends on Nokogiri in the package.

Probably this plugin isn't so used recent days since windows_eventlog2 plugin doesn't use XML output by default in current version. We will deprecate XML output, so we don't care about performance degradation by replacing nokogiri with REXML. If a user is concerned about this, we will prompt them to install Nokogiri themselves.

Comment thread fluent-plugin-parser-winevt_xml.gemspec Outdated
Comment thread lib/fluent/plugin/parser_winevt_sax.rb Outdated
@ashie ashie force-pushed the rexml branch 9 times, most recently from 82c54b2 to e523e7b Compare June 22, 2026 00:03
@ashie ashie marked this pull request as ready for review June 22, 2026 00:04
@ashie ashie requested review from Watson1978 and kenhys June 22, 2026 01:25
@ashie

ashie commented Jun 22, 2026

Copy link
Copy Markdown
Member Author

It should bump up minor or major version, so shouldn't bundle in fluent-package 6.0.

@kenhys kenhys left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.
Should we make maintenance branch for it?

Comment thread lib/fluent/plugin/parser_winevt_xml.rb
Comment thread lib/fluent/plugin/parser_winevt_sax.rb
Comment thread lib/fluent/plugin/parser_winevt_sax.rb Outdated
Comment thread lib/fluent/plugin/parser_winevt_xml.rb Outdated

@Watson1978 Watson1978 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

initialize method must call super

ashie added 2 commits June 22, 2026 11:10
Use REXML as runtime fallback.

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
Signed-off-by: Takuro Ashie <ashie@clear-code.com>

@Watson1978 Watson1978 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@Watson1978 Watson1978 merged commit bddaf4a into master Jun 22, 2026
16 checks passed
@Watson1978 Watson1978 deleted the rexml branch June 22, 2026 02:15
@ashie ashie mentioned this pull request Jul 1, 2026
Watson1978 pushed a commit that referenced this pull request Jul 1, 2026
* Make nokogiri optional (#40)

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
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.

3 participants