vmware-vra 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/vra/client.rb +1 -1
- data/lib/vra/version.rb +1 -1
- data/spec/client_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '04187d64c2726dfbe9dcf8128710daa94c17593d17da436b4c797932d7399f39'
|
|
4
|
+
data.tar.gz: 2456b3f5fb84a99f12493ba357e8603d2bfb42c42858139bc53fcbd60b8f8984
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9820fab88049710e06f5814994d6a215338d7039e775523d27c32fbaf6e80463721d9ae5bce0e876a3b5236a14009d6350a2abb7716cda6f10f15e05676107dd
|
|
7
|
+
data.tar.gz: '0998fa84339c1f467d585041b2b1b4f8dbc0eae3b70f9fd03c7fcb5ea37afd280d61a58fc10fe4d1cd389e782430c532b639f02d09ec888fa3b52b31a71b8f2c'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [3.1.1](https://github.com/chef-partners/vmware-vra-gem/tree/v3.1.1) (2022-03-01)
|
|
4
|
+
|
|
5
|
+
- Send Authorization: Bearer header instead of csp-auth-token for greater compatibility [@oshvarts]
|
|
6
|
+
|
|
3
7
|
## [3.1.0](https://github.com/chef-partners/vmware-vra-gem/tree/v3.1.0) (2022-01-30)
|
|
4
8
|
[Full Changelog](https://github.com/chef-partners/vmware-vra-gem/compare/v3.0.1...v3.1.0)
|
|
5
9
|
|
data/lib/vra/client.rb
CHANGED
|
@@ -88,7 +88,7 @@ module Vra
|
|
|
88
88
|
headers = {}
|
|
89
89
|
headers['Accept'] = 'application/json'
|
|
90
90
|
headers['Content-Type'] = 'application/json'
|
|
91
|
-
headers['
|
|
91
|
+
headers['Authorization'] = 'Bearer ' + @access_token.value unless @access_token.value.nil?
|
|
92
92
|
|
|
93
93
|
headers
|
|
94
94
|
end
|
data/lib/vra/version.rb
CHANGED
data/spec/client_spec.rb
CHANGED
|
@@ -57,13 +57,13 @@ describe Vra::Client do
|
|
|
57
57
|
context 'when access token exists' do
|
|
58
58
|
it 'has an Authorization header' do
|
|
59
59
|
client.access_token = '12345'
|
|
60
|
-
expect(client.request_headers.key?('
|
|
60
|
+
expect(client.request_headers.key?('Authorization')).to be true
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
context 'when access token does not exist' do
|
|
65
65
|
it 'does not have an Authorization header' do
|
|
66
|
-
expect(client.request_headers.key?('
|
|
66
|
+
expect(client.request_headers.key?('Authorization')).to be false
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
69
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vmware-vra
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Leff
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2022-
|
|
12
|
+
date: 2022-03-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: ffi-yajl
|
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
206
206
|
- !ruby/object:Gem::Version
|
|
207
207
|
version: '0'
|
|
208
208
|
requirements: []
|
|
209
|
-
rubygems_version: 3.
|
|
209
|
+
rubygems_version: 3.3.7
|
|
210
210
|
signing_key:
|
|
211
211
|
specification_version: 4
|
|
212
212
|
summary: Client gem for interacting with VMware vRealize Automation.
|