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 +4 -4
- data/cbor-diag.gemspec +2 -2
- data/lib/cbor-diag-parser.rb +5 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e70f398e625854b183df277bd5035b8604ef33db1dd7981c37c8a4f0499deea
|
4
|
+
data.tar.gz: f64b6a4be7317cc969338a35fd3f029898f91e2b21b60db4c8b5f5946f403b07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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 '
|
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'
|
data/lib/cbor-diag-parser.rb
CHANGED
@@ -2497,7 +2497,11 @@ module CBOR_DIAG
|
|
2497
2497
|
if last = t[-1]
|
2498
2498
|
last << "=" * (4 - last.size)
|
2499
2499
|
end
|
2500
|
-
|
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.
|
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-
|
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:
|
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.
|
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
|