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.
- checksums.yaml +4 -4
- data/lib/codacy/parser.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b5a3b108a133bb7c8ae7aaeb717aabc428543d6
|
4
|
+
data.tar.gz: e65002784085c2720d76e5030e43b8b125e892d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37c2be762ecb0529886ff8cc40745d2f0c57c05a588c018f078cf4d76f95f8a1d8a1b76a5753df3b63f8b960cf45b1336869afaa1c659523ed2e2d84453f95f6
|
7
|
+
data.tar.gz: 95357df258f564c29589932bd2af7dbc4750255ab942b195d9c89f17010a5d87494294aa2f519fd723e23f62da0afb0486857d2f40ac242802c96cbf73e369bb
|
data/lib/codacy/parser.rb
CHANGED
@@ -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.
|
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.
|
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-
|
12
|
+
date: 2017-10-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: simplecov
|