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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e37e30024252e71a7da04bc3c5a81eead9adb260
4
- data.tar.gz: c40e6b84485e8610195d11c523f7aebc4b275bec
3
+ metadata.gz: 315dfbf3d74db6eeb178103fdbff1e292cae24d6
4
+ data.tar.gz: a266dc5675f6f245f00d6d6ac63f54ee99f587f4
5
5
  SHA512:
6
- metadata.gz: 33c61ea8b73efde9a801257527743ac53b94ccaaafd0dfb8f007c45559ce2a41c0eff759f1b9bb59e5225217ccc737099f4d40300675c7d9699d2703216078aa
7
- data.tar.gz: 9b60c1657d27655ce5fb0fe02f6aa2657ee4f5dedfef0a723ec17d02abb23bb28dca355cd2efc8c62515c7053b86452db8763e73556f3e7a1d192c7eb82e665d
6
+ metadata.gz: fe3576b188cd80e125d33041ff04be4ee1872dea3945d92d7a229c9400ff6ff4a89e668de9bebf3826acd043910354d7a92c91bb8d2516fb01e538ea3a386f0e
7
+ data.tar.gz: e4961c5a5c819f8f10635a295328b406a41ce03f449e16d5781569cbbbe84595224267cb4e5182e5db36735070ac676d7f5e990ac290b9e93c7624c92ca2a958
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.4 Nov 20 2017
4
+
5
+ * Add open (default 5 seconds) and read (default 10 seconds) timeouts (Tom Copeland)
6
+
3
7
  ## v0.3.3 Sep 1 2017
4
8
 
5
9
  * Support fetching templates by folder name (Tom Copeland)
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.
@@ -120,6 +120,9 @@ module DocusignRest
120
120
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
121
121
  end
122
122
 
123
+ http.open_timeout = open_timeout
124
+ http.read_timeout = read_timeout
125
+
123
126
  http
124
127
  end
125
128
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module DocusignRest
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
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.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-09-01 00:00:00.000000000 Z
12
+ date: 2017-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multipart-post