bits_service_client 0.2.2.pre.6 → 0.2.2.pre.7
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/lib/bits_service_client/client.rb +10 -3
- data/lib/bits_service_client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 83a6040267a9b8f95d13dce6acd4c5095d053fc4
|
|
4
|
+
data.tar.gz: 25ab4cb718fccff45f2834e828f872888340af22
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7ea2d14385d3314e50f30b2e215530bdf2a4d01c0fa982131d7ab9e63d97a7b6d15453a78fe4704a153d9407c767b0b8604256a7551a8db472b42c4f311cbbe
|
|
7
|
+
data.tar.gz: c8b01f311e5c9814499f6f0308bb3a1039bfaa7c92a0e2247504cc82b0339354a57d28fee418353f9c69006b8cc65576fe8f188ce3cd4614b0b1190d7ad1341a
|
|
@@ -16,11 +16,18 @@ module BitsService
|
|
|
16
16
|
raise ResourceTypeNotPresent.new('Must specify resource type') unless resource_type
|
|
17
17
|
@resource_type = resource_type
|
|
18
18
|
@vcap_request_id = vcap_request_id
|
|
19
|
-
|
|
20
19
|
@private_http_client = LoggingHttpClient.new(
|
|
21
|
-
Net::HTTP.new(@private_endpoint.host, @private_endpoint.port).tap
|
|
20
|
+
Net::HTTP.new(@private_endpoint.host, @private_endpoint.port).tap do |c|
|
|
21
|
+
c.read_timeout = request_timeout_in_seconds
|
|
22
|
+
c.use_ssl = true if @private_endpoint.scheme.start_with?('https')
|
|
23
|
+
end
|
|
24
|
+
)
|
|
22
25
|
@public_http_client = LoggingHttpClient.new(
|
|
23
|
-
Net::HTTP.new(@public_endpoint.host, @public_endpoint.port).tap
|
|
26
|
+
Net::HTTP.new(@public_endpoint.host, @public_endpoint.port).tap do |c|
|
|
27
|
+
c.read_timeout = request_timeout_in_seconds
|
|
28
|
+
c.use_ssl = true if @private_endpoint.scheme.start_with?('https')
|
|
29
|
+
end
|
|
30
|
+
)
|
|
24
31
|
end
|
|
25
32
|
|
|
26
33
|
def local?
|
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.2.2.pre.
|
|
4
|
+
version: 0.2.2.pre.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rizwan Reza
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2017-
|
|
13
|
+
date: 2017-10-09 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: steno
|
|
@@ -281,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
281
281
|
version: 1.3.1
|
|
282
282
|
requirements: []
|
|
283
283
|
rubyforge_project:
|
|
284
|
-
rubygems_version: 2.5.1
|
|
284
|
+
rubygems_version: 2.5.2.1
|
|
285
285
|
signing_key:
|
|
286
286
|
specification_version: 4
|
|
287
287
|
summary: Bits Services client for Cloud Foundry
|