artifactory 2.8.1 → 2.8.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
  SHA1:
3
- metadata.gz: 2b85783f95f2c304e859d43d9c35399812049fbf
4
- data.tar.gz: 5c7d4b82bbdcb8d64effa3ef4d0d205c5ecc1b3e
3
+ metadata.gz: 3ef3bf846ba58ab200c737eb261bef55b26d42a6
4
+ data.tar.gz: a50a886a796ad877dae21183d7601d060371f2d6
5
5
  SHA512:
6
- metadata.gz: 334b556c77599920368e7aaab3ff2062243872c8f02dc356b4acc4e4e6ec2ebc0db66280c9fb8185e6ed813185b0062c5c94052c46a1b394a805ff83a97dd377
7
- data.tar.gz: 6991c793b25068e7d028d0939780809e72186d0dae9dcec1b31ea6107fe76d8015eed1d937030af34322a3dfa803144bb5239dc5404f7bf8da4b737f6238e146
6
+ metadata.gz: bf1d7d48171793cbe944043a280d512194addd87d1b25c6f23239c6744e6ff3b5940714d29aa9a2a99ffaf4cfea7c95bfb2c2fe07faa65f8b387c7662bf1c966
7
+ data.tar.gz: 774c9fd405215ed6c14036cb9ea6b916edd1729d9899bcae48bcb755092062175b8b983369edeea4cf7229fc8bb79956704cd146a3fd56b5c37d1265c7b7e1e6
@@ -2,7 +2,7 @@ rvm:
2
2
  - 2.1
3
3
  - 2.2
4
4
  - 2.3
5
- - 2.4.0
5
+ - 2.4
6
6
 
7
7
  bundler_args: --jobs 7
8
8
 
@@ -3,6 +3,10 @@ Artifactory Client CHANGELOG
3
3
  This file is used to document the changes between releases of the Artifactory
4
4
  Ruby client.
5
5
 
6
+ v2.8.2 (06-14-2017)
7
+ -------------------
8
+ - Properly parse empty response bodies
9
+
6
10
  v2.8.1 (03-21-2017)
7
11
  -------------------
8
12
  - Allow downloading of large files. Fixes #83.
@@ -369,7 +369,7 @@ module Artifactory
369
369
  #
370
370
  def success(response)
371
371
  if (response.content_type || "").include?("json")
372
- JSON.parse(response.body)
372
+ JSON.parse(response.body || "{}")
373
373
  else
374
374
  response.body
375
375
  end
@@ -15,5 +15,5 @@
15
15
  #
16
16
 
17
17
  module Artifactory
18
- VERSION = "2.8.1"
18
+ VERSION = "2.8.2"
19
19
  end
@@ -107,6 +107,14 @@ module Artifactory
107
107
  end
108
108
  end
109
109
  end
110
+
111
+ context "application/json response with an empty body" do
112
+ before { stub_request(:get, /.+/).to_return(status: 200, headers: { "Content-Type" => "application/json" }, body: "") }
113
+
114
+ it "should not raise an error" do
115
+ expect { subject.request(:get, "/foo") }.to_not raise_error(TypeError)
116
+ end
117
+ end
110
118
  end
111
119
 
112
120
  describe "#to_query_string" do
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: 2.8.1
4
+ version: 2.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-22 00:00:00.000000000 Z
11
+ date: 2017-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.4.5.1
143
+ rubygems_version: 2.6.11
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Artifactory is a simple, lightweight Ruby client for interacting with the