blood_contracts-core 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -1
- data/blood_contracts-core.gemspec +1 -1
- data/lib/blood_contracts/core/sum_contract_failure.rb +12 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9bcde66911a41e7a783217e61da71e992bce8e6cfacaafb2217f5fec863179a
|
4
|
+
data.tar.gz: 60352a22922df76d5e3b0dedf1c26022c145399091058420c213be766c1fa246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bc8271f250e3883fc9c6d31a374f61827298863ed882d8fbea8884eaeabfe04acf3b7446bc666b1281b87b604adf03f8080aa058a0b180abc58f7e7f022d35a
|
7
|
+
data.tar.gz: d00d159c099baea8f0452333332b473ed0877b6c7dc564b91faf267bd5a829353c0fd3dd569dd6c9eda0af82a3a196d588d64c1f656b2efe2d71b5d65e675210
|
data/CHANGELOG.md
CHANGED
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
7
7
|
|
8
|
-
## [0.4.
|
8
|
+
## [0.4.4] - [2019-08-30]
|
9
9
|
|
10
10
|
Features/Fixes:
|
11
11
|
- Changed the way we treat context in Sum and Tuple. Each validation of those aggregations now uses its own context.
|
@@ -13,6 +13,8 @@ Features/Fixes:
|
|
13
13
|
If validation succeded we return the only valid context, otherwise if we failed on Tuple or Sum we return set of
|
14
14
|
contexts, to inspect why did validation fail.
|
15
15
|
|
16
|
+
## [0.4.3] - yanked
|
17
|
+
|
16
18
|
## [0.4.2] - [2019-08-29]
|
17
19
|
|
18
20
|
Features:
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module BloodContracts::Core
|
2
|
+
# Represents failure in Tuple data matching
|
3
|
+
class SumContractFailure < ContractFailure
|
4
|
+
# Accessor to contexts of Sum failed matches
|
5
|
+
#
|
6
|
+
# @return [Array<Hash>]
|
7
|
+
#
|
8
|
+
def contexts
|
9
|
+
@context[:sum_failure_contexts]
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blood_contracts-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Dolganov (sclinede)
|
@@ -115,6 +115,7 @@ files:
|
|
115
115
|
- lib/blood_contracts/core/pipe.rb
|
116
116
|
- lib/blood_contracts/core/refined.rb
|
117
117
|
- lib/blood_contracts/core/sum.rb
|
118
|
+
- lib/blood_contracts/core/sum_contract_failure.rb
|
118
119
|
- lib/blood_contracts/core/tuple.rb
|
119
120
|
- lib/blood_contracts/core/tuple_contract_failure.rb
|
120
121
|
- lib/blood_contracts/ext/symbolize_keys.rb
|