Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/craig-day/migrating_serializer
Convert YAML serialized columns to JSON by providing support for deserializing both JSON and YAML
https://github.com/craig-day/migrating_serializer
Last synced: 20 days ago
JSON representation
Convert YAML serialized columns to JSON by providing support for deserializing both JSON and YAML
- Host: GitHub
- URL: https://github.com/craig-day/migrating_serializer
- Owner: craig-day
- License: mit
- Created: 2017-03-23T23:28:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-24T20:06:30.000Z (almost 8 years ago)
- Last Synced: 2024-10-19T04:10:55.052Z (3 months ago)
- Language: Ruby
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# Migrating Serializer [![Build Status](https://travis-ci.org/craig-day/migrating_serializer.png)](https://travis-ci.org/craig-day/migrating_serializer)
Convert YAML serialized columns to JSON by providing support for deserializing both JSON and YAML
## Install
```Bash
gem install migrating_serializer
```## Usage
```Ruby
require 'migrating_serializer'class User < ActiveRecord::Base
serialize :custom_notes, MigratingSerializer
end
```## Limitations
Because we will dump data as JSON all the time, we can only serialize things JSON expects.
The following classes are known working and tested:
- `String`
- `Array`
- `Hash`
- `Fixnum`
- `Float`
- `NilClass`
- `TrueClass`
- `FaleClass`## Author
[Craig Day](https://github.com/craig-day)
[email protected]
License: MIT