From: Stephen Schor Date: 2013-07-08T10:03:41+09:00 Subject: [ANN] useful_duration 0.0.2 --001a11c20b066f339104e0f59dba Content-Type: text/plain; charset=ISO-8859-1 Finally - a useful way of measuring time in your applications. *Install* Install and require the gem manually or through bundler. *Usage* 10.in_a_gadda_da_vidas.ago => 2013-04-18 11:25:56 -0400 2.bravehearts.from_now => 2013-04-18 20:10:45 -0400 "I regret I have but #{86400.to_f/1.doctor_zhivago} Doctor Zhivago's in a day" => "I regret I have but 7.309644670050761 Doctor Zhivago's in a day" *New In This Version* * * A DSL nice DSL to define custom durrations. (prezjordan ) require 'useful_duration' include UsefulDuration useful_duration :fortnights, 1209600 1.fortnight.from_now => 2013-07-21 08:47:37 -0400 *Dependencies:* This requires ActiveSupport to play nicely with ActiveSupport duration. It was written against 3.2.13 and hasn't been regression tested against other versions. GIthub: https://github.com/nodanaonlyzuul/useful_duration Rubygems: http://rubygems.org/gems/useful_duration --001a11c20b066f339104e0f59dba Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Finally - a=A0useful=A0way of measuring time in your applications.

Install

In= stall and require the gem manually or through bundler.

Usa= ge

=A0 10.in_a_gadda_da_vidas.ago=A0
=A0 =A0 =3D> 2013-04-18 11:25:56 -0400

=A0 2.bravehea= rts.from_now=A0
=A0 =A0 =3D> 2013-04-18 20:10:45 -0400
<= /div>

=A0 "I regret = I have but #{86400.to_f/1.doctor_zhivago} Doctor Zhivago's=A0in a day"=A0
=A0 =A0 =3D> "I regret I= have but 7.309644670050761=A0= Doctor Z= hivago's=A0in a day"=A0

New I= n This Version

A DSL nice DSL to define custom d= urrations. (prezjordan)

require 'useful_duration'

include UsefulDuration

useful_duration :fortnights, 1209600

1.fortnight.from_now =3D> 2013-07-21 08:47:3= 7 -0400

Dependencies:

This requires ActiveSupport to play n= icely with ActiveSupport=A0duration.=A0
It was written against 3.2= .13 and hasn't been regression tested against other versions.

GIthub: =A0 =A0 =A0=A0https://github.com/nodanaonlyzuul/useful_duration
Rubygems:=A0http://rubygems.org/gems/useful_duration
--001a11c20b066f339104e0f59dba--