bake-toolkit 2.48.1 → 2.48.2

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: 401b4b2e2ab91edbd4f2f660a183bc6380b7618d97dae6049370437f25bf0b2e
4
- data.tar.gz: 5c8166a43072d68dff6d5e770e4bcf9c3c29d954692f3724953e628f1c9f80b2
3
+ metadata.gz: b0a8b873c9ef3fd82a1bf99bf759f3e5c28724bbfd48512049de7f9a4bd185ad
4
+ data.tar.gz: 8976b3accc193478e53223ba9b9aae3a4a18af1a9d1ed30f32988277188c86db
5
5
  SHA512:
6
- metadata.gz: c32aa36c895f46216b50d37a5f5bdf755670f524350bf503246cceb440facf736488e123c6186ff5480f37d49df3f88c0483aee7d5aa07bf97f9314d9c5355aa
7
- data.tar.gz: f15e3699fefcd36b1d8c2c937caea2a67a967eca1bcce2c00cf95252c209aad2286e91f56542e4123e0c49d4fba4dd82aa0055820f5ed610ba51452b60167a32
6
+ metadata.gz: 79519eff2ea01179de9a9191ff6fb71a22249c3af16a83a440d8d81dd06a95aa7d8b63e28567da717c1616f5b5ed3e1987b9e2ca0cc3d8a7d5e6ce55eb79675f
7
+ data.tar.gz: 815dcd04763b289612b84882be0623687e0bc25c922433c482a975e156aac520c60e1c590a0d4fe41ce86a3acfe5edffbe1afff4b3d71259e1378774cd217ae0
data/bin/bakeqac CHANGED
@@ -188,7 +188,14 @@ $cmdRemoveLocks = qaExe + ["admin", "--qaf-project", @options.qacdata, "--remove
188
188
  success, consoleOutput, checkError = executeQacli(cmd, true)
189
189
 
190
190
  if success
191
- cct220 = (File.exist?(@options.qacdata+"/prqa/configs/Initial_Config/config") ? "configs/Initial_Config/" : "")
191
+ if File.exist?(@options.qacdata+"/prqa/configs/Initial/config")
192
+ cct220 = "configs/Initial/"
193
+ elsif File.exist?(@options.qacdata+"/prqa/configs/Initial_Config/config")
194
+ cct220 = "configs/Initial_Config/"
195
+ else
196
+ cct220 = ""
197
+ end
198
+
192
199
  cctFilename = @options.qacdata+"/prqa/" + cct220 + "config/" + File.basename(@options.cct[0])
193
200
  if File.exist?cctFilename
194
201
  File.open(cctFilename, 'a') do |f|
@@ -208,6 +215,8 @@ $cmdRemoveLocks = qaExe + ["admin", "--qaf-project", @options.qacdata, "--remove
208
215
  end
209
216
 
210
217
  end
218
+ else
219
+ Bake.formatter.printWarning("Could not find cct file in .qacdata folder")
211
220
  end
212
221
  else
213
222
  puts consoleOutput unless consoleOutput.empty?
@@ -30,6 +30,12 @@ module Bake
30
30
  configs.each do |config|
31
31
  if config.respond_to?("toolchain") and config.toolchain
32
32
  config.toolchain.compiler.each do |c|
33
+ puts c.ctype.class
34
+ puts c.ctype
35
+ if [:CPP,:C,:ASM].none? {|t| t == c.ctype}
36
+ Bake.formatter.printError("Type of compiler must be CPP, C or ASM", c)
37
+ ExitHelper.exit(1)
38
+ end
33
39
  if not c.internalDefines.nil? and c.internalDefines != ""
34
40
  Bake.formatter.printError("InternalDefines only allowed in DefaultToolchain", c.internalDefines)
35
41
  ExitHelper.exit(1)
@@ -48,6 +54,10 @@ module Bake
48
54
  Bake.formatter.printWarning("Lint support was removed. Please delete LintPolicy from Project.meta.", l)
49
55
  end
50
56
  config.defaultToolchain.compiler.each do |c|
57
+ if [:CPP,:C,:ASM].none? {|t| t == c.ctype}
58
+ Bake.formatter.printError("Type of compiler must be CPP, C or ASM", c)
59
+ ExitHelper.exit(1)
60
+ end
51
61
  if c.fileEndings && c.fileEndings.endings.empty?
52
62
  Bake.formatter.printError("FileEnding must not be empty.", c.fileEndings)
53
63
  ExitHelper.exit(1)
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.48.1"
4
+ "2.48.2"
5
5
  end
6
6
 
7
7
  def self.printBakeVersion(ry = "")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.48.1
4
+ version: 2.48.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Schaal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-20 00:00:00.000000000 Z
11
+ date: 2018-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtext