dcm 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/codinginfo.rb +13 -1
  3. data/lib/version.rb +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d6c6d8b3341afdbe2ee6d4fbb596409e364844ca8e16552e6b2deb22756609a
4
- data.tar.gz: 7881fdc1335265a96d70e88121dca3c5cfee693c328b1f8518a9952633e13bca
3
+ metadata.gz: 566406af32cf1b1fc52fd0efc038584ba2ebf65593a6320b9ca81f7039c005b4
4
+ data.tar.gz: df518e54f75ef0aae5aa6a13c004e43cc3f6658a69b79d929733a8d69ceee12e
5
5
  SHA512:
6
- metadata.gz: 246e46a81052ddb1c86a49c529979e7e9134b129b6d68d58756ce319b84453d2b9b9d155e424ff748eaea226ab40774f5f11971ee3a43df36374dd2b2bbbcf7e
7
- data.tar.gz: aaec1159240e20cc19caf6be99b9f8d62c6c8c04d40441957c6f1d34febc4de28dc069fac4aca833aa795a409524457e533b584af044349b4d2b62e067fbf141
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
@@ -1,3 +1,3 @@
1
1
  module Dcm
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
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.12
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 00:00:00.000000000 Z
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.7
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.7
26
+ version: 0.1.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement