gjtorikian / commonmarker

Ruby wrapper for the comrak (CommonMark parser) Rust crate
MIT License
416 stars 80 forks source link

Add rb_undef_alloc_func for Node #179

Closed dorkrawk closed 2 years ago

dorkrawk commented 2 years ago

This PR makes updates to allow this gem to work properly with Ruby 3.2.

The addition of the rb_undef_alloc_func calls ensures that we undefine allocate for T_DATA classes. This relates to a change in Ruby introduced here: https://github.com/ruby/ruby/pull/4604 (opened from this issue).

gjtorikian commented 2 years ago

Neat, thanks!