yosiat / panko_serializer

High Performance JSON Serialization for ActiveRecord & Ruby Objects
https://panko.dev
MIT License
591 stars 36 forks source link

undefined symbol: RB_INTEGER_TYPE_P for Fixnum #39

Closed Chillwall closed 5 years ago

Chillwall commented 5 years ago

Hi,

I get this error when trying to serialize an object with Fixnum field attribute :

symbol lookup error: /usr/local/bundle/gems/panko_serializer-0.5.9/lib/panko/panko_serializer.so: undefined symbol: RB_INTEGER_TYPE_P

If I use a method attribute to transform it in a String it works fine.

yosiat commented 5 years ago

Hi @Chillwall !

Which Ruby version are you using?

Chillwall commented 5 years ago

Using ruby 2.3.7

yosiat commented 5 years ago

Hola!

Just had the time to work on this.

Fixed in #41 and released a new version - https://rubygems.org/gems/panko_serializer/versions/0.5.10

@Chillwall please update if this fixes your issue (and please upgrade your ruby ;))