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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf9fc4121fbf8d1f0b7ccbef5feea8337bddaffe58035359a0eb8ff0617337c9
4
- data.tar.gz: e697e1e0c1ef8fd849a243e083b45a1dc0ea18a9998feb3fd63c4d709b220b12
3
+ metadata.gz: b9bcde66911a41e7a783217e61da71e992bce8e6cfacaafb2217f5fec863179a
4
+ data.tar.gz: 60352a22922df76d5e3b0dedf1c26022c145399091058420c213be766c1fa246
5
5
  SHA512:
6
- metadata.gz: 12cad0640c0a2eab92e5189ff7a658bf0e93b055e0ef4fac15e16c3d6083a9e4463673d1be916a73b9e32b626c7c2e98d0f4e0af34164081296c0a7114284fea
7
- data.tar.gz: 251436c1bbef4e1736140f0dd01625ede3ab08f689ad0af0f91ad1e32a6dd7758720ba8a5e11cefed729915bf3c98fac8692c34f8613eb9bd60d7f6983876a34
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.3] - [2019-08-30]
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:
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "blood_contracts-core"
3
- gem.version = "0.4.3"
3
+ gem.version = "0.4.4"
4
4
  gem.authors = ["Sergey Dolganov (sclinede)"]
5
5
  gem.email = ["sclinede@evilmartians.com"]
6
6
 
@@ -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.3
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