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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c61a21e873808ff9bdeb8207d230b5a97e0cfcb1
4
- data.tar.gz: 58a4295128b369931a1bf1e2449a5281f5e85de5
3
+ metadata.gz: daff35f830b5087605853e9e17b00de3db70ad17
4
+ data.tar.gz: c0eec497585316d0c51f653906acc8d5e09c33f8
5
5
  SHA512:
6
- metadata.gz: ca14625ea04518c7ea14c641e6d5339945fda18a7183756906cb82183452ba94b4db58bd379ec8d175c655b3d2b35470e776ccc4f39d63932c65c8216dfaad84
7
- data.tar.gz: 02f55fdae5f93a526b34880173f1ad3113a6f08f8d6e0af17d92af5fd0ff98af10cb761bfca9fa8e663555b04ac9127bc81abc7264b438be6d35ba7a7cb09d45
6
+ metadata.gz: 9b9a59e37acfbc782c0b6f35d062512c0de6e1b8a931310e8d91966081caafc979783cba6e092462d0197dd9eaf4b23638c2f48843c1f60776e94ac5640fb61a
7
+ data.tar.gz: 4bd46de5ca0212dc44d35bf4f9fd2b3acb8bbd3b26a3296cb099982c7dcee25d875521a4e71592b3f2793b6c278318472880118a0861452429f298771d756303
@@ -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.all? {|result| result == true}
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)
@@ -1,7 +1,7 @@
1
1
  module Dry
2
2
  module Validation
3
3
  module Matchers
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
6
6
  end
7
7
  end
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.1
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-06-01 00:00:00.000000000 Z
11
+ date: 2018-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport