dry-types 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/dry/types/sum.rb +1 -6
- data/lib/dry/types/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53fb09e4940435c6775c332c8b3dbcbbbe994f94
|
4
|
+
data.tar.gz: 561ee9baa73b623b678151b01d70f3a89040830f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4d983849996f84999b48701afbb9e4aa93c598f534a05fcecce9e824a6c072d5817fd77455a2b2106d99d49cb8f89542b715ff2f0882b6e4d2c2ff61726bda0
|
7
|
+
data.tar.gz: b47ba832c1f69dd63a828d0afd915f5696f04124d40072a108d952b0443d4f3a8f78d4a30183c545c6d360ecb945f13d1ee7d04adfe411015c61c51d2b9895c3
|
data/CHANGELOG.md
CHANGED
data/lib/dry/types/sum.rb
CHANGED
@@ -25,11 +25,6 @@ module Dry
|
|
25
25
|
true
|
26
26
|
end
|
27
27
|
|
28
|
-
# @return [Boolean]
|
29
|
-
def optional?
|
30
|
-
left.primitive == NilClass
|
31
|
-
end
|
32
|
-
|
33
28
|
# @param [Object] input
|
34
29
|
# @return [Object]
|
35
30
|
# @raise [ConstraintError] if given +input+ not passing {#try}
|
@@ -72,7 +67,7 @@ module Dry
|
|
72
67
|
|
73
68
|
# @return [Boolean]
|
74
69
|
def optional?
|
75
|
-
left
|
70
|
+
left == Types['strict.nil']
|
76
71
|
end
|
77
72
|
|
78
73
|
# @param [Object] input
|
data/lib/dry/types/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
270
|
version: '0'
|
271
271
|
requirements: []
|
272
272
|
rubyforge_project:
|
273
|
-
rubygems_version: 2.6.
|
273
|
+
rubygems_version: 2.6.11
|
274
274
|
signing_key:
|
275
275
|
specification_version: 4
|
276
276
|
summary: Type system for Ruby supporting coercions, constraints and complex types
|