cbor-diag 0.5.10 → 0.5.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cbor2diag.rb +4 -2
- data/bin/cborseq2diag.rb +4 -2
- data/cbor-diag.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 799e03826e188ceb7e806525aef9d4971cea0053c07f1094bac526b1e99a29e7
|
4
|
+
data.tar.gz: 7efd3e6f5d50032221b1e2f04002f687d9aa6e68d4d1a8ba3ec8a64dc70abab0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bef058a2dff6cc52450725c59f965d97eb8e2fc95397aaf205edf02256b4421ae20915a43773b7114e00823ee981af5056077579209ecb2526b9253be04f1db7
|
7
|
+
data.tar.gz: e2d64f6f25f0be0830d1e7c3d19a7f14601468d620328e4d4697a786db15262a8e970745d3d162e617d2bd0ee1aecedbbb42dbff847e7770303de62f44983a3d
|
data/bin/cbor2diag.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
require 'cbor-diagnostic'
|
3
3
|
|
4
4
|
options = ''
|
5
|
-
while /\A-([
|
5
|
+
while /\A-([etu]+)\z/ === ARGV[0]
|
6
6
|
options << $1
|
7
7
|
ARGV.shift
|
8
8
|
end
|
@@ -10,4 +10,6 @@ end
|
|
10
10
|
ARGF.binmode
|
11
11
|
i = ARGF.read
|
12
12
|
o = CBOR.decode(i)
|
13
|
-
puts o.cbor_diagnostic(try_decode_embedded: /e/ === options,
|
13
|
+
puts o.cbor_diagnostic(try_decode_embedded: /e/ === options,
|
14
|
+
bytes_as_text: /t/ === options,
|
15
|
+
utf8: /u/ === options)
|
data/bin/cborseq2diag.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
require 'cbor-diagnostic'
|
3
3
|
|
4
4
|
options = ''
|
5
|
-
while /\A-([
|
5
|
+
while /\A-([etu]+)\z/ === ARGV[0]
|
6
6
|
options << $1
|
7
7
|
ARGV.shift
|
8
8
|
end
|
@@ -11,7 +11,9 @@ ARGF.binmode
|
|
11
11
|
i = ARGF.read
|
12
12
|
while !i.empty?
|
13
13
|
o, i = CBOR.decode_with_rest(i)
|
14
|
-
out = o.cbor_diagnostic(try_decode_embedded: /e/ === options,
|
14
|
+
out = o.cbor_diagnostic(try_decode_embedded: /e/ === options,
|
15
|
+
bytes_as_text: /t/ === options,
|
16
|
+
utf8: /u/ === options)
|
15
17
|
if i.empty?
|
16
18
|
puts out
|
17
19
|
else
|
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.11"
|
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"
|