artifactory 3.0.13 → 3.0.15

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: 17f2e20aaeb0c7dde0f7f46d3fbd780cd1e8818f7a72d10bbc68bc959362dfe5
4
- data.tar.gz: bd0ca811f01c5958e2e8565163b5af0983dbd19a51c51bfd42ac4c5a818d1add
3
+ metadata.gz: b25bc5d80ff1f446765041dfa18c8124632de6d74c99757b968ee599afb687f5
4
+ data.tar.gz: 872377830c2c226593aa01dd98bcd9a9ed077a1fc987ac014056e976f64db7b6
5
5
  SHA512:
6
- metadata.gz: f28c346e5ba840570ae0e96a1a077a4ab0ea86c89526dfc2e03ac9b165d861d099f42179a2f59313570eba55bc09af61bfde7f4993435b2db61592175731d6ab
7
- data.tar.gz: 5570f6b4d16e61ed9350243dc0811bf171bc872a35abdf26d0b3fffc549bfa4c694e1a1922251e041fa029ecc9137fd21b018a96708e20e275ecca245319acc5
6
+ metadata.gz: 64e08e305ffadc57955be2aa5ec362e3c79dfb425af8180d3d9560db573cef1a4f5b0f0d1fd49f8e3e173cb4ce7ef8f58eec53290e5a170a98bfec9469f5919d
7
+ data.tar.gz: 82474417dff7e81ae2c1c26029d5c91c780c1275201ac1d2a96bfda419c3314cf0ceb577284fc1c059a4a8f4c474337c6565d64def6f1d4e60cee478390930b0
@@ -258,8 +258,16 @@ module Artifactory
258
258
 
259
259
  if block_given?
260
260
  http.request(request) do |response|
261
- response.read_body do |chunk|
262
- yield chunk
261
+ case response
262
+ when Net::HTTPRedirection
263
+ redirect = response["location"]
264
+ request(verb, redirect, data, headers, &block)
265
+ when Net::HTTPSuccess
266
+ response.read_body do |chunk|
267
+ yield chunk
268
+ end
269
+ else
270
+ error(response)
263
271
  end
264
272
  end
265
273
  else
@@ -15,5 +15,5 @@
15
15
  #
16
16
 
17
17
  module Artifactory
18
- VERSION = "3.0.13".freeze
18
+ VERSION = "3.0.15".freeze
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artifactory
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.13
4
+ version: 3.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Release Engineering Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-15 00:00:00.000000000 Z
11
+ date: 2020-05-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Ruby client for Artifactory
14
14
  email: releng@chef.io