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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/vra/client.rb +1 -1
- data/lib/vra/version.rb +1 -1
- data/spec/client_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 909b704335bdb1cf85eeb0639f8f20c458a6ad4d
|
4
|
+
data.tar.gz: 047b6f2676a73b46563626ab29afbf048de3b137
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bd6ab876d957d8381279b5232e42fb17c8f3a934efe0c3f8911efb298c39ebe1b9e8f6f0b73f287330776903323e4e5ec79df251fdc22e9004881d97821b6b3
|
7
|
+
data.tar.gz: 510320dd20f2eb5d6998015c5cc38f183b5f360afd484152cf817d3cf8319d92393c11117bf63ea0bb851c8b342203eb3551fe06fc06927c4c1bf0ce1b901ab2
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/vra/client.rb
CHANGED
data/lib/vra/version.rb
CHANGED
data/spec/client_spec.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|