codecov 0.5.2 → 0.6.0

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: 70bfb5e87efb9db0f4b9141da317062ff710e17daceb7c587454d7be42144851
4
- data.tar.gz: 7bcfef401da5bdf95542343fa656db7f7a80ce1e071b1aff4115bd31ad3b43ac
3
+ metadata.gz: 6ed0ca48c3dd780cf5a2251488549059b08aab513a84d8f8b51b71bcee4a240f
4
+ data.tar.gz: 7e2326b00a7aeaf5cbe1367274c7a8bde56bfe4da3745512db77f8036f6a4132
5
5
  SHA512:
6
- metadata.gz: 738513034e8e1a07cab86488eaa759a5593e2779cecde51f5b22f1de36e4ea1ce8356dc484d6c24130782a1353b9379ef91d967e528651936b9571be29c29b74
7
- data.tar.gz: dca359ac80ef1b937b2305e9c69f857cce1eff1632798329c9349ae9e578b2c8d6654802a6091583406e5bd64f1dae22233c4fdeb24e2bb3fe3164edab9f3df4
6
+ metadata.gz: 26f458c90911e47e9ad85134c2bf1eb9be040397ce2c0e8ad4618da9ae0516220614d41621e22fb7940cd4688341cf15ded16bec46cc5912ee134e55704ba6c3
7
+ data.tar.gz: 164af1f8824b609f30a14471fd22699a4d3e7ea890ba7318e25b5302be3295baca7d69d152118748d1b638643b3753c3880cb55bdf4aea4e15c684697710be64
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### `0.6.0`
2
+ - #145 Fixes issue with nil URI and provides more token information
3
+
1
4
  ### `0.5.2`
2
5
  - #141 Add Cirrus CI support
3
6
 
@@ -49,15 +49,15 @@ class Codecov::Uploader
49
49
  response = false
50
50
  end
51
51
 
52
- if response == false
52
+ net_blockers(:on) if disable_net_blockers
53
+
54
+ unless response
53
55
  report['result'] = { 'uploaded' => false }
56
+ raise StandardError.new 'Could not upload reports to Codecov' unless ::Codecov.pass_ci_if_error
54
57
  return report
55
58
  end
56
-
57
59
  report['result'] = JSON.parse(response)
58
60
  handle_report_response(report)
59
-
60
- net_blockers(:on) if disable_net_blockers
61
61
  report
62
62
  end
63
63
 
@@ -128,6 +128,9 @@ class Codecov::Uploader
128
128
  end
129
129
 
130
130
  def self.build_params(ci)
131
+ puts [red('x>'), 'No token specified or token is empty'].join(' ') if
132
+ ENV['CODECOV_TOKEN'].nil? || ENV['CODECOV_TOKEN'].empty?
133
+
131
134
  params = {
132
135
  'token' => ENV['CODECOV_TOKEN'],
133
136
  'flags' => ENV['CODECOV_FLAG'] || ENV['CODECOV_FLAGS'],
@@ -451,6 +454,12 @@ class Codecov::Uploader
451
454
 
452
455
  reports_url = response.body.lines[0]
453
456
  s3target = response.body.lines[1]
457
+
458
+ if s3target.nil? || s3target.empty?
459
+ puts red(response.body)
460
+ return false
461
+ end
462
+
454
463
  puts [green('-> '), 'Uploading to'].join(' ')
455
464
  puts s3target
456
465
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Codecov
4
- VERSION = '0.5.2'
4
+ VERSION = '0.6.0'
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.5.2
4
+ version: 0.6.0
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-04-23 00:00:00.000000000 Z
12
+ date: 2021-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: simplecov
@@ -121,8 +121,8 @@ licenses:
121
121
  - MIT
122
122
  metadata:
123
123
  bug_tracker_uri: https://github.com/codecov/codecov-ruby/issues
124
- changelog_uri: https://github.com/codecov/codecov-ruby/blob/v0.5.2/CHANGELOG.md
125
- documentation_uri: http://www.rubydoc.info/gems/codecov/0.5.2
124
+ changelog_uri: https://github.com/codecov/codecov-ruby/blob/v0.6.0/CHANGELOG.md
125
+ documentation_uri: http://www.rubydoc.info/gems/codecov/0.6.0
126
126
  homepage_uri: https://github.com/codecov/codecov-ruby
127
127
  source_code_uri: https://github.com/codecov/codecov-ruby
128
128
  post_install_message: