localized_each_validator 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Tim Morgan
1
+ Copyright (c) 2010 Tim Morgan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.textile CHANGED
@@ -1,16 +1,20 @@
1
1
  h1. Localized @EachValidator@
2
2
 
3
3
  | *Author* | Tim Morgan |
4
- | *Version* | 1.0 (Oct 31, 2010) |
4
+ | *Version* | 1.0.1 (Oct 31, 2010) |
5
5
  | *License* | Released under the MIT license. |
6
6
 
7
7
  h2. About
8
8
 
9
- Localized @EachValidator@ is a subclass of ActiveRecord's @EachValidator@ that makes it easier to write a localized validator with Rails 3's localization. It's small and simple.
9
+ Localized @EachValidator@ is a subclass of ActiveRecord's @EachValidator@ that
10
+ makes it easier to write a localized validator with Rails 3's localization. It's
11
+ small and simple.
10
12
 
11
13
  h2. Usage
12
14
 
13
- Add this gem to your project's @Gemfile@, or to your own validator gem's dependencies. Then, sublass @LocalizedEachValidator@ and provide the @error_key@ and override the @valid?@ method, like so:
15
+ Add this gem to your project's @Gemfile@, or to your own validator gem's
16
+ dependencies. Then, sublass @LocalizedEachValidator@ and provide the @error_key@
17
+ and override the @valid?@ method, like so:
14
18
 
15
19
  <pre><code>
16
20
  class FourValidator < ActiveRecord::EachValidator
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -1,4 +1,5 @@
1
1
  require 'active_support/core_ext/hash/except'
2
+ require 'active_record'
2
3
 
3
4
  # An @EachValidator@ that uses the translation table to build its error
4
5
  # messages. Override the {#valid?} method to describe your validation
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{localized_each_validator}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tim Morgan"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tim Morgan
@@ -82,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
- hash: 4590308378211320386
85
+ hash: 2150682735534993403
86
86
  segments:
87
87
  - 0
88
88
  version: "0"