Skip to content

Use MultiXML constant to fix deprecation warning from multi_xml 0.9+#733

Merged
pboling merged 1 commit into
ruby-oauth:mainfrom
robzolkos:fix-multi-xml-deprecation-warning
Jun 12, 2026
Merged

Use MultiXML constant to fix deprecation warning from multi_xml 0.9+#733
pboling merged 1 commit into
ruby-oauth:mainfrom
robzolkos:fix-multi-xml-deprecation-warning

Conversation

@robzolkos

@robzolkos robzolkos commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

multi_xml 0.9.0 renamed the top-level constant from `MultiXml` to `MultiXML` and made the old name a deprecated shim that emits a warning on every method call:

```
The MultiXml constant is deprecated and will be removed in v1.0. Use MultiXML instead.
```

This uses `defined?(MultiXML)` to prefer the new constant when available (multi_xml >= 0.9), falling back to `MultiXml` on older versions. No minimum version bump required — the fix is fully backward compatible.

@robzolkos robzolkos force-pushed the fix-multi-xml-deprecation-warning branch 3 times, most recently from 132ae84 to e2cf592 Compare June 12, 2026 15:48
Falls back to MultiXml for older versions so no minimum version bump
is required.
@robzolkos robzolkos force-pushed the fix-multi-xml-deprecation-warning branch from e2cf592 to 5e776bb Compare June 12, 2026 16:03
@pboling

pboling commented Jun 12, 2026

Copy link
Copy Markdown
Member

Nice! We'll be bumping dependency versions in a major release, along with the bumped min ruby! This is perfect for a patch release.

@pboling pboling left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💯

@pboling pboling merged commit a6a0856 into ruby-oauth:main Jun 12, 2026
26 of 37 checks passed
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