cbor-diag 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cborseq2json.rb +10 -0
- data/bin/cborseq2yaml.rb +18 -0
- data/cbor-diag.gemspec +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 219440f7c8efe521712a5ff6e8d86f1e376500d79171dc9a4ddc35cfbbd29aaf
|
4
|
+
data.tar.gz: 80abd4c1066b9043fe545f1eb2d1f114b0fd7b0ee3f91cbcbe9c773380be05c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d99f7141a3869988774d483b28da6173e243e32d977f6a4d9bd1180efaf9d83aa199a27adc37a3dcb1d8fec01329cb4ef3d0be176d0ce4c7ce57d399cd42bee5
|
7
|
+
data.tar.gz: 261c34436a23e04ac2e8831946914585ca46464f5fd00eae106a51ca5340fc301519456bab25f893c368108742a567a72a4dcbe1bc4c6a0bc0c37e0726b13b27
|
data/bin/cborseq2json.rb
ADDED
data/bin/cborseq2yaml.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'psych.rb' # WTF
|
3
|
+
require 'yaml'
|
4
|
+
require 'cbor-pure'
|
5
|
+
|
6
|
+
class Array
|
7
|
+
def to_yaml_style()
|
8
|
+
all? {|x| Integer === x } && length < 20 ? :inline : super
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
ARGF.binmode
|
13
|
+
i = ARGF.read
|
14
|
+
while i != ''
|
15
|
+
o, i = CBOR.decode_with_rest(i)
|
16
|
+
puts YAML.dump(o)
|
17
|
+
end
|
18
|
+
|
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.3"
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carsten Bormann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -59,6 +59,8 @@ executables:
|
|
59
59
|
- cbor2json.rb
|
60
60
|
- cbor2pretty.rb
|
61
61
|
- cbor2yaml.rb
|
62
|
+
- cborseq2json.rb
|
63
|
+
- cborseq2yaml.rb
|
62
64
|
- diag2cbor.rb
|
63
65
|
- diag2pretty.rb
|
64
66
|
- json2cbor.rb
|
@@ -73,6 +75,8 @@ files:
|
|
73
75
|
- bin/cbor2json.rb
|
74
76
|
- bin/cbor2pretty.rb
|
75
77
|
- bin/cbor2yaml.rb
|
78
|
+
- bin/cborseq2json.rb
|
79
|
+
- bin/cborseq2yaml.rb
|
76
80
|
- bin/diag2cbor.rb
|
77
81
|
- bin/diag2pretty.rb
|
78
82
|
- bin/json2cbor.rb
|
@@ -106,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
110
|
version: '0'
|
107
111
|
requirements: []
|
108
112
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.7.
|
113
|
+
rubygems_version: 2.7.6
|
110
114
|
signing_key:
|
111
115
|
specification_version: 4
|
112
116
|
summary: CBOR (Concise Binary Object Representation) diagnostic notation
|