activerecord-databasevalidations 0.2.6 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 773b5d266abadfa6217235afa17fd1bd36a94bf2
4
- data.tar.gz: 329ce44970fde33714067d8ee71765039850aac3
3
+ metadata.gz: aeb9fa64fe237e89b17e1f7e7cc9019ed6e16c92
4
+ data.tar.gz: b7efe30384468425e438904a4670ad852412df3b
5
5
  SHA512:
6
- metadata.gz: b4733b9f3b656c5baf7a94fb19bf3851f04ae9c69a0264814be7db8b24c37f82e7c8d6bc91f4e0683d9674279875a69e26e8bebbe38854face905b55fdbaa288
7
- data.tar.gz: d5089f0a50188e16e6d952c992198795555d7a8a6c0c495fbda0beb442e6610c2dfe749571b23a518338202568f5e1c488b8cd9c42d86272af97fb6fa5e79205
6
+ metadata.gz: 420b1b6dd7603ba7a604f6e93f0ca68f05b88fb64d43427079c3cd05dcb1ad0cfb55aedec7a859c710f809028c36cb32b4942b5c646a78af8258cf343791d55e
7
+ data.tar.gz: 69f7e812f395c42f69b0fc1dda70744ad92c7649977aa7a8ee758bbfdfa62c9e6d0ee5fd8cad2ac80c5daca58e930333673b5472690c2a24715edf95f155a491
@@ -12,11 +12,14 @@ gemfile:
12
12
  - Gemfile.activerecord41
13
13
  - Gemfile.activerecord42
14
14
  - Gemfile.activerecord50
15
+ - Gemfile.activerecord51
15
16
 
16
17
  matrix:
17
18
  exclude:
18
19
  - rvm: 2.1.8
19
20
  gemfile: Gemfile.activerecord50
21
+ - rvm: 2.1.8
22
+ gemfile: Gemfile.activerecord51
20
23
 
21
24
  before_script:
22
25
  - mysql -e 'create database database_validations;'
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ gem 'activerecord', '~> 5.1.0'
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "activerecord", ">= 4.0", "< 5.1"
21
+ spec.add_runtime_dependency "activerecord", ">= 4.0", "< 5.2"
22
22
  spec.add_runtime_dependency "rejectu"
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.5"
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module DatabaseValidations
3
- VERSION = "0.2.6"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -75,9 +75,9 @@ module ActiveRecord
75
75
  end
76
76
  end
77
77
 
78
- def validate_each(record, attribute, value)
78
+ def validate_each(record, attribute, _value)
79
79
  attribute_validators(record.class, attribute).each do |validator|
80
- validator.validate_each(record, attribute, value)
80
+ validator.validate(record)
81
81
  end
82
82
  end
83
83
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-databasevalidations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willem van Bergen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-23 00:00:00.000000000 Z
11
+ date: 2017-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '4.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.1'
22
+ version: '5.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '4.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.1'
32
+ version: '5.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rejectu
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -116,6 +116,7 @@ files:
116
116
  - Gemfile.activerecord41
117
117
  - Gemfile.activerecord42
118
118
  - Gemfile.activerecord50
119
+ - Gemfile.activerecord51
119
120
  - LICENSE.txt
120
121
  - README.md
121
122
  - Rakefile
@@ -163,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
164
  version: '0'
164
165
  requirements: []
165
166
  rubyforge_project:
166
- rubygems_version: 2.5.1
167
+ rubygems_version: 2.6.11
167
168
  signing_key:
168
169
  specification_version: 4
169
170
  summary: Add validations to your ActiveRecord models based on MySQL database constraints.