codecov 0.4.1 → 0.4.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
  SHA256:
3
- metadata.gz: 7e4bfdd1a36904d0b501d1e6ad97d5242e4a5ffa17a13b1c2968a8346bc26396
4
- data.tar.gz: f0ee40b20016417dafc3aa0d68685872bd4ad2a6795cee3233b04f4de1ea3fec
3
+ metadata.gz: d90b5e1e4c4683ae7085969f6f3773a33170cf762f0f20778ac1de21e6568bd3
4
+ data.tar.gz: 9e2b16bfe68082a0c111bbca183ad2d8dc36ba6790a95119722321a3f71eb43d
5
5
  SHA512:
6
- metadata.gz: 4e669367d900a5b432fb511986f6e9276df0594378347de38d1a9462f344262fcc28f33333dfec8475afc68888811507cfb3db56398cea78bd28e0f557bbeddd
7
- data.tar.gz: 1ff31b938ed8383c7dc6c067f607283d9d9aafe468302aef8957eb0ba64148c2361feb4b9c5e2129bf529987f09399c020288b542ca5741f8956948d358fcc27
6
+ metadata.gz: 4f02f63d2786e8e65d1333e7cb275216a450c509b61b030f73f3e03aaaaf830847f3169862bcdb97b705ccc33bc8bf047f315365d89df18bf5e09d3c629f328d
7
+ data.tar.gz: 87f1e84e5b86c8f6b2491e869f2cfa31257b8284f924f379774449ba338c2fc1cb332e5248005947ddf6ea48686c622226506200846a411801051ebd0a0383b6
@@ -17,12 +17,13 @@ module Codecov
17
17
  }
18
18
  result.update(result_to_codecov(report))
19
19
 
20
- result_path = File.join(::SimpleCov.coverage_path, RESULT_FILE_NAME)
21
- if File.writable?(result_path)
20
+ begin
21
+ result_path = File.join(::SimpleCov.coverage_path, RESULT_FILE_NAME)
22
22
  File.write(result_path, result['codecov'])
23
- puts "Coverage report generated to #{result_path}.\#{result}"
24
- else
25
- puts "Could not write coverage report to file #{result_path}.\n#{result}"
23
+ puts "Coverage report generated to #{result_path}.\n#{result}"
24
+ rescue Errno::ENOENT => e
25
+ puts e
26
+ puts "Could not write coverage report to file.\n#{result}"
26
27
  end
27
28
 
28
29
  result
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Codecov
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codecov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Peak
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-01-26 00:00:00.000000000 Z
12
+ date: 2021-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: simplecov