v3.0.0.beta

This commit is contained in:
Adam Meehan 2010-09-17 15:16:03 +10:00
parent 01b734e7cd
commit 0f84584238
3 changed files with 37 additions and 6 deletions

View File

@ -1,14 +1,15 @@
= master = 3.0.0.beta
- Rails 3 and ActiveModel compatibility - Rails 3 and ActiveModel compatibility
- Uses ActiveModel::EachValidator as validator base class. - Uses ActiveModel::EachValidator as validator base class.
- Configuration settings stored in ValidatesTimeliness module only. ValidatesTimeliness.setup block to configure. - Configuration settings stored in ValidatesTimeliness module only. ValidatesTimeliness.setup block to configure.
- Add validation helpers to classes using extend_classes config setting. - Plugin parser is off by default.
e.g. conf.extend_classes = [ ActiveRecord::Base ] - Method override for parsing and before type cast values is on validated attributes only. Old version handled all date/datetime columns, validates or not. Too intrusive.
- Add validation helpers to classes using extend_orms config setting. e.g. conf.extend_orms = [ :active_record ]
- Changed :between option so it is split into :on_or_after and :on_or_before option values. The error message for either failing check will be used instead of a between error message. - Changed :between option so it is split into :on_or_after and :on_or_before option values. The error message for either failing check will be used instead of a between error message.
- Provides :timeliness option key for validates class method. Be sure to pass :type option as well e.g. :type => :date. - Provides :timeliness option key for validates class method. Be sure to pass :type option as well e.g. :type => :date.
- Allows validation methods to be called on record instances as per ActiveModel API - Allows validation methods to be called on record instances as per ActiveModel API
- Performs raw value caching (before_type_cast) on validated attributes only. It used to be all date, time and datetime attributes. - Performs parsing (optional) and raw value caching (before_type_cast) on validated attributes only. It used to be all date, time and datetime attributes.
- Fix meridian bug where time parsed with hour of 0 or greater than 12 was accepted.
= 2.3.1 [2010-03-19] = 2.3.1 [2010-03-19]
- Fixed bug where custom attribute writer method for date/times were being overriden - Fixed bug where custom attribute writer method for date/times were being overriden

View File

@ -1,3 +1,3 @@
module ValidatesTimeliness module ValidatesTimeliness
VERSION = '3.0.0' VERSION = '3.0.0.beta'
end end

View File

@ -0,0 +1,30 @@
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{validates_timeliness}
s.version = "3.0.0.beta"
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
s.authors = ["Adam Meehan"]
s.autorequire = %q{validates_timeliness}
s.date = %q{2010-09-17}
s.description = %q{Date and time validation plugin for Rails which allows custom formats}
s.email = %q{adam.meehan@gmail.com}
s.extra_rdoc_files = ["README.rdoc", "LICENSE", "CHANGELOG"]
s.files = ["validates_timeliness.gemspec", "LICENSE", "CHANGELOG", "README.rdoc", "Rakefile", "lib/generators", "lib/generators/validates_timeliness", "lib/generators/validates_timeliness/install_generator.rb", "lib/generators/validates_timeliness/templates", "lib/generators/validates_timeliness/templates/en.yml", "lib/generators/validates_timeliness/templates/validates_timeliness.rb", "lib/validates_timeliness", "lib/validates_timeliness/attribute_methods.rb", "lib/validates_timeliness/conversion.rb", "lib/validates_timeliness/extensions", "lib/validates_timeliness/extensions/date_time_select.rb", "lib/validates_timeliness/extensions/multiparameter_handler.rb", "lib/validates_timeliness/extensions.rb", "lib/validates_timeliness/helper_methods.rb", "lib/validates_timeliness/orms", "lib/validates_timeliness/orms/active_record.rb", "lib/validates_timeliness/parser.rb", "lib/validates_timeliness/validator.rb", "lib/validates_timeliness/version.rb", "lib/validates_timeliness.rb", "spec/model_helpers.rb", "spec/spec_helper.rb", "spec/test_model.rb", "spec/validates_timeliness", "spec/validates_timeliness/attribute_methods_spec.rb", "spec/validates_timeliness/conversion_spec.rb", "spec/validates_timeliness/extensions", "spec/validates_timeliness/extensions/date_time_select_spec.rb", "spec/validates_timeliness/extensions/multiparameter_handler_spec.rb", "spec/validates_timeliness/helper_methods_spec.rb", "spec/validates_timeliness/parser_spec.rb", "spec/validates_timeliness/validator", "spec/validates_timeliness/validator/after_spec.rb", "spec/validates_timeliness/validator/before_spec.rb", "spec/validates_timeliness/validator/is_at_spec.rb", "spec/validates_timeliness/validator/on_or_after_spec.rb", "spec/validates_timeliness/validator/on_or_before_spec.rb", "spec/validates_timeliness/validator_spec.rb"]
s.homepage = %q{http://github.com/adzap/validates_timeliness}
s.require_paths = ["lib"]
s.rubyforge_project = %q{validates_timeliness}
s.rubygems_version = %q{1.3.7}
s.summary = %q{Date and time validation plugin for Rails which allows custom formats}
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
else
end
else
end
end