circleci_reporter 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
  SHA256:
3
- metadata.gz: 2ada134b1de48734b63db0b3d490b58574636d8f75f7bd1feae84b350a39554e
4
- data.tar.gz: e95c83a50b10a110fcb44dd6496eb53c838b2769f9471a3f6c01fca094ead057
3
+ metadata.gz: cc030e3f54e14c9dfaa743bb275a694cf0229c1ff34634a6794d72df5e70d27f
4
+ data.tar.gz: '04708b127dd92a501f28bec7549470d9d0a4409334c91659ff05eafa0f3ddd31'
5
5
  SHA512:
6
- metadata.gz: 813e662bfa72e64cca3e5d51645de34a30a25ac31b7a103f9ad5f1722e98c560d43ceea3dc9c0dd3d3aa211a1ccc45db4e0f8309b68d048d6b6a9727e5508426
7
- data.tar.gz: 00e71ea752be325437005ed29a93cf8d4f33155aa25c0e2af266aed9063b7f3c9e3fc8fa8edc9a1e566e43c26d7feae451d4e51c543ad03128b8d4485febf368
6
+ metadata.gz: 48fc386974c72cd49c04f52adf86840fe84c3b8ba4aa5fb382c1fafdab3dbbcfc0cd8eda4c4e8c777cfc42f6d476809b8e9d6bb40b46d8d65f0f7832fa5d8ca3
7
+ data.tar.gz: 40f08a9fec25e0e9bcb8ce80db914a7b51c67cc240b20f16415d7f598a602ff496b68fad6c627ed2ebe0cb92a837287941730feeee062d1c00d493a5c1d98483
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.1] - 2020-04-22
10
+ ### Changed
11
+ - Add redirect support when dowloading CircleCI artifacts
12
+
9
13
  ## [1.0.0] - 2020-04-16
10
14
  ### Changed
11
15
  - Upgrade Faraday version dependency
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.required_ruby_version = '>= 2.7'
23
23
 
24
24
  spec.add_dependency 'faraday', '~> 1.0'
25
+ spec.add_dependency 'faraday_middleware', '~> 1.0'
25
26
 
26
27
  spec.add_development_dependency 'ffaker', '~> 2.18'
27
28
  spec.add_development_dependency 'rake', '~> 13.0'
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'faraday'
4
+ require 'faraday_middleware'
4
5
 
5
6
  require_relative 'artifact'
6
7
  require_relative 'build'
@@ -59,7 +60,10 @@ module CircleCIReporter
59
60
  def get(url, params = {})
60
61
  params['circle-token'] = configuration.circleci_token
61
62
  query_string = params.map { |key, value| "#{key}=#{value}" }.join('&')
62
- Faraday.get("#{url}?#{query_string}")
63
+ connection = Faraday.new do |faraday|
64
+ faraday.use FaradayMiddleware::FollowRedirects
65
+ end
66
+ connection.get("#{url}?#{query_string}")
63
67
  end
64
68
 
65
69
  private
@@ -4,7 +4,7 @@ module CircleCIReporter
4
4
  module Version
5
5
  MAJOR = 1
6
6
  MINOR = 0
7
- PATCH = 0
7
+ PATCH = 1
8
8
 
9
9
  def self.to_s
10
10
  [MAJOR, MINOR, PATCH].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circleci_reporter
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
  - Yuku Takahashi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-04-17 00:00:00.000000000 Z
12
+ date: 2021-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -25,6 +25,20 @@ dependencies:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: faraday_middleware
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1.0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1.0'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: ffaker
30
44
  requirement: !ruby/object:Gem::Requirement