Timestamps for your Ork Models
- Ruby 1.9 or later.
riak-clientto connect to Riak.
ork0.1.3 or later.
Install Dependencies using
dep is easy as run:
$ dep insatll
Install Riak with your package manager:
$ brew install riak
Or download it from Riak's download page
Once you have it installed, you can execute
riak start and it will run on
localhost:8098 by default.
If you don't have
Ork-Timestamps, try this:
$ gem install ork-timestamps
Ork::Timestamps creates two attributes that automatically set create and update timestamp fields.
Ork::Timestamps module in your
class SomeDocument include ::Document include :: attribute :message end
Enjoy your models with timestamps!
Running the Tests
Adjust the variable to point to a test riak database. Default is
$ ORK_RIAK_URL='http://localhost:8198' rake