codeclimate-test-reporter 1.0.1 → 1.0.2

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: 2ab7eb526172b9b5b5daa3aa5ac47f871a11cc3a
4
- data.tar.gz: c3c9c4422f64ff1ed1143784abd42b913031cf3b
3
+ metadata.gz: 0422709b1a680efcf9ddd0a1f77b08e46cdabb3b
4
+ data.tar.gz: 678041697ea7b5fa4dbdccd48f56690959b977a3
5
5
  SHA512:
6
- metadata.gz: 9838a08aa48a7e89842e243d42bd2524845c9a380c9d59c6307aa75dbbeecf90f95f012fc291fe385a7e2e81ecf882082d90d94e60d9a082fa8127b7943c6e09
7
- data.tar.gz: e826083e48bfb51f718465afbbc9b9b03c3f2460ebbae007bfbe80f84e307efd2639f08cd796edc7b29a9a6f443d91b1980fae692c5f5d14e2120475d92e8204
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 as you normally would (more information here:
26
- https://github.com/colszowka/simplecov)
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
@@ -1,5 +1,5 @@
1
1
  module CodeClimate
2
2
  module TestReporter
3
- VERSION = "1.0.1".freeze
3
+ VERSION = "1.0.2".freeze
4
4
  end
5
5
  end
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.1
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-06 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov