From fd73c4eccdfe799aa5da0efd94dc6f1393b22891 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Thu, 9 Aug 2012 11:55:53 +1000 Subject: [PATCH] README touch ups --- README.rdoc | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/README.rdoc b/README.rdoc index c217e6e4..15393ede 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,7 +1,7 @@ = ValidatesTimeliness * Source: http://github.com/adzap/validates_timeliness -* Bugs: http://github.com/adzap/validates_timeliness/issues +* Issues: http://github.com/adzap/validates_timeliness/issues == Description @@ -18,24 +18,19 @@ If you a looking for the old version for Rails 2.x go here[http://github.com/adz * Only Rails date/time validation plugin offering complete validation (See ORM/ODM support) -* Adds extensions to fix Rails date/time select issues (See Extensions) - * Uses extensible date/time parser (Using {timeliness gem}[http://github.com/adzap/timeliness]. See Plugin Parser) -* Supports I18n for the error messages - -* Supports Ruby 1.8.x, 1.9.x and Rubinius. +* Adds extensions to fix Rails date/time select issues (See Extensions) -== Installation +* Supports I18n for the error messages -As plugin (from master) +* Supports all the Rubies (that any sane person would be using in production). - rails plugin install git://github.com/adzap/validates_timeliness.git -As gem +== Installation # in Gemfile - gem 'validates_timeliness', '~> 3.0.2' + gem 'validates_timeliness', '~> 3.0' # Run bundler $ bundle install @@ -55,7 +50,7 @@ NOTE: You may wish to enable the plugin parser and the extensions to start. Plea validates_datetime :occurred_at validates_date :date_of_birth, :before => lambda { 18.years.ago }, - :before_message => "must be at least 18 years old" + :before_message => "must be at least 18 years old" validates_datetime :finish_time, :after => :start_time # Method symbol @@ -79,7 +74,7 @@ validation method validates :date_of_birth, :timeliness => {:on_or_before => lambda { Date.current }, :type => :date} end - # or even on a specific record, per ActiveModel API. +or even on a specific record, per ActiveModel API. @person.validates_date :date_of_birth, :on_or_before => lambda { Date.current } @@ -298,4 +293,4 @@ To see the generous people who have contributed code, take a look at the {contri == License -Copyright (c) 2008-2010 Adam Meehan, released under the MIT license +Copyright (c) 2008 Adam Meehan, released under the MIT license