0.0
No commit activity in last 3 years
No release in over 3 years
Add the clasic timestamps :created_at, :updated_at to the Ork::Documents
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0.1.4, ~> 0.1
 Project Readme

ork-timestamps

Gem Version Build Status Code Climate Coverage Status Dependency Status

Timestamps for your Ork Models

Dependencies

ork-timestamps requires:

  • Ruby 1.9 or later.
  • riak-client to connect to Riak.
  • ork 0.1.3 or later.

Install Dependencies using dep is easy as run:

$ dep insatll

Installation

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

Overview

Ork::Timestamps creates two attributes that automatically set create and update timestamp fields.

Getting started

Include Ork::Timestamps module in your Ork::Document class.

class SomeDocument
  include Ork::Document
  include Ork::Timestamps

  attribute :message
end

Enjoy your models with timestamps!

Running the Tests

Adjust the variable to point to a test riak database. Default is http://localhost:8098

$ ORK_RIAK_URL='http://localhost:8198' rake