simplecov_compact_json 1.0.0 → 1.0.1

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: f719f501f3e6b7a8225aa32df4274b8cf1ee9750
4
- data.tar.gz: 32d8722134bfeedc6a20b1845940e6b35553c976
3
+ metadata.gz: 5673f7ff4cfb5eb541590b5342491e6bf4db79de
4
+ data.tar.gz: 10976772c74bd49128bd67d67a0cceeaa222e6b8
5
5
  SHA512:
6
- metadata.gz: 7c475c9cee8db28c99ac9e5446676342f5792288e9bde0c634cb358f57f00473b3d483b8f2cc4d709754d85fbb00f53ee9dc961d0fe0412f441729790ccd7521
7
- data.tar.gz: 67db74a6e0342aaabd6b7a138f5c35e88534b1519003045ca01d0410e00ad216a4f01f236699b0cbb7db30a02e891c4aa1eb133531e4d54f4e9532e514e332cd
6
+ metadata.gz: 41f797f9c965c4eda21c7efe810f778ffb888809f5a7a81dd0b74d05bde42ab8b5fc10c69e9f056a80c85d5bed621c2ed8ab6f0149086c7c33e0a316cf62ce72
7
+ data.tar.gz: dccd73a43c35882f80e0eb642b240eb5b63c030cf777633deda96872a8b0658715ca0483f393e319f5dcd979f2cb5c910079088c72add3e7588c42f2c86ec5a6
@@ -15,7 +15,7 @@ module CompactJSON
15
15
 
16
16
  def format(result)
17
17
  @result = result
18
- File.open("./coverage/results.json", "w") do |file|
18
+ File.open(destination_file, "w") do |file|
19
19
  file.print(formatted_result)
20
20
  end
21
21
  end
@@ -29,6 +29,10 @@ module CompactJSON
29
29
 
30
30
  private
31
31
 
32
+ def destination_file
33
+ File.join(SimpleCov.coverage_dir, "results.json")
34
+ end
35
+
32
36
  def file_results
33
37
  self.result.files.map do |file|
34
38
  {
@@ -1,3 +1,3 @@
1
1
  module CompactJSON
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov_compact_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CoralineAda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-23 00:00:00.000000000 Z
11
+ date: 2015-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -102,8 +102,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.2.2
105
+ rubygems_version: 2.4.6
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Lightweight JSON formatter for SimpleCov
109
109
  test_files: []
110
+ has_rdoc: