public
Description: Contentz (pronounced "content zee") is an ActiveRecord extension that uses Zlib to compress/uncompress attribute data on write/read.
Homepage:
Clone URL: git://github.com/benpickles/contentz.git
name age message
file .document Thu Apr 09 13:19:25 -0700 2009 Initial commit to contentz. [benpickles]
file .gitignore Thu Apr 09 13:19:25 -0700 2009 Initial commit to contentz. [benpickles]
file LICENSE Thu Apr 09 13:19:25 -0700 2009 Initial commit to contentz. [benpickles]
file README.rdoc Fri Apr 17 15:53:27 -0700 2009 Initial work on contentz. [benpickles]
file Rakefile Fri Apr 17 15:53:27 -0700 2009 Initial work on contentz. [benpickles]
file VERSION.yml Sat Apr 18 02:25:49 -0700 2009 Version bump to 0.2.1 - build now please :) [benpickles]
file contentz.gemspec Sat Apr 18 02:26:05 -0700 2009 Regenerated gemspec for version 0.2.1 [benpickles]
directory lib/ Fri Apr 17 15:53:27 -0700 2009 Initial work on contentz. [benpickles]
directory test/ Fri Apr 17 15:53:27 -0700 2009 Initial work on contentz. [benpickles]
README.rdoc

contentz

Contentz (pronounced "content zee") is an ActiveRecord extension that uses Zlib to compress/uncompress attribute data on write/read.

Usage

Require the gem in config/environment.rb:

  Rails::Initializer.run do |config|
    config.gem 'benpickles-contentz', :lib => 'contentz', :source => 'http://gems.github.com'
  end

Use the contentz method in any ActiveRecord model to apply compression to attribute(s):

  class Article < ActiveRecord::Base
    contentz :body
  end

Copyright

Copyright © 2009 Ben Pickles. See LICENSE for details.