association_validator 0.5.2 → 0.5.4

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/README.textile CHANGED
@@ -1,13 +1,17 @@
1
1
  h1. How to use
2
2
 
3
3
  Validate that the id field is a saved record. It will ignore blank fields, so use presence if you need it.
4
- validates :from_age_record_id, :presence => true, :association => {:class_name => 'AgeRecord'}
5
- validates :user_id, :presence => true, :association => true
4
+ <pre><code>validates :from_age_record_id, :presence => true, :association => {:class_name => 'AgeRecord'}
5
+ validates :user_id, :presence => true, :association => true</code></pre>
6
+
7
+ You can also set the message using the :message option:
8
+ <pre><code>validates :user_id, :association => {:message => 'was unretrievable'}</code></pre>
9
+
6
10
 
7
11
  h1. How to install
8
12
 
9
13
  Add the following line to your bundle and install.
10
- gem 'association_validator'
14
+ <pre><code>gem 'association_validator'</code></pre>
11
15
 
12
16
  h2. Todo
13
17
 
data/README.txt CHANGED
@@ -2,11 +2,12 @@
2
2
  Validate that the id field is a saved record. It will ignore blank fields, so use presence if you need it.
3
3
  validates :from_age_record_id, :presence => true, :association => {:class_name => 'AgeRecord'}
4
4
  validates :user_id, :presence => true, :association => true
5
+
5
6
  You can also set the message using the :message option:
6
7
  validates :user_id, :association => {:message => 'was unretrievable'}
7
8
 
8
9
  === How to install
9
- Add the following line to your bundle and install.
10
+ Add the following line to your Gemfile and install.
10
11
  gem 'association_validator'
11
12
 
12
13
  === Todo
data/Rakefile CHANGED
@@ -2,11 +2,11 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('association_validator', '0.5.2') do |p|
5
+ Echoe.new('association_validator', '0.5.4') do |p|
6
6
  p.description = "Rails 3 assocation validation for id fields"
7
7
  p.url = "http://github.com/TheEmpty"
8
8
  p.author = "Mohammad El-Abid"
9
9
  p.email = "mohammad {dot} elabid {at} gmail"
10
10
  p.ignore_pattern = []
11
- p.development_dependencies = [["activemodel", ">= 3.0.0"]]
11
+ p.runtime_dependencies = [["activemodel", ">= 3.0.0"]]
12
12
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{association_validator}
5
- s.version = "0.5.2"
5
+ s.version = "0.5.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Mohammad El-Abid"]
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.specification_version = 3
23
23
 
24
24
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
25
- s.add_development_dependency(%q<activemodel>, [">= 3.0.0"])
25
+ s.add_runtime_dependency(%q<activemodel>, [">= 3.0.0"])
26
26
  else
27
27
  s.add_dependency(%q<activemodel>, [">= 3.0.0"])
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: association_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,15 +14,15 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
17
- requirement: &27259968 !ruby/object:Gem::Requirement
17
+ requirement: &27813468 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: 3.0.0
23
- type: :development
23
+ type: :runtime
24
24
  prerelease: false
25
- version_requirements: *27259968
25
+ version_requirements: *27813468
26
26
  description: Rails 3 assocation validation for id fields
27
27
  email: mohammad {dot} elabid {at} gmail
28
28
  executables: []