Skip to content

Ensure compatibility with Nokogiri#31

Merged
ebeigarts merged 1 commit intoebeigarts:masterfrom
flavorjones:30-fix-nokogiri-1.12-compat
Oct 22, 2021
Merged

Ensure compatibility with Nokogiri#31
ebeigarts merged 1 commit intoebeigarts:masterfrom
flavorjones:30-fix-nokogiri-1.12-compat

Conversation

@flavorjones
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Nokogiri 1.12.4 is out, marking this ready for review.

Copy link
Copy Markdown

@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
Copy Markdown
Contributor Author

@ebeigarts Tagging you for review.

@bjensen
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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