dcm 0.1.41 → 0.2.1

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: 893d24fa86203061555148240254ace73ba85975d36f9449cd74f599c88ee08e
4
- data.tar.gz: 89b17bfb7cee34c53740ef746caed7dc04dad53db24cf261b186ce561f0b870c
3
+ metadata.gz: 7b333172ac75b1d833635b9f904e958a7f3133171c79a768f61d0b9c998569f3
4
+ data.tar.gz: cd6008ab2fb0752fa5fcdbd202c1f83917d2ff0002752263b0303b025662ae77
5
5
  SHA512:
6
- metadata.gz: e0288e78d05b9839d1ba4fc52613122f42b998143e6809ec940755325386c94c877d7347afafaf40f5c3d97fa0a2d7ed28eecfad897ad337093b8f98fef16b4f
7
- data.tar.gz: d7d35172ec067a7ec121f4d5412a763f477f2cd5a9723f9daa1b9893b0dbf4748153d014af85dce13dbcf0173db5cda43733e1cca14c6fb8e41727cd4cb9246f
6
+ metadata.gz: 4e8f3adedacfc9b5498b71cd4d205be74bdc5ff136828d72234df9e97a99e7216176a03fbde70143e0620ece63d2511fb2246ce60016bcef8b6d73ab7d67e478
7
+ data.tar.gz: c1a1b44482b74ac929c754291fd703085d2e289ef0997d7e8c9ab7718b494ad41d6c53489a68b8ed447a41558c3f79672b41cf31c05ddbc4d47dd0190e1ff6a8
data/lib/codinginfo.rb CHANGED
@@ -182,7 +182,7 @@ class Codinginfo
182
182
  def parse_headers!(headers, row)
183
183
  return false unless row[1]&.match?(/SWFK-ID/)
184
184
  return false unless row[1]&.match?(/CVAR_BeguData/)
185
- return false unless row[2]&.match?(/Kommentar/)
185
+ return false unless row[2]&.match?(/Homologations-I-Stufe/)
186
186
 
187
187
  headers.replace(
188
188
  row
@@ -192,8 +192,11 @@ class Codinginfo
192
192
  .map { _1.sub(/\n.*/, "") }
193
193
  .tap { _1[0] = :typestr }
194
194
  .tap { _1[1] = :swfk_id } # SWFK-ID \nCVAR_BeguData"
195
- .tap { _1[row.index { it.match?("Typschlüssel") }] = :typekey }
196
- .tap { _1[row.index { it.match?("Entwicklungsbaureihe") }] = :devkey }
195
+ .tap { _1[row.index { |c| c.match?("Homologations-I-Stufe") }] = :hom_istep }
196
+ .tap { _1[row.index { |c| c.match?("Kommentar") }] = :comment }
197
+ .tap { _1[row.index { |c| c.match?("Gruppe") }] = :group }
198
+ .tap { _1[row.index { |c| c.match?("Typschlüssel") }] = :typekey }
199
+ .tap { _1[row.index { |c| c.match?("Entwicklungsbaureihe") }] = :devkey }
197
200
  )
198
201
  true
199
202
  end
@@ -15,8 +15,8 @@ module Dcm
15
15
  end
16
16
 
17
17
  def match?(headers, row)
18
- return false unless row[3]
19
- return false unless row[3].match?(/CVAR/)
18
+ return false unless row[headers.index(:group)]
19
+ return false unless row[headers.index(:group)].match?(/CVAR/)
20
20
  return false unless headers.include?(@key)
21
21
 
22
22
  matchers.any? { row[headers.index(@key)].match?(_1) }
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dcm
2
- VERSION = "0.1.41"
2
+ VERSION = "0.2.1"
3
3
  end
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.41
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Mueller
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 0.3.6
18
+ version: 0.4.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 0.3.6
25
+ version: 0.4.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: thor
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  - !ruby/object:Gem::Version
217
217
  version: '0'
218
218
  requirements: []
219
- rubygems_version: 4.0.16
219
+ rubygems_version: 4.0.23
220
220
  specification_version: 4
221
221
  summary: A small wrapper around the automotive-ecu API handling DCM files
222
222
  test_files: []