Hi folks,

I finally got some extra time to update the validation framework.

FEATURES:
   * conditions         with :if or :unless pointing to procs or methods
   * stateful           you can define the set of conditions for the  
current state of your instance
   * easy to extend     validations are encapsulated so you can just  
inherit from NotNaughty::Validation and get a validates_xyz_of with  
conditions for free
   * easy to use        there are various ways to setup a validation  
on an attribute but you can define them almost like with any other  
validation api
   * exception handler  wrap sql errors in validation errors

INSTALL

   $ gem install sequel_notnaughty

USE

   # activate NotNaughty validations for all models
   class Sequel::Model; is :notnaughty; end

   class Item < Sequel::Model
     validates_uniqueness_of :position, :in => :category
   end
   class User < Sequel::Model
     validates(:firstname, :lastname) { :length :min => 3 }
     validates_format_of :email, :with => :email
   end


CHANGES (sequel_notnaughty)
  * split from not-naughty gem
  * added uniqueness validation with scope [resolves:#19650]
CHANGES (not-naughty)
  * cleaned up some code parts
  * added support for predefined format expressions [resolves:#19814]
  * fixed Rakefile
  * removed Ruby-Sequel adapter
  * removed assistance gem dependency

BUGS
  * rubyforge.org/projects/not-naughty

HACKING
  * github.com/boof/sequel_notnaughty
  * github.com/boof/not-naughty

Cheers
Florian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to