Skip to content
Browse files

Updated to 0.6.2.

* depends NotNaughty 0.6.2
* added content to README.rdoc
  • Loading branch information...
1 parent a933028 commit 01b448bf3930e0134fa55e12acf9ae7044eae5bc @boof committed Oct 31, 2008
Showing with 27 additions and 7 deletions.
  1. +3 −0 CHANGELOG.rdoc
  2. +17 −0 README.rdoc
  3. +1 −1 Rakefile
  4. +3 −3 lib/sequel_notnaughty.rb
  5. +3 −3 sequel_notnaughty.gemspec
View
3 CHANGELOG.rdoc
@@ -1,3 +1,6 @@
+=== 0.6.2 (2008-10-31)
+* updated to not-naughty 0.6.2
+
=== 0.6.1 (2008-10-10)
* split from not-naughty gem
* added gemspecs for github
View
17 README.rdoc
@@ -0,0 +1,17 @@
+= Ruby-Sequels adapter to NotNaughty - The Validation Framework
+
+Validate all your Ruby Sequel models with NotNaughty:
+
+ class Sequel::Model
+ is :notnaughty
+ end
+
+Validate just specific models:
+
+ class Item < Sequel::Model
+ is :notnaughty
+
+ validates_uniqueness_of :name, :in => category
+ end
+
+For more examples see NotNaughty documentation.
View
2 Rakefile
@@ -9,7 +9,7 @@ include FileUtils
# Configuration
##############################################################################
NAME = "sequel_notnaughty"
-VERS = "0.6.1"
+VERS = "0.6.2"
CLEAN.include %w[ pkg doc coverage ]
RDOC_OPTS = [
"--quiet",
View
6 lib/sequel_notnaughty.rb
@@ -3,11 +3,11 @@
gem 'sequel', '>= 2.5.0'
require 'sequel'
-gem 'not-naughty', '= 0.6.1'
+gem 'not-naughty', '= 0.6.2'
require 'not_naughty'
-::NotNaughty::Validation.load(:acceptance, :confirmation, :format, :length, :numericality, :presence)
-require "#{ File.dirname __FILE__ }/validations/uniqueness_validation.rb"
+NotNaughty::Validation.load_paths << File.join(%W[#{ File.dirname __FILE__ } validations])
+NotNaughty::Validation.load(:acceptance, :confirmation, :format, :length, :numericality, :presence, :uniqueness)
module Sequel #:nodoc:
module Plugins #:nodoc:
View
6 sequel_notnaughty.gemspec
@@ -1,7 +1,7 @@
spec = Gem::Specification.new do |s|
s.name = "sequel_notnaughty"
- s.version = "0.6.1"
- s.date = "2008-10-10"
+ s.version = "0.6.2"
+ s.date = "2008-10-31"
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG.rdoc", "COPYING"]
@@ -11,7 +11,7 @@ spec = Gem::Specification.new do |s|
s.email = "boof@monkey-patch.me"
s.homepage = "http://monkey-patch.me/p/not-naughty"
s.required_ruby_version = ">= 1.8.6"
- s.add_dependency("not-naughty", "= 0.6.1")
+ s.add_dependency("not-naughty", "= 0.6.2")
s.files = %w(COPYING README.rdoc Rakefile) + Dir.glob("lib/**/*")
s.test_files = Dir.glob("spec/**/*")

0 comments on commit 01b448b

Please sign in to comment.
Something went wrong with that request. Please try again.