dcm 0.0.12 → 0.0.14
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/variant_filter.rb +1 -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: a8abb2b792b5c5812089b86ac9e372a9132065a3bfe4af84237a09fe698dafba
|
4
|
+
data.tar.gz: c9ac3071a9938079dfb962d6faa786b332e498d2189e82994759315adb65d48b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdbce2e480eea6a04d638eb8e7d123ed263274a4185737214f21916431736a337cb3f2e70d407739974a8420b0e64175fc3e23f73754e65672685aedfc255041
|
7
|
+
data.tar.gz: 5ed2c8e70aff3a4c0e585610267355cb588bec4223d3f559ae2f865d333c213a034e10aa96fd4c8375b7de44722828ec164712fd0ead2a820ad78b29693e8ad8
|
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/variant_filter.rb
CHANGED
@@ -5,7 +5,7 @@ module Dcm
|
|
5
5
|
attr_reader :key, :matchers
|
6
6
|
def initialize(expr)
|
7
7
|
unless expr.match?(/^[\w_]+\:/) && ALLOWED_FILTERKEYS.include?(expr.split(":").first)
|
8
|
-
fail "Unknown filter expression #{expr}. "
|
8
|
+
fail "Unknown filter expression #{expr}. " +
|
9
9
|
"Syntax: (#{ALLOWED_FILTERKEYS.join("|")}):value[,value2]."
|
10
10
|
end
|
11
11
|
|
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.14
|
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
|