Skip to content
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

Enable customizing serializers #21

Closed
wants to merge 6 commits into from
Closed

Conversation

sorentwo
Copy link
Owner

Introduces serializer customization. Usage is outlined in the README. Here's a quick summary:

# Set custom serializers
Readthis.serializers << Oj
Readthis.serializers << MessagePack

# Freeze them to prevent further usage
Readthis.serializers.freeze!

# Reset back to the three defaults
Readthis.serializers.reset!

Addresses #18 @fabn

Provides a wrapper around a set of serializers with constraints to
prevent breakage.
Useful for reverting back to the defaults, important for globally
testing.
Serializers are now used within entities, without knowning about the
internal structure of a serializers instance.
@fabn
Copy link

fabn commented Sep 17, 2015

Everything look good. Nice job.

@sorentwo
Copy link
Owner Author

Merged into master manually.

@sorentwo sorentwo closed this Sep 18, 2015
@sorentwo sorentwo deleted the customize-serializers branch September 28, 2015 03:09
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.

2 participants