cbor-diag 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cbor-diag.gemspec +1 -1
- data/lib/cbor-pure.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d480918da78cb7f8d00b412cdccf4e4ff218f0c1ca798727a9404f7089bc350
|
4
|
+
data.tar.gz: a9dd918fe4738aef2b13784f46fe95df4ed2943edb9d74b30a88435a5a991bfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34e037c18cb38a009ff233369466dab741ad244cd5116b7d8a054614c55b6e70fe5cec2599cf4e88af2ab01e59f700e64c56d07f1b855eefb9da0a860eacdd11
|
7
|
+
data.tar.gz: 27d71d7b0463c202b21f24e30ec9a9cc4a0cd5b62141c11dd243169db48d1ba39515296f5d7a30456bae32796b0b892468b274f9f9768082200640dd064a67e6
|
data/cbor-diag.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cbor-diag"
|
3
|
-
s.version = "0.9.
|
3
|
+
s.version = "0.9.4"
|
4
4
|
s.summary = "CBOR (Concise Binary Object Representation) diagnostic notation"
|
5
5
|
s.description = %q{cbor-diag implements diagnostic notation for CBOR, RFC 8949 and RFC 8742}
|
6
6
|
s.author = "Carsten Bormann"
|
data/lib/cbor-pure.rb
CHANGED
@@ -258,12 +258,14 @@ module CBOR
|
|
258
258
|
result = subs.join.cbor_stream!(subs.map(&:length)).force_encoding(want_encoding)
|
259
259
|
when 4
|
260
260
|
result = Array.new;
|
261
|
+
result.cbor_stream!
|
261
262
|
while (element = decode_item(true)) != BREAK
|
262
263
|
result << element
|
263
264
|
end
|
264
265
|
result
|
265
266
|
when 5
|
266
267
|
result = Hash.new
|
268
|
+
result.cbor_stream!
|
267
269
|
while (key = decode_item(true)) != BREAK
|
268
270
|
result[key] = decode_item
|
269
271
|
end
|