Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure compatibility with Nokogiri #31

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

flavorjones
Copy link
Contributor

Nokogiri v1.12 introduced a breaking change related to namespace
inheritance of reparented child nodes. This commit using the feature added in
v1.12.4 to opt

  • for new versions of Nokogiri that support it, set Document#namespace_inheritance
  • intermediate versions of Nokogiri will be avoided via gemspec version specification
  • old versions of Nokogiri will continue to work

See sparklemotion/nokogiri#2320 for more details.

Fixes #30

Nokogiri v1.12 introduced a breaking change related to namespace
inheritance of reparented child nodes. This commit using the feature added in
v1.12.4 to opt

- for new versions of Nokogiri that support it, set `Document#namespace_inheritance`
- intermediate versions of Nokogiri will be avoided via gemspec version specification
- old versions of Nokogiri will continue to work

See sparklemotion/nokogiri#2320 for more details.

Fixes ebeigarts#30
@flavorjones flavorjones marked this pull request as ready for review August 29, 2021 21:23
@flavorjones
Copy link
Contributor Author

Nokogiri 1.12.4 is out, marking this ready for review.

Copy link

@jweir jweir left a comment

Choose a reason for hiding this comment

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

Thank you very much @flavorjones

All tests pass with nokogiri (1.12.4 x86_64-darwin) and nokogiri (1.11.7 x86_64-darwin)

@flavorjones
Copy link
Contributor Author

@ebeigarts Tagging you for review.

@bjensen
Copy link

bjensen commented Sep 29, 2021

@ebeigarts please review and merge so we can use the later versions of nokogiri

@ebeigarts ebeigarts merged commit 154308b into ebeigarts:master Oct 22, 2021
@ebeigarts
Copy link
Owner

This has been released in v1.10.0, sorry for the delay :)

@flavorjones flavorjones deleted the 30-fix-nokogiri-1.12-compat branch October 25, 2021 14:32
@flavorjones
Copy link
Contributor Author

Thank you!

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.

Not compatible with Nokogiri >= 1.12.0
4 participants