codestats-metrics-reporter 0.1.5 → 0.1.6

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: d58644371a2cb08ceb0365776a1226164523329f
4
- data.tar.gz: b0750fa8e07d60c7fec315e34715b7f36ce7f025
3
+ metadata.gz: 91932706edeecb81f3190777e6838d368e03e30f
4
+ data.tar.gz: 8ddedd06a3ec485074cf35409cd3a8eec9ce9da3
5
5
  SHA512:
6
- metadata.gz: 10c7aec2df0a77421de46faf0b74ea04dac895c7c55f1cec44a962e69bff0762ea1fc649d89b3a51e85a56ca05c7100950b74c5e2552a8e873ba51899d2c74a5
7
- data.tar.gz: d006abb54231f8465b9a5d635966e0d45eae470212025b2de95aac538a938298b73489e39b38fafe4ef475f78778f65070fc2c2b53ecf94913cacf99c7aa98fc
6
+ metadata.gz: ef5ef37e56e1a6e16b189af9385290975cdadd51d8b30ac19392ee3d23a94f12d127d4c06db2b941510c168659a5cc48cea28ef7baf1a63f4b4ee15a67a25c84
7
+ data.tar.gz: 66f099fab8be67b620c1c1d2138a3b05c0e496c2b0801ac8a8ef3920a831880ae2174e239c4145c1645cbb9e7a589623dc9946683b09c81f9101cac9e86bafaa
data/config/default.yml CHANGED
@@ -9,7 +9,6 @@ metrics:
9
9
  minimum: 70
10
10
  upload_report: true
11
11
  report_dir: 'tmp/rubycritic'
12
- score_dir: 'tmp/rubycritic_score.out'
13
12
  uploader_key: <%= ENV['CODE_STATS_S3_KEY'] %>
14
13
  uploader_secret: <%= ENV['CODE_STATS_S3_SECRET_KEY'] %>
15
14
  uploader_region: <%= ENV['CODE_STATS_S3_REGION'] %>
@@ -27,7 +27,7 @@ module CodeStats
27
27
  def generate_score_file
28
28
  base_dir = Pathname.new(@metric.data['report_dir'])
29
29
  build_uploader.upload(File.realpath(base_dir).to_s, bucket) if upload_report?
30
- output = File.read(@metric.data['score_dir'])
30
+ output = File.read(base_dir.join('overview.html'))
31
31
  /Score:\s[0-9]*\.?[0-9]+/.match(output).to_s.scan(/[0-9]*\.?[0-9]+/).first
32
32
  end
33
33
 
@@ -1,7 +1,7 @@
1
1
  module CodeStats
2
2
  module Metrics
3
3
  module Reporter
4
- VERSION = '0.1.5'.freeze
4
+ VERSION = '0.1.6'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codestats-metrics-reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esteban Pintos