specstar-models 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specstar/models/validations.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f41a1f7f12720a9d0b82d36c428fdd9c93623aad
|
4
|
+
data.tar.gz: 3416740fccb336e41dddf9700184890f4f66c071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df2b6def7ebf9ec579b50b21499a1f42a4914414baf4c3237ef0d575be6e2b8404e70e4f39f7d36c1dc81ef873650d0080e8185764b5a895d267b535eebd85bd
|
7
|
+
data.tar.gz: 8375a1dd8e0e6c59cbeca540f9710c81267ca09f366cda63628315dc8b1c14c00a4c22c727d6cbe4b45245763e8e1808293b1f2093d59a62316ae0465f48ec21
|
@@ -92,7 +92,7 @@ module Specstar
|
|
92
92
|
match do |model|
|
93
93
|
(has_attribute?(model, attr) || has_association?(model, attr)) &&
|
94
94
|
model._validators[attr].select do |validator|
|
95
|
-
validator.instance_of?(
|
95
|
+
validator.instance_of?(ActiveModel::Validations::InclusionValidator) && validator.options.merge(options) == validator.options
|
96
96
|
end.size > 0
|
97
97
|
end
|
98
98
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specstar-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sujoy Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|