2010 04-24-cerealize
- 1. Serialize out of the
Cerealize Box
a drop-in replacement for ActiveRecord's serialize
cblue.tw
- 2. class Cat < ActiveRecord::Base
serialize :can, Hash
end
cblue.tw
- 4. YAML
is a human friendly
data serialization
cblue.tw
- 5. YAML
is not a machine friendly
data serialization
cblue.tw
- 6. YAML
SLOW for machine
cblue.tw
- 8. class Cat < ActiveRecord::Base
serialize :can, Hash
end
cblue.tw
- 9. class Cat < ActiveRecord::Base
include Cerealize
serialize :can, Hash
end
cblue.tw
- 10. class Cat < ActiveRecord::Base
include Cerealize
cerealize :can, Hash
end
cblue.tw
- 14. AUTO detection
YAML
Encoding
Marshal
JSON
cblue.tw
- 15. AUTO detection
YAML
Encoding
Marshal
JSON
conversion
cblue.tw AUTO
- 16. class Cat < ActiveRecord::Base
include Cerealize
cerealize :can, Hash,
:encoding => :marshal
end
cblue.tw
- 17. class Cat < ActiveRecord::Base
include Cerealize
cerealize :can, Hash,
:encoding => :yaml
end
cblue.tw
- 18. class Cat < ActiveRecord::Base
include Cerealize
cerealize :can, Hash,
:encoding => :json #future
end
cblue.tw
- 20. Try it Today!
script/plugin install
git://github.com/cardinalblue/cerealize.git
cblue.tw
- 21. Contribution
WANTED!!
http://github.com/cardinalblue/cerealize
cblue.tw