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 +4 -4
- data/lib/hello_sign/client.rb +2 -1
- data/lib/hello_sign/configuration.rb +2 -1
- data/lib/hello_sign/version.rb +1 -1
- data/spec/hello_sign/client_spec.rb +10 -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: 9a8ba883a4aa8b3dc4bbefcd44233f4a5ced8219
|
4
|
+
data.tar.gz: 4dd9fd6acdf226d24d85a9cbad67d5ab0fef64a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c80dd7943e1ed648a7ade44e4d515bf69db9fd27ecbfb92f8a761634f3e957fae7c3ba6f592558ad65b342f9e038d7b3e03e7a8e742495fc767dfbb7c5e41d3
|
7
|
+
data.tar.gz: adc12154ca8a5faa84ade9bf9644ead026e03ef7db3b9e6e9b65995d90b0e6ac96eb1a889db411e000df902316b0006aace883ad7d004dbc52974fa5dcdde045
|
data/lib/hello_sign/client.rb
CHANGED
@@ -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
|
data/lib/hello_sign/version.rb
CHANGED
@@ -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:
|
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-
|
11
|
+
date: 2018-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|