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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d97acc1ec48095720ba158c2240461a123732e9
4
- data.tar.gz: 2f23cb9134db7fbeb76b55e46cc2416f003e8406
3
+ metadata.gz: fa11af6eff8f312ab0a780ff97982e5ab3f6996d
4
+ data.tar.gz: 73ab136c45063a1e077c94dbfc58f7647e8db3cb
5
5
  SHA512:
6
- metadata.gz: ad57e3464b073091197dfaf57aad6971ac7a8c8cd4a6ec00966345c40e1347d627f73a2fad17387ef5c33000bf22bff9e11953f8a2066781bfeffab255eaf965
7
- data.tar.gz: 520c71de7a565ea495913dbfa76bf834efa6296977d5684666e73f30cd5652dba260c03cff6135a49d5cd5e8928e4f07290c41529624a42c5c72534989bba046
6
+ metadata.gz: f6e5358d83f4c74661a60056791b8c07527387ec600aaa43d8cfd1c27d557d0afc5c14b6855d4ce9a9fd3ea2719f023e3a5ec753ab7da0deac6ea2712e20db79
7
+ data.tar.gz: 33d00a86047db198f7aa50f03a5f1dc13d66ba4f4cad5123bf8d74a06f8a941b6d6a8f6b6943064b992e3907aae0697e814155e0a8d08b809b415e8c4ac82787
@@ -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 << "validate attribute `#{@attr}` is #{@acceptance}"
25
- @desc << "must be filled with #{@type}" if @check_filled
26
- @desc.to_sentence
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)
@@ -1,7 +1,7 @@
1
1
  module Dry
2
2
  module Validation
3
3
  module Matchers
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
6
6
  end
7
7
  end
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.1.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