dry-struct 1.5.1 → 1.5.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
  SHA256:
3
- metadata.gz: 4875bdb8501964e23c1a10b3074e4e271fb3313c626f1142fcd357e6946be19d
4
- data.tar.gz: 1c73644bf0a068cb5c55e4dbb2ada2071446a83563f63e50fd3adb5043cac87d
3
+ metadata.gz: a1fd214f245f16f1977b1d02b0e701fbe506493068fb11ea8ab5a745e1036d09
4
+ data.tar.gz: ff59d0a4a1960e093fc835898b0d57f059ca0b13afd8b09a5053337ed9710017
5
5
  SHA512:
6
- metadata.gz: 0eab727ee4057dc0c22864cae090cf968cf726d5670b853edac1fcd5f3ba3e9411994e94b6e333de1a3f55c2cc50a9dcaa266a6e704e63e365289280d04f46d4
7
- data.tar.gz: 0e906ceeec35489db1b5884b45f137019a687ae8fbd1a7c22451350b742ab914c7cf46c1dad5e852994dac9acafb314b32d6118b59cd4bb9f097596f1e112187
6
+ metadata.gz: a61c9ef0cbe7da2d5f11337b4b70959e6cb38c36527af9257c9e0e7052127a7591a875f7220be23a997a23a26b6198363cea799bfd80ff65850cf80863244e3e
7
+ data.tar.gz: 294d536905db01df761924156f58f9bc58419046e28d983bc69ec014faecb88f0519870b7f73b9f4f569893433cdef13eb29a56359e61a9f27dcb4cfd52f3c82
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
2
2
 
3
+ ## 1.5.2 2022-10-19
4
+
5
+
6
+ ### Fixed
7
+
8
+ - Coercion failures keep the original error instead of just having a string (@flash-gordon)
9
+
10
+
11
+ [Compare v1.5.1...v1.5.2](https://github.com/dry-rb/dry-struct/compare/v1.5.1...v1.5.2)
12
+
3
13
  ## 1.5.1 2022-10-17
4
14
 
5
15
 
@@ -306,7 +306,7 @@ module Dry
306
306
  def try(input)
307
307
  success(self[input])
308
308
  rescue Error => e
309
- failure_result = failure(input, e.message)
309
+ failure_result = failure(input, e)
310
310
  block_given? ? yield(failure_result) : failure_result
311
311
  end
312
312
 
@@ -3,6 +3,6 @@
3
3
  module Dry
4
4
  class Struct
5
5
  # @private
6
- VERSION = "1.5.1"
6
+ VERSION = "1.5.2"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-17 00:00:00.000000000 Z
11
+ date: 2022-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-core