cbor-diag 0.5.9 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/cborseq2diag.rb +20 -0
- data/cbor-diag.gemspec +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6860bf8b982a54e759b642bce8fcfc410c944ffb194ebd76942a9d791108d2f2
|
4
|
+
data.tar.gz: d26df44cd7ff9616bf8ad80cc2785d633bdeb86e338084c3ce7b71fc4467ab5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1562d3a70922fd80e4a4721e377ae4de759bf018727f9918c4181e320427f39e03610ad1c9df0ca7189a8ad4cb6457b35ccc464fdefe883375f82ed6a91fb77f
|
7
|
+
data.tar.gz: 54a47f48c5fdea45e52c9e408118978ba924586835c7fe1efe03c1ece3a5c70ae72f09a140aecde8a6a06882ac822a35ad20de4451b388e3bcc7b1cd29ffb1f3
|
data/bin/cborseq2diag.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'cbor-diagnostic'
|
3
|
+
|
4
|
+
options = ''
|
5
|
+
while /\A-([et]+)\z/ === ARGV[0]
|
6
|
+
options << $1
|
7
|
+
ARGV.shift
|
8
|
+
end
|
9
|
+
|
10
|
+
ARGF.binmode
|
11
|
+
i = ARGF.read
|
12
|
+
while !i.empty?
|
13
|
+
o, i = CBOR.decode_with_rest(i)
|
14
|
+
out = o.cbor_diagnostic(try_decode_embedded: /e/ === options, bytes_as_text: /t/ === options)
|
15
|
+
if i.empty?
|
16
|
+
puts out
|
17
|
+
else
|
18
|
+
print out << ', '
|
19
|
+
end
|
20
|
+
end
|
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.5.
|
3
|
+
s.version = "0.5.10"
|
4
4
|
s.summary = "CBOR (Concise Binary Object Representation) diagnostic notation"
|
5
5
|
s.description = %q{cbor-diag implements diagnostic notation for CBOR, RFC 7049}
|
6
6
|
s.author = "Carsten Bormann"
|
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.5.
|
4
|
+
version: 0.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carsten Bormann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -74,6 +74,7 @@ executables:
|
|
74
74
|
- cbor2pretty.rb
|
75
75
|
- cbor2yaml.rb
|
76
76
|
- cborleader2diag.rb
|
77
|
+
- cborseq2diag.rb
|
77
78
|
- cborseq2json.rb
|
78
79
|
- cborseq2neatjson.rb
|
79
80
|
- cborseq2yaml.rb
|
@@ -92,6 +93,7 @@ files:
|
|
92
93
|
- bin/cbor2pretty.rb
|
93
94
|
- bin/cbor2yaml.rb
|
94
95
|
- bin/cborleader2diag.rb
|
96
|
+
- bin/cborseq2diag.rb
|
95
97
|
- bin/cborseq2json.rb
|
96
98
|
- bin/cborseq2neatjson.rb
|
97
99
|
- bin/cborseq2yaml.rb
|