hellosign-ruby-sdk 3.2.5 → 3.2.7

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: 2cf185c87dcec43a2dbc6cfd083e5104050fac4a
4
- data.tar.gz: e9808d5120e7f25c622fb7901845890e84332dd0
3
+ metadata.gz: b32ce1b07510e90068e93efb8741f034c972d554
4
+ data.tar.gz: 215e09a6a49ec7a89c0e77ec4c1487a2199cfd99
5
5
  SHA512:
6
- metadata.gz: 9160239491b8e82649fa8f074b299090df49fc63b19c6e329241eba56416607273d6de923e16db745518e39f644bbecfeb25522aa9dbe450ca1040360e10c68f
7
- data.tar.gz: d1d1fead80457c1ef12dcc9bdb74c9230ad00a71c3549b4db0eaf7233e16cd77e1a0c24ec63f90f2cefeb8effca5fc286141ef258e35c81dc0d18f6576a47623
6
+ metadata.gz: ee5a7d2684a63906f01fac02dafa00d03415a7b0e08f7d46eca10a315b1c090f266b875e6355ea7165aabf5cfab69c9db81670c6b8d3ed58f8f45f37de4a642a
7
+ data.tar.gz: 4976c0f97b31d698ab796243b7bc84b63711e1377654585bfa354507b66fdd755e49a51d9bb9426a268c2682474d3f36ef61d05c684be955360c92ff1970601e
data/README.md CHANGED
@@ -40,7 +40,7 @@ my_account = HelloSign.get_account
40
40
  my_signature_requests = HelloSign.get_signature_requests
41
41
 
42
42
  # view a specific signature request
43
- signature_request = HelloSign.get_signature_requests :signature_request_id => '42383e7327eda33f4b8b91217cbe95408cc1285f'
43
+ signature_request = HelloSign.get_signature_request :signature_request_id => '42383e7327eda33f4b8b91217cbe95408cc1285f'
44
44
  ```
45
45
 
46
46
  If you need to authenticate for multiple users and you want a separated client for them, you can run:
@@ -53,8 +53,9 @@ module HelloSign
53
53
 
54
54
  #
55
55
  # Returns a list of SignatureRequests that you can access. This includes SignatureRequests you have sent as well as received, but not ones that you have been CCed on.
56
- # @option opts [Integer] page (1) Which page number of the Template List to return.
57
- # @option opts [Integer] ux_version sets the version of the signer page to use
56
+ # @option opts[:page] [Integer] page (1) Which page number of the Template List to return.
57
+ # @option opts[:ux_version] [Integer] ux_version sets the version of the signer page to use
58
+ # @option opts[:query] [String] query string to search on, such as "title:Field Trip Release AND from:me"
58
59
  #
59
60
  # @return [HelloSign::Resource::ResourceArray]
60
61
  #
@@ -63,7 +64,8 @@ module HelloSign
63
64
  #
64
65
  def get_signature_requests(opts={})
65
66
  path = '/signature_request/list'
66
- query = create_query_string(opts, [:page, :page_size, :ux_version])
67
+ opts[:query] = create_search_string(opts[:query])
68
+ query = create_query_string(opts, [:page, :page_size, :ux_version, :query])
67
69
  path += query
68
70
  HelloSign::Resource::ResourceArray.new get(path, opts), 'signature_requests', HelloSign::Resource::SignatureRequest
69
71
  end
@@ -183,6 +183,8 @@ module HelloSign
183
183
  def parse(response)
184
184
  if response['content-type'] == 'application/pdf'
185
185
  response.body
186
+ elsif response['content-type'] == 'application/zip'
187
+ response.body
186
188
  elsif response.body.strip.empty?
187
189
  {}
188
190
  else
@@ -269,6 +271,10 @@ module HelloSign
269
271
  result
270
272
  end
271
273
 
274
+ def create_search_string(raw_string)
275
+ raw_string.tr(" ", "+")
276
+ end
277
+
272
278
  def prepare_signers(opts)
273
279
  prepare opts, :signers
274
280
  end
@@ -23,5 +23,5 @@
23
23
  #
24
24
 
25
25
  module HelloSign
26
- VERSION = '3.2.5'
26
+ VERSION = '3.2.7'
27
27
  end
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.2.5
4
+ version: 3.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - HelloSign
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2016-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler