bits_service_client 0.2.2.pre.5 → 0.2.2.pre.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bits_service_client/client.rb +5 -3
- data/lib/bits_service_client/version.rb +1 -1
- 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: e47c14807d53da93cd8fefc4add73da07f547881
|
4
|
+
data.tar.gz: abf60d512752e4d49b9fc698eb165fd4382b8cae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66348c4680b69493e9770004cd2571c219027c92938e2902f04e32db313f5eab40370c4242e3b3732690217d0eb2f5b116d5374f53df9542dfda2fd6a1c1f7ec
|
7
|
+
data.tar.gz: 7602cc2c5aed2291ac71106a588c0f559e3dceadac655f7baf9a73f5f1d1fa07910f0272e90afebd12e50118927158c86fd08b1494053ea3433a63daea324d8d
|
@@ -7,7 +7,7 @@ module BitsService
|
|
7
7
|
ResourceTypeNotPresent = Class.new(StandardError)
|
8
8
|
ConfigurationError = Class.new(StandardError)
|
9
9
|
|
10
|
-
def initialize(bits_service_options:, resource_type:, vcap_request_id: '')
|
10
|
+
def initialize(bits_service_options:, resource_type:, vcap_request_id: '', request_timeout_in_seconds: 900)
|
11
11
|
@username = validated(bits_service_options, :username)
|
12
12
|
@password = validated(bits_service_options, :password)
|
13
13
|
@private_endpoint = validated_http_url(bits_service_options, :private_endpoint)
|
@@ -17,8 +17,10 @@ module BitsService
|
|
17
17
|
@resource_type = resource_type
|
18
18
|
@vcap_request_id = vcap_request_id
|
19
19
|
|
20
|
-
@private_http_client = LoggingHttpClient.new(
|
21
|
-
|
20
|
+
@private_http_client = LoggingHttpClient.new(
|
21
|
+
Net::HTTP.new(@private_endpoint.host, @private_endpoint.port).tap { |c| c.read_timeout = request_timeout_in_seconds })
|
22
|
+
@public_http_client = LoggingHttpClient.new(
|
23
|
+
Net::HTTP.new(@public_endpoint.host, @public_endpoint.port).tap { |c| c.read_timeout = request_timeout_in_seconds })
|
22
24
|
end
|
23
25
|
|
24
26
|
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.6
|
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-01-
|
13
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: steno
|