dry-validation-matchers 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/dry/validation/matchers/validate_matcher.rb +16 -3
- data/lib/dry/validation/matchers/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa11af6eff8f312ab0a780ff97982e5ab3f6996d
|
|
4
|
+
data.tar.gz: 73ab136c45063a1e077c94dbfc58f7647e8db3cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6e5358d83f4c74661a60056791b8c07527387ec600aaa43d8cfd1c27d557d0afc5c14b6855d4ce9a9fd3ea2719f023e3a5ec753ab7da0deac6ea2712e20db79
|
|
7
|
+
data.tar.gz: 33d00a86047db198f7aa50f03a5f1dc13d66ba4f4cad5123bf8d74a06f8a941b6d6a8f6b6943064b992e3907aae0697e814155e0a8d08b809b415e8c4ac82787
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
|
|
4
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
5
|
+
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
|
+
|
|
7
|
+
## [0.2.0] - 2016-11-08
|
|
8
|
+
### Added
|
|
9
|
+
- failure_message
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- Updated description
|
|
13
|
+
|
|
14
|
+
## [0.1.0] - 2016-11-08
|
|
15
|
+
### Added
|
|
16
|
+
- Initial working version
|
|
@@ -21,9 +21,22 @@ module Dry::Validation::Matchers
|
|
|
21
21
|
|
|
22
22
|
def description
|
|
23
23
|
@desc = []
|
|
24
|
-
@desc << "
|
|
25
|
-
@desc << "
|
|
26
|
-
@desc
|
|
24
|
+
@desc << "validation for #{@acceptance} `#{@attr}`"
|
|
25
|
+
@desc << " ("
|
|
26
|
+
@desc << "filled with #{@type}" if @check_filled
|
|
27
|
+
@desc << ")"
|
|
28
|
+
@desc << " exists"
|
|
29
|
+
@desc.join
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def failure_message
|
|
33
|
+
@desc = []
|
|
34
|
+
@desc << "validation for #{@acceptance} `#{@attr}`"
|
|
35
|
+
@desc << " ("
|
|
36
|
+
@desc << "filled with #{@type}" if @check_filled
|
|
37
|
+
@desc << ")"
|
|
38
|
+
@desc << " is lacking"
|
|
39
|
+
@desc.join
|
|
27
40
|
end
|
|
28
41
|
|
|
29
42
|
def matches?(schema_or_schema_class)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dry-validation-matchers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ramon Tayag
|
|
@@ -91,6 +91,7 @@ files:
|
|
|
91
91
|
- ".rspec"
|
|
92
92
|
- ".ruby-version"
|
|
93
93
|
- ".travis.yml"
|
|
94
|
+
- CHANGELOG.md
|
|
94
95
|
- CODE_OF_CONDUCT.md
|
|
95
96
|
- Gemfile
|
|
96
97
|
- LICENSE.txt
|