dry-types 0.13.1 → 0.13.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: caa242342e42e0cd3598389c374a373e5937189f9c873dcd922a9d42d280a2d5
4
- data.tar.gz: 719d861aa75a9c163d4a12784dc20a9d28fcf156c82e588049b1178959d59aea
3
+ metadata.gz: d7399dfa5c9458f87055807c64d0fcb7be54517c171a3cf198c485fb7ce3ef5c
4
+ data.tar.gz: 9e47f234bbd30a8883977c524bde4211704a04d7680d332061c5825aa600de98
5
5
  SHA512:
6
- metadata.gz: a30fdd64b3d6f737f915da9219907d74ddbace66e702ec1f7ea0d40af7bfeee27bc2711d910c8d95933fbeee65644177713b88bf65a915352ff83ecd611785b5
7
- data.tar.gz: 3203558d4b9cede5cdaf162637de1bc4453c938d18de5e47286f05fffccfe79be36403799ea2b25f3bbbf107b839931c5f398a9b3d0a91d8b25ab56a2fe40cc3
6
+ metadata.gz: ebb5e60b9b7ade7ca10f49616b2a985beda12e43ced6477af470ad7d8dfb7b60846e0553fbff4b0c54b6f3eb589ae6feb9b445f5fdc357272fe08a2ba7852baf
7
+ data.tar.gz: cf7520decd6f3df3d90837adc14bfcefb2544fd7ea53b6f315a2c0f90cc67f5808a6d8a79e9ce8332a7f7e62591f69010bfa1a58241db1fab445f38780534e70
@@ -1,3 +1,25 @@
1
+ # v0.13.2 2018-05-30
2
+
3
+ ## Fixed
4
+
5
+ * `Defaults#valid?` now works fine when passing `Dry::Core::Constans::Undefined` as value (GustavoCaso)
6
+ * `valid?` for constructor types wrapping `Sum`s (GustavoCaso)
7
+
8
+ [Compare v0.13.1...v0.13.2](https://github.com/dry-rb/dry-types/compare/v0.13.1...v0.13.2)
9
+
10
+ # v0.13.1 2018-05-28
11
+
12
+ ## Fixed
13
+
14
+ * Defaults now works fine with meta (GustavoCaso)
15
+ * Defaults are now re-decorated properly (flash-gordon)
16
+
17
+ ## Added
18
+
19
+ * `params.int` was added to make the upgrade process in dry-validation smoother (available after you `require 'dry/types/compat/int'`) (flash-gordon)
20
+
21
+ [Compare v0.13.0...v0.13.1](https://github.com/dry-rb/dry-types/compare/v0.13.0...v0.13.1)
22
+
1
23
  # v0.13.0 2018-05-03
2
24
 
3
25
  ## Changed
@@ -79,7 +79,7 @@ module Dry
79
79
  # @param [Object] value
80
80
  # @return [Boolean]
81
81
  def valid?(value)
82
- super && type.valid?(value)
82
+ type.valid?(value)
83
83
  end
84
84
  alias_method :===, :valid?
85
85
 
@@ -57,6 +57,10 @@ module Dry
57
57
  success(call(input))
58
58
  end
59
59
 
60
+ def valid?(value = Undefined)
61
+ value.equal?(Undefined) || super
62
+ end
63
+
60
64
  # @param [Object] input
61
65
  # @return [Object] value passed through {#type} or {#default} value
62
66
  def call(input = Undefined)
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module Types
3
- VERSION = '0.13.1'.freeze
3
+ VERSION = '0.13.2'.freeze
4
4
  end
5
5
  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: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-28 00:00:00.000000000 Z
11
+ date: 2018-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby