New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended type support #14
Conversation
Bump. Any code reviews for this are very welcomed. |
Your code looks good, but it would be really nice if the interface could instantiate Ruby objects by type instead of Extension objects, e.g.:
|
+1 for a nicer interface, please |
* Remove Ruby MessagePack::Extended class * Move delegete_to_pack and ENSURE_PACKER to packer_class.h * Make msgpack_packer_write_ext_value access the instance methods `type` and `data` instead of just instance variables.
This lets the users override Extended#create to handle the deserialization of application specific extended types.
886c3ca
to
4e1d2f6
Compare
* Removed Extended.create * Still moved the spec to cruby since jruby's ExtensionValue's type and payload can't be accessed.
Sorry if it took me too long to implement |
Great work, thanks! |
My review results are:
Now we should consider about JRuby implementation... |
Seems like this isn't needed anymore since #71 is already here. |
My C is not really good, so please review this properly. Thank you.