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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91932706edeecb81f3190777e6838d368e03e30f
|
4
|
+
data.tar.gz: 8ddedd06a3ec485074cf35409cd3a8eec9ce9da3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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
|
|