codacy-coverage 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/codacy/parser.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e264eaf5678e2eac84cdd75f19f1bdbec9ed20b3
4
- data.tar.gz: 80062ccd01497e537ba8ee7a3bff3ca4c87bc630
3
+ metadata.gz: 3b5a3b108a133bb7c8ae7aaeb717aabc428543d6
4
+ data.tar.gz: e65002784085c2720d76e5030e43b8b125e892d8
5
5
  SHA512:
6
- metadata.gz: af8b71560035eb5b77f594dff37b2b348eaf210c55af24ed25cb1678f727df25da57a7d7b4f6ed72889c9af23c9c1840503dfeabcf747e176bb1c0471f56df0b
7
- data.tar.gz: 0f7fd9f55e5c47b4f6635b93fd0e48518a4aabd170f0d710a1b67e75028d8bb75ad16dcc7c8b78d649897e04a7319e97e212e8c03b11ceac1fda5c7ee1664932
6
+ metadata.gz: 37c2be762ecb0529886ff8cc40745d2f0c57c05a588c018f078cf4d76f95f8a1d8a1b76a5753df3b63f8b960cf45b1336869afaa1c659523ed2e2d84453f95f6
7
+ data.tar.gz: 95357df258f564c29589932bd2af7dbc4750255ab942b195d9c89f17010a5d87494294aa2f519fd723e23f62da0afb0486857d2f40ac242802c96cbf73e369bb
@@ -16,7 +16,7 @@ module Codacy
16
16
  nil
17
17
  end
18
18
  end.compact
19
- lines_covered = v.compact.length == 0 ? 0 : ((coverage_lines.length.to_f / v.compact.length) * 100).round
19
+ lines_covered = v.compact.length == 0 ? 0 : ((coverage_lines.count { |x| x[1] > 0 }.to_f / v.compact.length) * 100).round
20
20
  Hash[
21
21
  [['filename', file_dir],
22
22
  ['total', lines_covered],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codacy-coverage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nuno Teixeira
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-07 00:00:00.000000000 Z
12
+ date: 2017-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: simplecov