cbor-diag 0.5.2 → 0.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cae376f67f107a4ed6bb608651c4bec9cb0cfcd5c1358b550de3526f8f0074b4
4
- data.tar.gz: f8bb4444a580def29def96821f5bf6b66df06a7952a408b519f53d4588671b1a
3
+ metadata.gz: 219440f7c8efe521712a5ff6e8d86f1e376500d79171dc9a4ddc35cfbbd29aaf
4
+ data.tar.gz: 80abd4c1066b9043fe545f1eb2d1f114b0fd7b0ee3f91cbcbe9c773380be05c8
5
5
  SHA512:
6
- metadata.gz: 4959ea26cad2ed447d866a2c10ef7dac25e43719c5b79056fdfa6162277904798fa95be5029b6ba9eca51e707487c97fe9a9647cb4257e685eebf7ae5d3fa2b0
7
- data.tar.gz: ddf871f586e7d120bb0395a6c52eba584116640edf9f88eee85e7ac289543c346f244cd7dac01e466d169327672004a36a3a20fae14753fe4594ba59ef8209aa
6
+ metadata.gz: d99f7141a3869988774d483b28da6173e243e32d977f6a4d9bd1180efaf9d83aa199a27adc37a3dcb1d8fec01329cb4ef3d0be176d0ce4c7ce57d399cd42bee5
7
+ data.tar.gz: 261c34436a23e04ac2e8831946914585ca46464f5fd00eae106a51ca5340fc301519456bab25f893c368108742a567a72a4dcbe1bc4c6a0bc0c37e0726b13b27
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ require 'json'
3
+ require 'cbor-pure'
4
+
5
+ ARGF.binmode
6
+ i = ARGF.read
7
+ while i != ''
8
+ o, i = CBOR.decode_with_rest(i)
9
+ puts JSON.pretty_generate(o)
10
+ end
@@ -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
+
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cbor-diag"
3
- s.version = "0.5.2"
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.2
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-01-17 00:00:00.000000000 Z
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.4
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