bits_service_client 0.3.1 → 0.3.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 070b68ab65a8f241bc20dea88acccdeed3606fde
|
|
4
|
+
data.tar.gz: 7622faacb43ca9c44d96b7a3ef6b7d8c24c4ea60
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a842ec2c61158a8a514d05838346d6206bbed3752bdf03fcdf14994937f0d0c05a68b66e7ecd7098c7bbaee71b6c728b0e156dcee89030af8f47dc20698a3b8
|
|
7
|
+
data.tar.gz: 6ce2b9d646ddd8fcbb2b4d577fe0f20920449dbc0f2828c075c0362834e9f6a50ce2859f6ee420d55dd01365205ec266b4ab210c7be927fb2e35e3b8c0e0ff5b
|
|
@@ -35,7 +35,7 @@ module BitsService
|
|
|
35
35
|
vcap_request_id: vcap_request_id,
|
|
36
36
|
})
|
|
37
37
|
|
|
38
|
-
request.add_field('
|
|
38
|
+
request.add_field('X-VCAP-REQUEST-ID', vcap_request_id)
|
|
39
39
|
|
|
40
40
|
@http_client.request(request).tap do |response|
|
|
41
41
|
@logger.info('Response', { code: response.code, vcap_request_id: vcap_request_id })
|
|
@@ -6,7 +6,7 @@ module BitsService
|
|
|
6
6
|
@request_timeout_in_seconds = request_timeout_in_seconds
|
|
7
7
|
@vcap_request_id = vcap_request_id
|
|
8
8
|
@logger = Steno.logger('cc.bits_service_client')
|
|
9
|
-
@ca_cert_path = ca_cert_path
|
|
9
|
+
@ca_cert_path = ca_cert_path
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def matches(resources_json)
|
|
@@ -84,7 +84,7 @@ module BitsService
|
|
|
84
84
|
vcap_request_id: vcap_request_id,
|
|
85
85
|
})
|
|
86
86
|
|
|
87
|
-
request.add_field('
|
|
87
|
+
request.add_field('X-VCAP-REQUEST-ID', vcap_request_id)
|
|
88
88
|
|
|
89
89
|
http_client.request(request).tap do |response|
|
|
90
90
|
@logger.info('Response', {
|
|
@@ -95,8 +95,8 @@ module BitsService
|
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
def http_client
|
|
98
|
-
@http_client ||= Net::HTTP.new(endpoint.host, endpoint.port).tap do |c|
|
|
99
|
-
c.read_timeout = @request_timeout_in_seconds
|
|
98
|
+
@http_client ||= Net::HTTP.new(endpoint.host, endpoint.port).tap do |c|
|
|
99
|
+
c.read_timeout = @request_timeout_in_seconds
|
|
100
100
|
enable_ssl(c, @ca_cert_path) if endpoint.scheme == 'https'
|
|
101
101
|
end
|
|
102
102
|
end
|
|
@@ -105,7 +105,7 @@ module BitsService
|
|
|
105
105
|
cert_store = OpenSSL::X509::Store.new
|
|
106
106
|
cert_store.set_default_paths
|
|
107
107
|
cert_store.add_file ca_cert_path if ca_cert_path
|
|
108
|
-
|
|
108
|
+
|
|
109
109
|
http_client.use_ssl = true
|
|
110
110
|
http_client.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
|
111
111
|
http_client.cert_store = cert_store
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bits_service_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rizwan Reza
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2018-
|
|
14
|
+
date: 2018-05-14 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: activesupport
|
|
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
199
199
|
version: '0'
|
|
200
200
|
requirements: []
|
|
201
201
|
rubyforge_project:
|
|
202
|
-
rubygems_version: 2.6.14
|
|
202
|
+
rubygems_version: 2.6.14.1
|
|
203
203
|
signing_key:
|
|
204
204
|
specification_version: 4
|
|
205
205
|
summary: Bits Services client for Cloud Foundry
|