bake-toolkit 2.38.0 → 2.38.1

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/bin/bakeqac +1 -2
  3. data/lib/common/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8fe8160f5c00bfbdb0b8f53dd51f34de03c113da
4
- data.tar.gz: 19b60b81d616cb347710c196b0a35cfd49a843b1
3
+ metadata.gz: 34760b587679dddb740e5319f8e0572fa3df52fa
4
+ data.tar.gz: 0f3919e3affd46fde938a57bae38345ce0085f41
5
5
  SHA512:
6
- metadata.gz: a85cee46490cb6e671fd30d4b8f0d8eb25a5bede3ddd81b9de2fe7e4aff56f4cfd2538c4d52939d5a2b71ea7b4bc75682971a9c688e8ebd0866fe58a655036d5
7
- data.tar.gz: eedd45fbd7f9adf294290ff7de81f830377cbeab8d464735f39e6291430321633d14462cb9a7e634eda91738d887d3a60547927312fe2b35cb5c0ae5fe292a61
6
+ metadata.gz: 7ae695e68943ae6db3fa1f3afff9e8c45a8466cf2ee19b447988a8b773d1675193375ccfcf8b0b4ea0d1ead8f102a3dbf3833ffad5e34f8d408e948a07a4f8f2
7
+ data.tar.gz: 0cc9e7b05cc1dd866f0b416112f7f3b38e49b531a156937cd3012b0c872407c2801c8811b02c80ce9a9be624cc6936ca72903c44d3fb27e8bb6901959bc128bc
data/bin/bakeqac CHANGED
@@ -454,7 +454,6 @@ $cmdRemoveLocks = qaExe + ["admin", "--qaf-project", @options.qacdata, "--remove
454
454
  complexity = e["metrics"]["STCYC"].to_i
455
455
  line = e["line"].to_i
456
456
  allowed = 10
457
-
458
457
  if complexity > 10 && File.exist?(filename)
459
458
  if fileContent.nil?
460
459
  fileContent = File.readlines(filename)
@@ -463,7 +462,7 @@ $cmdRemoveLocks = qaExe + ["admin", "--qaf-project", @options.qacdata, "--remove
463
462
  lineOfLastFunction = 0
464
463
  pos = fileFunctions.find_index(line)
465
464
  if !pos.nil? and fileContent.length >= line
466
- lineOfLastFunction = fileFunctions[pos-1] if pos > 0
465
+ fileFunctions.each { |x| lineOfLastFunction = x if x > lineOfLastFunction && x < fileFunctions[pos] }
467
466
  # "line" received from json count from 1...
468
467
  # ... so adjustment of lineOfLastFunction for array access not needed
469
468
  # line-2 = index of array for line above the current function
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.38.0"
4
+ "2.38.1"
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.38.0
4
+ version: 2.38.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Schaal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-21 00:00:00.000000000 Z
11
+ date: 2017-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtext