dry-validation-matchers 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/dry/validation/matchers/validate_matcher.rb +1 -1
- data/lib/dry/validation/matchers/version.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: daff35f830b5087605853e9e17b00de3db70ad17
|
4
|
+
data.tar.gz: c0eec497585316d0c51f653906acc8d5e09c33f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b9a59e37acfbc782c0b6f35d062512c0de6e1b8a931310e8d91966081caafc979783cba6e092462d0197dd9eaf4b23638c2f48843c1f60776e94ac5640fb61a
|
7
|
+
data.tar.gz: 4bd46de5ca0212dc44d35bf4f9fd2b3acb8bbd3b26a3296cb099982c7dcee25d875521a4e71592b3f2793b6c278318472880118a0861452429f298771d756303
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## [0.4.2] - 2018-08-23
|
8
|
+
### Fixed
|
9
|
+
- [Fix false positive on value(included_in:) matcher](https://github.com/bloom-solutions/dry-validation-matchers/pull/10)
|
10
|
+
|
7
11
|
## [0.4.1] - 2018-06-01
|
8
12
|
### Fixed
|
9
13
|
- [Fix date_time type error message](https://github.com/bloom-solutions/dry-validation-matchers/pull/9)
|
@@ -173,7 +173,7 @@ module Dry::Validation::Matchers
|
|
173
173
|
result = schema.(@attr => v)
|
174
174
|
error_messages = result.errors[@attr]
|
175
175
|
error_messages.present? && error_messages.grep(/must be one of/).any?
|
176
|
-
end.
|
176
|
+
end.any? {|result| result == true}
|
177
177
|
return false if invalid_for_expected_values
|
178
178
|
|
179
179
|
value_outside_required = allowed_values.sample.to_s + SecureRandom.hex(2)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-validation-matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon Tayag
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|