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 +4 -4
- data/lib/artifactory/client.rb +10 -2
- data/lib/artifactory/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b25bc5d80ff1f446765041dfa18c8124632de6d74c99757b968ee599afb687f5
|
4
|
+
data.tar.gz: 872377830c2c226593aa01dd98bcd9a9ed077a1fc987ac014056e976f64db7b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64e08e305ffadc57955be2aa5ec362e3c79dfb425af8180d3d9560db573cef1a4f5b0f0d1fd49f8e3e173cb4ce7ef8f58eec53290e5a170a98bfec9469f5919d
|
7
|
+
data.tar.gz: 82474417dff7e81ae2c1c26029d5c91c780c1275201ac1d2a96bfda419c3314cf0ceb577284fc1c059a4a8f4c474337c6565d64def6f1d4e60cee478390930b0
|
data/lib/artifactory/client.rb
CHANGED
@@ -258,8 +258,16 @@ module Artifactory
|
|
258
258
|
|
259
259
|
if block_given?
|
260
260
|
http.request(request) do |response|
|
261
|
-
response
|
262
|
-
|
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
|
data/lib/artifactory/version.rb
CHANGED
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.
|
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-
|
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
|