dry-struct 1.5.0 → 1.5.2

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
  SHA256:
3
- metadata.gz: b4e5c0ce0e83f1e4c7308d2d6ee56ac5397d3960a455e2c0818036a67fe5d63a
4
- data.tar.gz: 77add215b7f8f7f84b9a4e70a76cdfa03fa0ddf63f51ae549652398bb8ec0b84
3
+ metadata.gz: a1fd214f245f16f1977b1d02b0e701fbe506493068fb11ea8ab5a745e1036d09
4
+ data.tar.gz: ff59d0a4a1960e093fc835898b0d57f059ca0b13afd8b09a5053337ed9710017
5
5
  SHA512:
6
- metadata.gz: 00b42458408d8bd72847b19a0564ae1909ff9d88235d2a8a1769638bda63f088429464983fd108b532af09d61583e6500566f6ea9391eda84b6c937d0844cff9
7
- data.tar.gz: ed436e9e01d782dd717d0a67ae98813c0398631d10a81e367355eaae9e870c7580f2c840644577ee2ad8fa651264dd0c5d437a896a2d906b038d2659de54195e
6
+ metadata.gz: a61c9ef0cbe7da2d5f11337b4b70959e6cb38c36527af9257c9e0e7052127a7591a875f7220be23a997a23a26b6198363cea799bfd80ff65850cf80863244e3e
7
+ data.tar.gz: 294d536905db01df761924156f58f9bc58419046e28d983bc69ec014faecb88f0519870b7f73b9f4f569893433cdef13eb29a56359e61a9f27dcb4cfd52f3c82
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
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
+
13
+ ## 1.5.1 2022-10-17
14
+
15
+
16
+ ### Fixed
17
+
18
+ - Fixed issues with auto-loading `Extensions` module (issue #183 fixed via #184) (@solnic)
19
+
20
+
21
+ [Compare v1.5.0...v1.5.1](https://github.com/dry-rb/dry-struct/compare/v1.5.0...v1.5.1)
22
+
3
23
  ## 1.5.0 2022-10-15
4
24
 
5
25
 
@@ -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.0"
6
+ VERSION = "1.5.2"
7
7
  end
8
8
  end
data/lib/dry/struct.rb CHANGED
@@ -99,7 +99,8 @@ module Dry
99
99
  loader.push_dir(root)
100
100
  loader.ignore(
101
101
  "#{root}/dry-struct.rb",
102
- "#{root}/dry/struct/{class_interface,errors,extensions,printer,value,version}.rb"
102
+ "#{root}/dry/struct/{class_interface,errors,extensions,printer,value,version}.rb",
103
+ "#{root}/dry/struct/extensions"
103
104
  )
104
105
  end
105
106
  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.0
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-15 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