Skip to content

Commit

Permalink
Updated to 0.6.2.
Browse files Browse the repository at this point in the history
* depends NotNaughty 0.6.2
* added content to README.rdoc
  • Loading branch information
boof committed Oct 30, 2008
1 parent a933028 commit 01b448b
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
3 changes: 3 additions & 0 deletions 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
Expand Down
17 changes: 17 additions & 0 deletions 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.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions lib/sequel_notnaughty.rb
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions 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"]
Expand All @@ -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/**/*")
Expand Down

0 comments on commit 01b448b

Please sign in to comment.