dry-types 1.3.0 → 1.3.1

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: 9d7b15ca8ad5ac777c21b3911c2f28cc01b5ec3b44b8d9d8b9c3d099a349b688
4
- data.tar.gz: c77acb5cfa7d0af802bd29b934336c361757b77cd6a4b2983a2501aac024d87d
3
+ metadata.gz: ed66b33141669159568a0253b4b22fd150eb1f669528cd746ef2a638f834a773
4
+ data.tar.gz: e777b61c64490bc51764ba3982155f0f317ddfdc0e5a40e93eb86b842bbc485c
5
5
  SHA512:
6
- metadata.gz: 47d4acd8c163f1515e74a1a8b7c7133df9bd484d4c8b972dece8cb9555f26f357d84d280fdac8cf917661d771eea08c8c86d84c60a5f3bfbccbaa3061af5be18
7
- data.tar.gz: c55776bb5acb2879788967d0dfd1f86a8b5379c048e5e2c0dca265ab2fb4a73149889674be2333a8b3b90c3f06e5fed09bd5ed005f75f9270bb4a5d12f07213f
6
+ metadata.gz: 202d3cbb44e8275b67f77d8e18300239096913b7a90c0b1cbef9cdff0978167341b33816d31f0f53f269e911dfe102a01a4df480e8a9d3f01dcec2ffccda6984
7
+ data.tar.gz: d5b0aa7fd4d7776d668ebbbf696a1fd9ec9ddb52e5cd5182377e7375b40d1e515a5d35e82aab947092eec3bb03ec31d2b38fae1c15b299f64e992064093d774f
@@ -1,3 +1,12 @@
1
+ ## 1.3.1 2020-02-17
2
+
3
+
4
+ ### Changed
5
+
6
+ - Predicate inferrer now returns `hash?` for hash schemas. Note, it doesn't spit more complex predstructuress because we have different plans for dry-schema (@flash-gordon)
7
+
8
+ [Compare v1.3.0...v1.3.1](https://github.com/dry-rb/dry-types/compare/v1.3.0...v1.3.1)
9
+
1
10
  ## 1.3.0 2020-02-10
2
11
 
3
12
 
@@ -10,7 +19,7 @@
10
19
  (Dry::Types['coercible.integer'] >> -> { _1 * 2 }).('99') # => 198
11
20
  ```
12
21
  - `Hash::Schema#clear` returns a schema with the same options but without keys
13
- - Optional namespace now includes strict types by default (@flash-gordon) strings already (@flash-gordon)"
22
+ - Optional namespace now includes strict types by default (@flash-gordon)
14
23
 
15
24
  ### Fixed
16
25
 
@@ -71,6 +71,7 @@ module Dry
71
71
  def visit_hash(_)
72
72
  HASH
73
73
  end
74
+ alias_method :visit_schema, :visit_hash
74
75
 
75
76
  # @api private
76
77
  def visit_array(_)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Types
5
- VERSION = '1.3.0'
5
+ VERSION = '1.3.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-types
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.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: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby