2010 04-24-cerealize
Upcoming SlideShare
Loading in...5
×
 

2010 04-24-cerealize

on

  • 1,000 views

 

Statistics

Views

Total Views
1,000
Views on SlideShare
998
Embed Views
2

Actions

Likes
1
Downloads
3
Comments
0

1 Embed 2

http://www.slideshare.net 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

2010 04-24-cerealize 2010 04-24-cerealize Presentation Transcript

  • Serialize out of the Cerealize Box a drop-in replacement for ActiveRecord's serialize cblue.tw
  • class Cat < ActiveRecord::Base serialize :can, Hash end cblue.tw
  • Cat.create(:can => {:food => ‘fish’, :mood => ‘dish’}) cblue.tw
  • YAML is a human friendly data serialization cblue.tw
  • YAML is not a machine friendly data serialization cblue.tw
  • YAML SLOW for machine cblue.tw
  • to the rescue cblue.tw
  • class Cat < ActiveRecord::Base serialize :can, Hash end cblue.tw
  • class Cat < ActiveRecord::Base include Cerealize serialize :can, Hash end cblue.tw
  • class Cat < ActiveRecord::Base include Cerealize cerealize :can, Hash end cblue.tw
  • cblue.tw
  • SAVED!! cblue.tw
  • YAML Marshal Encoding JSON cblue.tw
  • AUTO detection YAML Encoding Marshal JSON cblue.tw
  • AUTO detection YAML Encoding Marshal JSON conversion cblue.tw AUTO
  • class Cat < ActiveRecord::Base include Cerealize cerealize :can, Hash, :encoding => :marshal end cblue.tw
  • class Cat < ActiveRecord::Base include Cerealize cerealize :can, Hash, :encoding => :yaml end cblue.tw
  • class Cat < ActiveRecord::Base include Cerealize cerealize :can, Hash, :encoding => :json #future end cblue.tw
  • Try it Today! gem install cerealize cblue.tw
  • Try it Today! script/plugin install git://github.com/cardinalblue/cerealize.git cblue.tw
  • Contribution WANTED!! http://github.com/cardinalblue/cerealize cblue.tw