active_model_validates_intersection_of 2.0.0 → 3.0.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
  SHA256:
3
- metadata.gz: 59ae2f67a779e3ca3f4ebbe2c03f9bd0d2f42b27593257d19bf1fad4e809e1b5
4
- data.tar.gz: 3971f47f1e3590b402905bf85eb24de16f479b5158e3e2f27c159362f1abcb18
3
+ metadata.gz: 9ed1bdf75c9a416f57b7bfbde026eaf31a2b9663386df953ff7ed828ce41b5b6
4
+ data.tar.gz: 835d965a9ffc3e2727271a7a2e35b1e936be77d7ae93b12896d0a1693bb52116
5
5
  SHA512:
6
- metadata.gz: 90a6e3c5baed5ae0577ae27c05fb5028f65ec85937b56a115d875b4766792b4faee4bfd0cbee55bab27f8b604a804b2858600a9a15266665bddf4b78c7cb5ea0
7
- data.tar.gz: 29852c76c28a60f77386b89eceb45a793454c2b998c3b0b4a208686eed96705d44a7d7516deb89a43ca23de698937d5149905973272af829a061c5f205b0b748
6
+ metadata.gz: 31a485ee38ce7e938530eb28bbef35b9be11a003b41c3cd12294c4b71bdabc4fc7ddbed461118445ac1ff9d798a79e54d9bce5c3628ef9feb1e5e4033a5ba29a
7
+ data.tar.gz: 2f0384c4a8f23d7554df00a1d5300d6c125109f1b334f317ba4105c1af558d1526f0bddd6cd75bd9e0f9590fc745979db497a98612fef70f0f80c155deb1b3c2
data/.travis.yml CHANGED
@@ -4,7 +4,8 @@ rvm:
4
4
  - 2.3.6
5
5
  - 2.4.3
6
6
  - 2.5.0
7
- before_install: gem install bundler -v 1.15.0
7
+ - 3.0.1
8
+ before_install: gem install bundler -v 2.2.16
8
9
  before_script:
9
10
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
10
11
  - chmod +x ./cc-test-reporter
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v3.0.0 (2021-04-13)
2
+
3
+ - Ruby 3 support.
4
+
1
5
  ## v1.2.0 (2017-12-20)
2
6
 
3
7
  - Support for proc and lambda
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency "activemodel", ">= 5.0.0"
22
- spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "bundler", "~> 2.1"
23
23
  spec.add_development_dependency "rake", "~> 13.0"
24
24
  spec.add_development_dependency "rspec", "~> 3.0"
25
25
  spec.add_development_dependency "coveralls"
@@ -13,7 +13,7 @@ module ActiveModelValidatesIntersectionOf
13
13
  raise ArgumentError, "value must be an array" unless value.is_a?(Array)
14
14
 
15
15
  if (value - members(record)).any?
16
- record.errors.add(attribute, :inclusion, options.except(:in, :within).merge!(value: value))
16
+ record.errors.add(attribute, :inclusion, **options.except(:in, :within).merge!(value: value))
17
17
  end
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module ActiveModelValidatesIntersectionOf
2
- VERSION = "2.0.0".freeze
2
+ VERSION = "3.0.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_model_validates_intersection_of
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Biriba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-05 00:00:00.000000000 Z
11
+ date: 2021-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.3'
33
+ version: '2.1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.3'
40
+ version: '2.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -139,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubyforge_project:
143
- rubygems_version: 2.7.7
142
+ rubygems_version: 3.0.3
144
143
  signing_key:
145
144
  specification_version: 4
146
145
  summary: A custom validation for your Active Model that check if an array is included