dry-schema 0.5.0 → 0.5.1

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: 91cccc18d1227997d8a7d14d0e73372625e11f3180bf0dede6ec38dc60e9acde
4
- data.tar.gz: d900bd76107b6ac3825a32ead9e0a9818426a96d7ee4b591c55a49e53b84e79f
3
+ metadata.gz: 54ad785d21fdbf5667423a7c41f683215867e8dfbd2c82234f3858c62bbc39b8
4
+ data.tar.gz: ad71d8f35aa735d1c9320bbbadf558d7a5179e5cc2fff852be48ab7bb160097d
5
5
  SHA512:
6
- metadata.gz: e7457d70d6e82e2691d067ebf33c9fa1512938856bfda50304f20010e2b3313804b37215acd972e659968af60dc317d2771e8efa017dc0b43072d3aef7008a9b
7
- data.tar.gz: 81467419fdc896a52e9013677d17b0c9cfd91e16ea4323efb007554899eb69e43a7c20b5426eb5213687631ed5e04e34f79fbf780e9e9d4748a1971faa4385c0
6
+ metadata.gz: 5e41be204814d185eac41031ea224f29dcfbbe92af606cabd4383dc87da9dc969a1340c7a87e5ac5a9274a74aeac829f6aa0dac92ed4208e0ffcfd2c93cf0c96
7
+ data.tar.gz: 41cf9a8a6e3d2acaa7c4e6cef3cbb56d80e36763f4b9fedaecb2f609751e495e89fc39649c467ad918ddd93b21be3a5bbe9fceaf7cb758af8c81cadddda54167
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 0.5.1 2019-04-17
2
+
3
+ ### Fixed
4
+
5
+ * Key map no longer crashes on unexpected input (issue #118) (solnic)
6
+
7
+ [Compare v0.5.0...v0.5.1](https://github.com/dry-rb/dry-schema/compare/v0.5.0...v0.5.1)
8
+
1
9
  # 0.5.0 2019-04-04
2
10
 
3
11
  ### Added
@@ -29,6 +37,7 @@
29
37
 
30
38
  ### Fixed
31
39
 
40
+ * Inferring predicates doesn't crash when `Any` type is used (flash-gordon)
32
41
  * Inferring type specs when type is already set works correctly (solnic)
33
42
 
34
43
  ### Changed
@@ -46,6 +46,8 @@ module Dry
46
46
 
47
47
  # @api private
48
48
  def read(source)
49
+ return unless source.is_a?(::Hash)
50
+
49
51
  if source.key?(name)
50
52
  yield(source[name])
51
53
  elsif source.key?(coerced_name)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Schema
5
- VERSION = '0.5.0'
5
+ VERSION = '0.5.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-04 00:00:00.000000000 Z
11
+ date: 2019-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby