Skip to content

Explicitly require "set" in xpath_parser.rb - #361

Merged
kou merged 1 commit into
ruby:masterfrom
tompng:xpath_require_set
Aug 20, 2026
Merged

Explicitly require "set" in xpath_parser.rb#361
kou merged 1 commit into
ruby:masterfrom
tompng:xpath_require_set

Conversation

@tompng

@tompng tompng commented Aug 19, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 19, 2026 23:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Ensures REXML::XPathParser explicitly loads Ruby’s Set standard library, avoiding reliance on other files incidentally requiring it and preventing NameError: uninitialized constant Set when lib/rexml/xpath_parser.rb is loaded in isolation.

Changes:

  • Add require "set" to lib/rexml/xpath_parser.rb to support existing Set.new... usages throughout the file.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@kou
kou merged commit 713fdcb into ruby:master Aug 20, 2026
71 checks passed
@kou

kou commented Aug 20, 2026

Copy link
Copy Markdown
Member

Good catch!

@tompng
tompng deleted the xpath_require_set branch August 20, 2026 01:17
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