vmware-vra 1.5.1 → 1.5.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: d17754d67646cc908a208b43f89e826246abe5e0
4
- data.tar.gz: ed6656668551bd9d45e14c013e987cc92e68c223
3
+ metadata.gz: 5d0c6aacd8283b9b2468c805bf98c09640ea5a3c
4
+ data.tar.gz: fbbe84f01ebd18b555b013f501fe94cd4f09de98
5
5
  SHA512:
6
- metadata.gz: 7d71707215098bd3f7a954568291d83326aea39965a40ed38e54405f267efd2179259fc0b450b6f6bc58945962b767a0e2fe1122d4fbd487eac56ee186413aac
7
- data.tar.gz: ddc3b1fb76ee91442da096ed111ef2efc6cf291feb4d9cdf6a33212fded40d9a5af0a78e6e83d97ddadccd5be0aff59b8eed3980ec9d64ba1f7fc0b19670f5c3
6
+ metadata.gz: 7cec652f684c2693cd781e1fdfbcc1db2d5584ffb6022f1d76172df0123a27b7d134606da72a9979ebb067857ff01292bbe1fb521610705de7a8d3ede3c9fd9e
7
+ data.tar.gz: a0704144cc5cbb2aead9610429c56a56ae22a3768d7f684f530dc721271ebd4ee2dee27f1f8840029c23390a28ad7cb56d1786eeedc02bf2100cdd986d76ad46
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # vmware-vra-gem CHANGELOG
2
2
 
3
+ ## v1.5.2 (2016-04-01)
4
+ * [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
+
3
6
  ## v1.5.1 (2016-03-11)
4
7
  * [pr#19](https://github.com/chef-partners/vmware-vra-gem/pull/19) Treating a `MachineActivated` state as a machine in the process of being turned on. Fixes abnormal behavior in vRA 7.x.
5
8
 
data/lib/vra/client.rb CHANGED
@@ -104,7 +104,7 @@ module Vra
104
104
  @bearer_token.value = nil
105
105
  validate_client_options!
106
106
 
107
- response = http_post('/identity/api/tokens', bearer_token_request_body.to_json, :skip_auth)
107
+ response = http_post('/identity/api/tokens', FFI_Yajl::Encoder.encode(bearer_token_request_body), :skip_auth)
108
108
  if response.code != 200
109
109
  raise Vra::Exception::Unauthorized, "Unable to get bearer token: #{response.body}"
110
110
  end
data/lib/vra/version.rb CHANGED
@@ -17,5 +17,5 @@
17
17
  #
18
18
 
19
19
  module Vra
20
- VERSION = '1.5.1'.freeze
20
+ VERSION = '1.5.2'.freeze
21
21
  end
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.1
4
+ version: 1.5.2
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-03-11 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client