codeclimate-test-reporter 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0422709b1a680efcf9ddd0a1f77b08e46cdabb3b
|
|
4
|
+
data.tar.gz: 678041697ea7b5fa4dbdccd48f56690959b977a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 718fef210d79c8afe4496cacda02844e471180c55580a79395479707f6bf0dfb3dd11b36c27729c366b451651f1e4b15b51d57b5429cf00e46e3995c388d6cd8
|
|
7
|
+
data.tar.gz: d09c8c560bae038caf97166b6a6eed2e0f0a6ca6341260f0b6fb8b1d6039c62c9d74840ccebbe6c853167a1cf9af875a584c9b9e7befd52adb6c0e60179a3af6
|
data/README.md
CHANGED
|
@@ -22,8 +22,14 @@ so if you don't have one the first step is to signup at:
|
|
|
22
22
|
end
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
* Start SimpleCov
|
|
26
|
-
|
|
25
|
+
* Start [SimpleCov](https://github.com/colszowka/simplecov) right at the top of
|
|
26
|
+
your `spec/spec_helper.rb`, `test/test_helper.rb`, or cucumber `env.rb`.
|
|
27
|
+
|
|
28
|
+
```ruby
|
|
29
|
+
require 'simplecov'
|
|
30
|
+
SimpleCov.start
|
|
31
|
+
```
|
|
32
|
+
|
|
27
33
|
* Set the `CODECLIMATE_REPO_TOKEN` environment variable (provided after you add
|
|
28
34
|
your repo to your Code Climate account by clicking on "Setup Test Coverage" on
|
|
29
35
|
the right hand side of your feed)
|
|
@@ -7,7 +7,7 @@ module CodeClimate
|
|
|
7
7
|
|
|
8
8
|
def short_filename
|
|
9
9
|
return @filename unless ::SimpleCov.root
|
|
10
|
-
apply_prefix @filename.gsub(/^#{::SimpleCov.root}/, ".").gsub(%r{^\./}, "")
|
|
10
|
+
apply_prefix @filename.gsub(/^#{Regexp.escape(::SimpleCov.root)}/, ".").gsub(%r{^\./}, "")
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
private
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: codeclimate-test-reporter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bryan Helmkamp
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11-
|
|
11
|
+
date: 2016-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: simplecov
|