cbor-diag 0.9.2 → 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-diag-parser.rb +1 -1
- data/lib/cbor-pure.rb +2 -0
- 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: 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-diag-parser.rb
CHANGED
@@ -1546,7 +1546,7 @@ module CBOR_DIAG
|
|
1546
1546
|
app = a.text_value
|
1547
1547
|
# Find a better place to put a default initialization
|
1548
1548
|
CBOR_DIAG.const_set(:APPS, Hash.new { |h, k|
|
1549
|
-
h[k] = begin CBOR_DIAG.const_get("App_#{
|
1549
|
+
h[k] = begin CBOR_DIAG.const_get("App_#{k.downcase}")
|
1550
1550
|
rescue NameError
|
1551
1551
|
raise ArgumentError.new("cbor-diagnostic: application-oriented extension #{k}'' unknown or not enabled")
|
1552
1552
|
end
|
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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cbor-diag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carsten Bormann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|