No commit activity in last 3 years
No release in over 3 years
Serializer for primitives for Undo gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
>= 0
>= 3.0.0.beta1

Runtime

~> 1.0
 Project Readme

Undo

Build Status Coverage Status Code Climate Gemnasium Build Status Gem Version

Serializer for primitives for Undo gem.

Serializes booleans, integers, floats, empty arrays and hashes, etc.

Contents

  1. Installation
  2. Usage
  3. Requirements
  4. Contacts
  5. Compatibility
  6. Contributing
  7. Copyright

Installation

Add this line to your application's Gemfile:

gem 'undo-serializer-primitive'

And then execute:

$ bundle

Or install it yourself as:

$ gem install undo-serializer-primitive

Usage

Primivite serializer best applicable as extension to another serializers. It takes the responsibility of serializing primitive values, which mostly are the edge cases for another serializers:

primitive_serializer = Undo::Serializer::Primitive.new
primitive_serializer.serialize(object) if primitive_serializer.serialize? object
primitive_serializer.deserialize(input) if primitive_serializer.deserialize? input

Requirements

  1. Ruby 1.9 or above
  2. Undo gem

Contacts

Have questions or recommendations? Contact me via alexander.n.paramonov@gmail.com
Found a bug or have enhancement request? You are welcome at Github bugtracker

Compatibility

tested with Ruby

  • 2.1
  • 2.0
  • 1.9.3
  • ruby-head
  • rbx
  • jruby-19mode
  • jruby-head

See build history

Contributing

  1. Fork repository
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright

Copyright © 2014 Alexander Paramonov. Released under the MIT License. See the LICENSE file for further details.