From 11e643c0fe7b48d09d7bf44b24a84458c205d14e Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Thu, 19 Mar 2009 20:52:35 +1100 Subject: [PATCH] version 1.1.6 --- CHANGELOG | 10 ++++++++++ Rakefile | 5 +---- validates_timeliness.gemspec | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 5b6ffee..94d2696 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,13 @@ += 1.1.6 [2009-03-19] +- Rail 2.3 support +- Added :with_date and :with_time options. They allow an attribute to be combined with another attribute or value to make a datetime value for validation against the temporal restrictions +- Added :equal_to option +- Option key validation +- Better behaviour with other plugins using alias_method_chain on read_attribute and define_attribute_methods +- Added option to enable datetime_select extension for future use to optionally enable. Enabled by default until version 2. +- Added :ignore_usec option for datetime restrictions to be compared without microsecond +- some refactoring + = 1.1.5 [2009-01-21] - Fixed regex for 'yy' format token which wasn't greedy enough for date formats ending with year when a datetime string parsed as date with a 4 digit year diff --git a/Rakefile b/Rakefile index 29eb5bb..31726ef 100644 --- a/Rakefile +++ b/Rakefile @@ -5,7 +5,7 @@ require 'date' require 'spec/rake/spectask' GEM = "validates_timeliness" -GEM_VERSION = "1.1.5" +GEM_VERSION = "1.1.6" AUTHOR = "Adam Meehan" EMAIL = "adam.meehan@gmail.com" HOMEPAGE = "http://github.com/adzap/validates_timeliness" @@ -24,9 +24,6 @@ spec = Gem::Specification.new do |s| s.email = EMAIL s.homepage = HOMEPAGE - # Uncomment this to add a dependency - # s.add_dependency "foo" - s.require_path = 'lib' s.autorequire = GEM s.files = %w(LICENSE README.rdoc Rakefile TODO CHANGELOG) + Dir.glob("{lib,spec}/**/*") diff --git a/validates_timeliness.gemspec b/validates_timeliness.gemspec index 9b4c084..2e37a17 100644 --- a/validates_timeliness.gemspec +++ b/validates_timeliness.gemspec @@ -2,12 +2,12 @@ Gem::Specification.new do |s| s.name = %q{validates_timeliness} - s.version = "1.1.5" + s.version = "1.1.6" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Adam Meehan"] s.autorequire = %q{validates_timeliness} - s.date = %q{2009-01-21} + s.date = %q{2009-03-19} s.description = %q{Date and time validation plugin for Rails 2.x which allows custom formats} s.email = %q{adam.meehan@gmail.com} s.extra_rdoc_files = ["README.rdoc", "LICENSE", "TODO", "CHANGELOG"]