dcm 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/codinginfo.rb +13 -1
- data/lib/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 566406af32cf1b1fc52fd0efc038584ba2ebf65593a6320b9ca81f7039c005b4
|
4
|
+
data.tar.gz: df518e54f75ef0aae5aa6a13c004e43cc3f6658a69b79d929733a8d69ceee12e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58dfaf09bf316528e3e89673dbac84569049226bb8db76120dcedd866862a15eb97e5ae58db48d31d15b677820376119bbff9fa8a7a0538724830dd953ce733b
|
7
|
+
data.tar.gz: 54cf037e406d496ada46510043be829615bddc44cc1b394ebf6b93d4d52e62df54c0b81c564e3db1c9ef09818136de625a24d8afcc0ddee2bae421e1550ef7f5
|
data/lib/codinginfo.rb
CHANGED
@@ -45,6 +45,8 @@ class Codinginfo
|
|
45
45
|
.select { |key, _| key.match?(/^CVAR_/) }
|
46
46
|
.map { Cvar.new(name: _1, value: _2.to_i) }
|
47
47
|
end
|
48
|
+
|
49
|
+
def description = @properties[:swfk_id]
|
48
50
|
end
|
49
51
|
|
50
52
|
def initialize(filepath, filter)
|
@@ -93,6 +95,14 @@ class Codinginfo
|
|
93
95
|
@variants.first
|
94
96
|
end
|
95
97
|
|
98
|
+
def variants_description
|
99
|
+
[
|
100
|
+
"Created by dcm version #{Dcm::VERSION}",
|
101
|
+
"The following swfk_ids were matched:",
|
102
|
+
*@variants.map { " " + _1.description }
|
103
|
+
]
|
104
|
+
end
|
105
|
+
|
96
106
|
def unflatten_list(list)
|
97
107
|
fail "No variants found matching #{@filter}" if @variants.empty?
|
98
108
|
|
@@ -103,13 +113,15 @@ class Codinginfo
|
|
103
113
|
else
|
104
114
|
label
|
105
115
|
end
|
106
|
-
}.uniq
|
116
|
+
}.uniq,
|
117
|
+
variants_description
|
107
118
|
end
|
108
119
|
|
109
120
|
def flatten_list(list)
|
110
121
|
list
|
111
122
|
.select { !cvar_coded?(_1) || has_matching_cvar?(_1) }
|
112
123
|
.map_int { _1.with(name: remove_cvar_prefix(_1.name)) }
|
124
|
+
.with(headers: variants_description)
|
113
125
|
end
|
114
126
|
|
115
127
|
def cvar_coded?(label)
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dcm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Mueller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: automotive-ecu
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.
|
19
|
+
version: 0.1.8
|
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.1.
|
26
|
+
version: 0.1.8
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|