hellosign-ruby-sdk 3.6 → 3.6.1

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: 624c50c86c5c3f142cbc0b183003431a912fba33
4
- data.tar.gz: d20286ae7e98f4b8472bee8e1809d9bc7a3ccdf1
3
+ metadata.gz: 9a8ba883a4aa8b3dc4bbefcd44233f4a5ced8219
4
+ data.tar.gz: 4dd9fd6acdf226d24d85a9cbad67d5ab0fef64a2
5
5
  SHA512:
6
- metadata.gz: 26b234abfba696397fe1a4a30f524eba5e432fcd00d9fa4d2791c0a513bacf0d0fb4d1a215bba7be9119413e900d68bc89a9a72bf8a8f4d475ce2a16c2673ce7
7
- data.tar.gz: 3c22e1f575ef110955ccd0a5b70d67f32435db2aafef8c553cdb6425dc4d76bbd498d673e7f92ac533507008a82f42a9fed9f3dc7d19087feb5629ce31dcca0b
6
+ metadata.gz: 6c80dd7943e1ed648a7ade44e4d515bf69db9fd27ecbfb92f8a761634f3e957fae7c3ba6f592558ad65b342f9e038d7b3e03e7a8e742495fc767dfbb7c5e41d3
7
+ data.tar.gz: adc12154ca8a5faa84ade9bf9644ead026e03ef7db3b9e6e9b65995d90b0e6ac96eb1a889db411e000df902316b0006aace883ad7d004dbc52974fa5dcdde045
@@ -51,7 +51,7 @@ module HelloSign
51
51
  include Api::OAuth
52
52
  include Api::ApiApp
53
53
 
54
- attr_accessor :end_point, :oauth_end_point, :api_version, :user_agent, :client_id, :client_secret, :email_address, :password, :api_key, :auth_token, :logging, :log_level, :proxy_uri, :proxy_user, :proxy_pass
54
+ attr_accessor :end_point, :oauth_end_point, :api_version, :user_agent, :client_id, :client_secret, :email_address, :password, :api_key, :auth_token, :logging, :log_level, :proxy_uri, :proxy_user, :proxy_pass, :timeout
55
55
 
56
56
  ERRORS = {
57
57
  400 => Error::BadRequest,
@@ -154,6 +154,7 @@ module HelloSign
154
154
  faraday.request :url_encoded
155
155
  faraday.response :logger, logger if @logging
156
156
  faraday.adapter :net_http
157
+ faraday.options[:timeout] = timeout if timeout
157
158
  end
158
159
  if options[:no_auth]
159
160
  elsif auth_token
@@ -33,7 +33,7 @@ module HelloSign
33
33
  DEFAULT_ENDPOINT = 'https://api.hellosign.com'
34
34
  DEFAULT_API_VERSION = '/v3'
35
35
  DEFAULT_OAUTH_ENDPOINT = 'https://app.hellosign.com'
36
- VALID_OPTIONS_KEYS = [:end_point, :oauth_end_point, :api_version, :user_agent, :client_id, :client_secret, :email_address, :password, :api_key, :auth_token, :log_level, :logging, :proxy_uri, :proxy_user, :proxy_pass]
36
+ VALID_OPTIONS_KEYS = [:end_point, :oauth_end_point, :api_version, :user_agent, :client_id, :client_secret, :email_address, :password, :api_key, :auth_token, :log_level, :logging, :proxy_uri, :proxy_user, :proxy_pass, :timeout]
37
37
 
38
38
 
39
39
  DEFAULT_USER_AGENT = "hellosign-ruby-sdk/" + HelloSign::VERSION
@@ -77,6 +77,7 @@ module HelloSign
77
77
  self.proxy_uri = nil
78
78
  self.proxy_user = nil
79
79
  self.proxy_pass = nil
80
+ self.timeout = nil
80
81
  end
81
82
  end
82
83
  end
@@ -23,5 +23,5 @@
23
23
  #
24
24
 
25
25
  module HelloSign
26
- VERSION = '3.6'
26
+ VERSION = '3.6.1'
27
27
  end
@@ -28,7 +28,8 @@ describe HelloSign::Client do
28
28
  :logging => false,
29
29
  :proxy_uri => 'proxy_uri',
30
30
  :proxy_user => 'proxy_user',
31
- :proxy_pass => 'proxy_pass'
31
+ :proxy_pass => 'proxy_pass',
32
+ :timeout => 240
32
33
  }
33
34
  }
34
35
  subject(:client) { HelloSign::Client.new custom_client }
@@ -37,6 +38,14 @@ describe HelloSign::Client do
37
38
  expect(client.send(key)).to eql(custom_client[key])
38
39
  end
39
40
  end
41
+
42
+ it "should create a new HelloSign Client" do
43
+ expect(client).to be_an_instance_of(HelloSign::Client)
44
+ end
45
+
46
+ it "should have 'timeout' as a parameter" do
47
+ expect(client.timeout).to eq(240)
48
+ end
40
49
  end
41
50
  end
42
51
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hellosign-ruby-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.6'
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HelloSign
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-30 00:00:00.000000000 Z
11
+ date: 2018-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler