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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f01333932a6fb7c1479a0c82afb49fbc52ce8f854675b5b9c7340bfe6251a4e
4
- data.tar.gz: 6e5b104bbf7214ea2104e07681f48dfb84e5de1c3b2f4fdb8e47609616d29b62
3
+ metadata.gz: 8d480918da78cb7f8d00b412cdccf4e4ff218f0c1ca798727a9404f7089bc350
4
+ data.tar.gz: a9dd918fe4738aef2b13784f46fe95df4ed2943edb9d74b30a88435a5a991bfb
5
5
  SHA512:
6
- metadata.gz: 58e2602d6c645d2f22f99293be8708d16f56adc2def08d59f2f231e561e9a71f7a6a71759f4c3a2bf6d1305498c5aa29abf6ecca22309925791145bdeb246cf0
7
- data.tar.gz: 14a216acb543617fae6713a2742f9ab40861f609bd55cdadd05eb71094e5abd393e0d60725ec42fc5fe8e9402141b359fb706ade71faa6c695407adec0f4c877
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.2"
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"
@@ -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_#{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.2
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-07 00:00:00.000000000 Z
11
+ date: 2024-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler