codestats-metrics-reporter 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b89e82b5d8faab3949f7bcd4bbaabd285146f136
|
4
|
+
data.tar.gz: 601b3512aad74d28a214ed8d48c032c4daeeb7d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df21e35f219ece3cb94d3d69aabfcad728549d08e1be98c50cfdfdf792a60c9480f9f6abf4d1be68b8b9bc836b4c4b5c11b9d98a2659d2b4a29bc1902e190dae
|
7
|
+
data.tar.gz: 372de2aebf0ceac70cafe354def472d315b48269e21a0d2184a3077f472aeca2b00506f1f3c4a5a816cfd3dfc8e2a64c98fde649fc7878cd19feac769c8a1c7b
|
@@ -6,7 +6,7 @@ module CodeStats
|
|
6
6
|
class Simplecov
|
7
7
|
class << self
|
8
8
|
def generate_data(metric, _config_store)
|
9
|
-
return empty_value unless File.directory?('coverage') && File.file?('coverage/.last_run.json')
|
9
|
+
return empty_value(metric) unless File.directory?('coverage') && File.file?('coverage/.last_run.json')
|
10
10
|
json = JSON.parse(File.read('coverage/.last_run.json'))
|
11
11
|
code_coverage = json['result']['covered_percent']
|
12
12
|
{
|
@@ -16,7 +16,7 @@ module CodeStats
|
|
16
16
|
}
|
17
17
|
end
|
18
18
|
|
19
|
-
def empty_value
|
19
|
+
def empty_value(metric)
|
20
20
|
{
|
21
21
|
metric_name: metric.data['name'],
|
22
22
|
value: 0,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codestats-metrics-reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esteban Pintos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|