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: c120351f9949a9c9c8dd1661c9c43012fb306b4a
4
- data.tar.gz: cadbf1b205deb1e1485ea618a5de30bf166abc5a
3
+ metadata.gz: b89e82b5d8faab3949f7bcd4bbaabd285146f136
4
+ data.tar.gz: 601b3512aad74d28a214ed8d48c032c4daeeb7d1
5
5
  SHA512:
6
- metadata.gz: aa9d930ae93f2ab9767b7c7dcde6386ba7f3a5c6d68c6c42ca6324e3a5cf6b5272170c777779836123505b7638caaedcbb23259dd8422406076c86337ef655dd
7
- data.tar.gz: bddd7bceceef9b01af938a49dd6d58c6d9870b9bad656298346651e53f9af0f42cde448fc13649b8153e8967074a7384a9109b4c063a9ce16b6ecef65a29a78f
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,
@@ -1,7 +1,7 @@
1
1
  module CodeStats
2
2
  module Metrics
3
3
  module Reporter
4
- VERSION = '0.1.9'.freeze
4
+ VERSION = '0.1.10'.freeze
5
5
  end
6
6
  end
7
7
  end
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.9
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-25 00:00:00.000000000 Z
11
+ date: 2017-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler