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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5df15430a1bf5265d31d956adc4fe9e7abfcd751ba46d02954e1b8ae0d1f69bb
4
- data.tar.gz: d390207587ca466f1f749c346fe4cde529f04b4b97243fc39bdcd876af5ff894
3
+ metadata.gz: aacd139f2162dbafa7dfc5115fc3e8c4c9e3d0d82b3acef434a06cc328ea922b
4
+ data.tar.gz: 169159cc3576bf950650e5dd172cdd91020be9897a8115e6d700dee3414e0dce
5
5
  SHA512:
6
- metadata.gz: ab86b6fe3d69ce3f46d96b81334635b6993d78e9a4ac253df5c68deba23d6389e246b3c21c0945c24d0a7b8a255f861408f04b2fe3ef0d2738a17a17b1c710da
7
- data.tar.gz: 2623997c39731114615c7a9bd4610759f63fcd18c8b4d9945e15c932edea6a1c0741c65b884e48d65783f9cb166924f2d60cb1005cf95148a9863b853f95b207
6
+ metadata.gz: fd1a5a2c93f60f0ed90495063c80a09106426072d93823455ee3d9ef6d9cdb3b5d9b4d43a1b67e512e017519c3e540809f22ffa31e2a25fdb7df3ed89956cc23
7
+ data.tar.gz: '057891e5525f5b8e39af706e5913c0c1ec1451d6764d2c150458f6a7038cf799a0566bdaa379d1141591ee5d4c5a7ea9edbd1c2091d58440d99cdc403a485b23'
@@ -97,7 +97,11 @@ module TypedData
97
97
  when Schema::NullType
98
98
  converted_value = nil
99
99
  else
100
- converted_value = subtype.coerce(value).to_s
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?
@@ -1,3 +1,3 @@
1
1
  module TypedData
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-04-30 00:00:00.000000000 Z
11
+ date: 2020-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro