codestats-metrics-reporter 0.1.8 → 0.1.9

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: d58e014bfb74c1f6aea52b9e8929ee159aecfaa3
4
- data.tar.gz: a78bd9267bdd6c695629a358001f5acbf9fc45ee
3
+ metadata.gz: c120351f9949a9c9c8dd1661c9c43012fb306b4a
4
+ data.tar.gz: cadbf1b205deb1e1485ea618a5de30bf166abc5a
5
5
  SHA512:
6
- metadata.gz: 7e18c7995be176432433aa036386e951d498a547a6ab02f96e07d36e73fba7c9b8a8d78e77a8107579218c6ed2521551003b3d5a4fa76c59842edfc2397ef061
7
- data.tar.gz: 8b0049cf444cc7717bb9e0fb0670e57d016586ba1748eefeb9f4e21ad6e43acc483ef87ea4356c6f8f211173a9a3ecd4f510bea8ab076d7e32c2c357b6e71f25
6
+ metadata.gz: aa9d930ae93f2ab9767b7c7dcde6386ba7f3a5c6d68c6c42ca6324e3a5cf6b5272170c777779836123505b7638caaedcbb23259dd8422406076c86337ef655dd
7
+ data.tar.gz: bddd7bceceef9b01af938a49dd6d58c6d9870b9bad656298346651e53f9af0f42cde448fc13649b8153e8967074a7384a9109b4c063a9ce16b6ecef65a29a78f
@@ -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')
9
+ return empty_value 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
  {
@@ -1,7 +1,7 @@
1
1
  module CodeStats
2
2
  module Metrics
3
3
  module Reporter
4
- VERSION = '0.1.8'.freeze
4
+ VERSION = '0.1.9'.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.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esteban Pintos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-25 00:00:00.000000000 Z
11
+ date: 2017-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler