brianmario / yajl-ruby

A streaming JSON parsing and encoding library for Ruby (C bindings to yajl)
http://rdoc.info/projects/brianmario/yajl-ruby
MIT License
1.48k stars 169 forks source link

Add rb_undef_alloc_func for Parser and Encoder #215

Closed dorkrawk closed 2 years ago

dorkrawk commented 2 years ago

This PR makes updates to allow yajl-ruby to work well with upcoming Ruby 3.2 functionality.

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).

jhawthorn commented 2 years ago

Thank you!