docusign_rest 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -0
- data/lib/docusign_rest/client.rb +3 -0
- data/lib/docusign_rest/configuration.rb +5 -1
- data/lib/docusign_rest/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: 315dfbf3d74db6eeb178103fdbff1e292cae24d6
|
4
|
+
data.tar.gz: a266dc5675f6f245f00d6d6ac63f54ee99f587f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe3576b188cd80e125d33041ff04be4ee1872dea3945d92d7a229c9400ff6ff4a89e668de9bebf3826acd043910354d7a92c91bb8d2516fb01e538ea3a386f0e
|
7
|
+
data.tar.gz: e4961c5a5c819f8f10635a295328b406a41ce03f449e16d5781569cbbbe84595224267cb4e5182e5db36735070ac676d7f5e990ac290b9e93c7624c92ca2a958
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -66,6 +66,8 @@ There are several other configuration options available but the two most likely
|
|
66
66
|
```ruby
|
67
67
|
config.endpoint = 'https://docusign.net/restapi'
|
68
68
|
config.api_version = 'v2'
|
69
|
+
config.open_timeout = 2 # default value is 5
|
70
|
+
config.read_timeout = 5 # default value is 10
|
69
71
|
```
|
70
72
|
|
71
73
|
The above options allow you to change the endpoint (to be able to hit the production DocuSign API, for instance) and to modify the API version you wish to use.
|
data/lib/docusign_rest/client.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module DocusignRest
|
2
2
|
module Configuration
|
3
3
|
VALID_CONNECTION_KEYS = [:endpoint, :api_version, :user_agent, :method].freeze
|
4
|
-
VALID_OPTIONS_KEYS = [:access_token, :username, :password, :integrator_key, :account_id, :format, :ca_file].freeze
|
4
|
+
VALID_OPTIONS_KEYS = [:access_token, :username, :password, :integrator_key, :account_id, :format, :ca_file, :open_timeout, :read_timeout].freeze
|
5
5
|
VALID_CONFIG_KEYS = VALID_CONNECTION_KEYS + VALID_OPTIONS_KEYS
|
6
6
|
|
7
7
|
DEFAULT_ENDPOINT = 'https://demo.docusign.net/restapi'
|
@@ -17,6 +17,8 @@ module DocusignRest
|
|
17
17
|
DEFAULT_ACCOUNT_ID = nil
|
18
18
|
DEFAULT_CA_FILE = nil # often found at: '/etc/ssl/certs/cert.pem'
|
19
19
|
DEFAULT_FORMAT = :json
|
20
|
+
DEFAULT_OPEN_TIMEOUT = 5
|
21
|
+
DEFAULT_READ_TIMEOUT = 10
|
20
22
|
|
21
23
|
# Build accessor methods for every config options so we can do this, for example:
|
22
24
|
# DocusignRest.format = :xml
|
@@ -39,6 +41,8 @@ module DocusignRest
|
|
39
41
|
self.account_id = DEFAULT_ACCOUNT_ID
|
40
42
|
self.format = DEFAULT_FORMAT
|
41
43
|
self.ca_file = DEFAULT_CA_FILE
|
44
|
+
self.open_timeout = DEFAULT_OPEN_TIMEOUT
|
45
|
+
self.read_timeout = DEFAULT_READ_TIMEOUT
|
42
46
|
end
|
43
47
|
|
44
48
|
# Allow configuration via a block
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docusign_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Kinney
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-11-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multipart-post
|