dcm 0.1.2 → 0.1.4
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/lib/cli.rb +5 -2
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d08dbbd9c98067cddadecdd96200ab51508c085483ae260d4d9d3c64e949ff2
|
4
|
+
data.tar.gz: 88239d9f2082394d6db31351547d563afc4cdf71f8364de54dc45f093987f09b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 298f17530932de73b0eb38b23d6fc6b5f1f83cc35813d991fe72731cfd5c1e188bf30e9a86a8acac3af359a61ba4ff3164eff38796a9189e06f56ecfff4e1f03
|
7
|
+
data.tar.gz: 80cdbfa554226c1d01f85f55048178b63e5b94bcb82ceab18a1b515b4f2d68028baf7b41aa9257d678829e1be9e370fdd189f8f045b9466d308b3b56e485f5bb
|
data/lib/cli.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require "rubygems"
|
2
2
|
require "bundler"
|
3
3
|
|
4
|
+
$LOAD_PATH.unshift "../automotive-ecu/lib"
|
5
|
+
|
4
6
|
require "ecu"
|
5
7
|
require "thor"
|
6
8
|
require "filesize"
|
@@ -39,8 +41,9 @@ module Dcm
|
|
39
41
|
end
|
40
42
|
|
41
43
|
desc "json FILE", "Convert all labels in FILE to JSON"
|
44
|
+
option :pretty, type: :boolean, aliases: ["-p"]
|
42
45
|
def json(file=nil)
|
43
|
-
display_list(list: parse_file(file), format: :json)
|
46
|
+
display_list(list: parse_file(file), format: :json, detail: options[:pretty])
|
44
47
|
end
|
45
48
|
|
46
49
|
desc "new [SPEC]", "Create a new dcm from scratch"
|
@@ -292,7 +295,7 @@ module Dcm
|
|
292
295
|
in :lab
|
293
296
|
puts list.to_lab
|
294
297
|
in :json
|
295
|
-
puts list.to_json
|
298
|
+
puts list.to_json(detail)
|
296
299
|
end
|
297
300
|
end
|
298
301
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dcm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Mueller
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.2.
|
19
|
+
version: 0.2.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.2.
|
26
|
+
version: 0.2.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: thor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|