Skip to content

Dev#225

Merged
cfis merged 16 commits intomasterfrom
dev
Apr 5, 2026
Merged

Dev#225
cfis merged 16 commits intomasterfrom
dev

Conversation

@cfis
Copy link
Copy Markdown
Member

@cfis cfis commented Apr 4, 2026

No description provided.

cfis added 11 commits April 3, 2026 20:30
The old Data_Wrap_Struct/Data_Get_Struct API has been deprecated for a long
time. This updates all bindings to use TypedData_Wrap_Struct/TypedData_Get_Struct
with proper rb_data_type_t definitions.

Key fixes during the conversion:
- Reader expand returns nodes wrapped with rxml_node_unmanaged_data_type
  (no mark, no free) since these transient nodes are freed on the next read
- Removed stale Check_Type(*, T_DATA) guards that reject TypedData objects
- Set parent type links so type hierarchy checks pass (e.g. Attr -> Node,
  AttrDecl -> Attr, HTMLParser::Context -> Parser::Context)
- Added alloc function for HTMLParser::Context so it wraps with the correct type
- Update error message expectation for unbound namespace (TypedData reports
  type name instead of generic "Data")
- Remove platform-specific branches for parser error messages that now match
  across platforms with newer libxml2
- Fix reader encoding test to expect ISO_8859_1 on all platforms
- Normalize c14n result file line endings to LF
- Make docbook enabled test platform-independent
- Use assert_match for error messages that vary across libxml2 versions
- Remove platform-specific branches for parser error messages
- Skip NOIMPLIED test on libxml2 2.14+ where behavior changed
- Skip schema URI test when HTTP support is not available
- Make feature flag tests build-independent
- test_bad_xml: error message and code differ between libxml2 <2.12 and >=2.12
- test_string_encoding: reader encoding returns NONE on <2.12, ISO_8859_1 on >=2.12
- Add rdoc to gemspec since it was removed from default gems in Ruby 4.0
- Use Gem::Version checks for libxml2 version-dependent test assertions
@cfis cfis force-pushed the dev branch 3 times, most recently from 6099d93 to 0d07de8 Compare April 4, 2026 07:34
@cfis cfis force-pushed the dev branch 7 times, most recently from c76f37c to 748eee6 Compare April 5, 2026 06:51
@cfis cfis merged commit 4b6ffbf into master Apr 5, 2026
24 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.

1 participant