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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d6db55107620f5cff244aef3520ffae5c5e6bb0
4
- data.tar.gz: 46a586db75e3cd83da3973b2caf9d2b51e9a9b68
3
+ metadata.gz: e47c14807d53da93cd8fefc4add73da07f547881
4
+ data.tar.gz: abf60d512752e4d49b9fc698eb165fd4382b8cae
5
5
  SHA512:
6
- metadata.gz: d14c937a140223ea82856cd446e093106389cc4651d026f3f0e8479350b6b929cf774c2e232ae3ac43ac5165ec52a36fe93ec02f71f80bfdccca66ccfda98f93
7
- data.tar.gz: 22ca864adab5423f01325c28cb78590cb6d26fc6790d1e606b842c1482d0f9148f17f036932a820595ef0a2170dfd8ddbb858986c21e979f78cea051b8dbfc54
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(Net::HTTP.new(@private_endpoint.host, @private_endpoint.port).tap { |c| c.read_timeout = 900 } )
21
- @public_http_client = LoggingHttpClient.new(Net::HTTP.new(@public_endpoint.host, @public_endpoint.port).tap { |c| c.read_timeout = 900 })
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?
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module BitsServiceClient
3
- VERSION = '0.2.2.pre.5'
3
+ VERSION = '0.2.2.pre.6'
4
4
  end
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.5
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-26 00:00:00.000000000 Z
13
+ date: 2017-01-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: steno