typed_data 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/typed_data/converter.rb +5 -1
- data/lib/typed_data/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aacd139f2162dbafa7dfc5115fc3e8c4c9e3d0d82b3acef434a06cc328ea922b
|
4
|
+
data.tar.gz: 169159cc3576bf950650e5dd172cdd91020be9897a8115e6d700dee3414e0dce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd1a5a2c93f60f0ed90495063c80a09106426072d93823455ee3d9ef6d9cdb3b5d9b4d43a1b67e512e017519c3e540809f22ffa31e2a25fdb7df3ed89956cc23
|
7
|
+
data.tar.gz: '057891e5525f5b8e39af706e5913c0c1ec1451d6764d2c150458f6a7038cf799a0566bdaa379d1141591ee5d4c5a7ea9edbd1c2091d58440d99cdc403a485b23'
|
data/lib/typed_data/converter.rb
CHANGED
@@ -97,7 +97,11 @@ module TypedData
|
|
97
97
|
when Schema::NullType
|
98
98
|
converted_value = nil
|
99
99
|
else
|
100
|
-
|
100
|
+
if type.nullable_single?
|
101
|
+
converted_value = subtype.coerce(value)
|
102
|
+
else
|
103
|
+
converted_value = subtype.coerce(value).to_s
|
104
|
+
end
|
101
105
|
end
|
102
106
|
|
103
107
|
if type.nullable_single?
|
data/lib/typed_data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typed_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- abicky
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro
|