cbor-diag 0.7.6 → 0.8.1

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: 94b3574121e832e41781f99faacfb3d3bb0e1e444df3fce1b6cd70f58329e690
4
- data.tar.gz: e1652badb328ae93c6037c264a46c5960172f20e84f2f23685bdc9f6bcce846c
3
+ metadata.gz: 6e70f398e625854b183df277bd5035b8604ef33db1dd7981c37c8a4f0499deea
4
+ data.tar.gz: f64b6a4be7317cc969338a35fd3f029898f91e2b21b60db4c8b5f5946f403b07
5
5
  SHA512:
6
- metadata.gz: 6d7e56e106693d746602e936772d15d2aefce325fea284a9ddcc4eecf0e79333c05577f2f4a0fa2600f7e415ab947df01b5ee0c4a67964f2b5de1559e9430331
7
- data.tar.gz: '09425230ba25ffe5b99e3725ad62408f893ee60257493ce3b4ea125254a4bdf6dd1fd36ccd9b846c028e570dce74f7e8147dde98488c864ed3e16c44b50a5a1f'
6
+ metadata.gz: 698c8d044dffd383f38fbe07940e4865fa6075db90fa1c69e9350add7b4e1ecc70cb39bee427951b5c79eda046e9a2c45fcd6eaef417c0c9e8c6eedbff6f8a94
7
+ data.tar.gz: a35b6183c2f9fbba915ae5dd5989b5fd75ba4d11be52941e68a7ede0d08a1588b771c2a76834d3f5a88d6e670a1ee856db1173502c9c0e161d2de9421f080eaa
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.7.6"
3
+ s.version = "0.8.1"
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"
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
 
19
19
  s.add_development_dependency 'bundler', '~>1'
20
20
  s.add_dependency 'treetop', '~>1'
21
- s.add_dependency 'json'
21
+ s.add_dependency 'json_pure'
22
22
  s.add_dependency 'neatjson'
23
23
  s.add_dependency 'cbor-deterministic'
24
24
  s.add_dependency 'cbor-canonical'
@@ -2497,7 +2497,11 @@ module CBOR_DIAG
2497
2497
  if last = t[-1]
2498
2498
  last << "=" * (4 - last.size)
2499
2499
  end
2500
- t.join.tr("-_", "+/").unpack("m0")[0]
2500
+ begin
2501
+ t.join.tr("-_", "+/").unpack("m0")[0]
2502
+ rescue ArgumentError
2503
+ raise ArgumentError.new("invalid base64 #{t}")
2504
+ end
2501
2505
  end
2502
2506
  end
2503
2507
 
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.7.6
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-23 00:00:00.000000000 Z
11
+ date: 2022-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1'
41
41
  - !ruby/object:Gem::Dependency
42
- name: json
42
+ name: json_pure
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  requirements: []
193
- rubygems_version: 3.3.3
193
+ rubygems_version: 3.3.11
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: CBOR (Concise Binary Object Representation) diagnostic notation