Skip to content

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

Open
robzolkos wants to merge 1 commit into
jnunemaker:mainfrom
robzolkos:fix-multi-xml-deprecation-warning
Open

Use MultiXML constant to fix deprecation warning from multi_xml 0.9+#838
robzolkos wants to merge 1 commit into
jnunemaker:mainfrom
robzolkos:fix-multi-xml-deprecation-warning

Conversation

@robzolkos

@robzolkos robzolkos commented Jun 12, 2026

Copy link
Copy Markdown

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.

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 f8c775a to 4f55b2c Compare June 12, 2026 15:41
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.

1 participant