vmware-vra 1.5.2 → 1.5.3

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: 5d0c6aacd8283b9b2468c805bf98c09640ea5a3c
4
- data.tar.gz: fbbe84f01ebd18b555b013f501fe94cd4f09de98
3
+ metadata.gz: 909b704335bdb1cf85eeb0639f8f20c458a6ad4d
4
+ data.tar.gz: 047b6f2676a73b46563626ab29afbf048de3b137
5
5
  SHA512:
6
- metadata.gz: 7cec652f684c2693cd781e1fdfbcc1db2d5584ffb6022f1d76172df0123a27b7d134606da72a9979ebb067857ff01292bbe1fb521610705de7a8d3ede3c9fd9e
7
- data.tar.gz: a0704144cc5cbb2aead9610429c56a56ae22a3768d7f684f530dc721271ebd4ee2dee27f1f8840029c23390a28ad7cb56d1786eeedc02bf2100cdd986d76ad46
6
+ metadata.gz: 5bd6ab876d957d8381279b5232e42fb17c8f3a934efe0c3f8911efb298c39ebe1b9e8f6f0b73f287330776903323e4e5ec79df251fdc22e9004881d97821b6b3
7
+ data.tar.gz: 510320dd20f2eb5d6998015c5cc38f183b5f360afd484152cf817d3cf8319d92393c11117bf63ea0bb851c8b342203eb3551fe06fc06927c4c1bf0ce1b901ab2
@@ -1,5 +1,8 @@
1
1
  # vmware-vra-gem CHANGELOG
2
2
 
3
+ ## v1.5.3 (2016-04-18)
4
+ * [pr#25](https://github.com/chef-partners/vmware-vra-gem/pull/25) Bug fix: use the proper exception helper method when raising exceptions encountered during HTTP HEAD requests
5
+
3
6
  ## v1.5.2 (2016-04-01)
4
7
  * [pr#22](https://github.com/chef-partners/vmware-vra-gem/pull/22) Bug fix: Using FFI_Yajl to encode JSON rather than the #to_json method
5
8
 
@@ -124,7 +124,7 @@ module Vra
124
124
  headers: request_headers,
125
125
  verify_ssl: @verify_ssl)
126
126
  rescue => e
127
- raise Vra::Exception::HTTPError, "head #{path} failed: #{e.class}: #{e.message}"
127
+ raise_http_exception(e, path)
128
128
  else
129
129
  response
130
130
  end
@@ -17,5 +17,5 @@
17
17
  #
18
18
 
19
19
  module Vra
20
- VERSION = '1.5.2'.freeze
20
+ VERSION = '1.5.3'.freeze
21
21
  end
@@ -215,6 +215,14 @@ describe Vra::Client do
215
215
 
216
216
  client.http_head(path)
217
217
  end
218
+
219
+ it 'calls raise_http_exception upon a RestClient error' do
220
+ allow(client).to receive(:authorize!)
221
+ allow(RestClient::Request).to receive(:execute).and_raise(RestClient::ResourceNotFound)
222
+ expect(client).to receive(:raise_http_exception)
223
+
224
+ client.http_head('/404')
225
+ end
218
226
  end
219
227
 
220
228
  describe '#http_get' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmware-vra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Leff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-01 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client