hellosign-ruby-sdk 3.2.7 → 3.2.8

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: b32ce1b07510e90068e93efb8741f034c972d554
4
- data.tar.gz: 215e09a6a49ec7a89c0e77ec4c1487a2199cfd99
3
+ metadata.gz: 512f332004fb7f9b998ba9fd7fb7e7f4c9c0b680
4
+ data.tar.gz: 701daa5d4ddb438d53fe30754e84158ea0dfcc85
5
5
  SHA512:
6
- metadata.gz: ee5a7d2684a63906f01fac02dafa00d03415a7b0e08f7d46eca10a315b1c090f266b875e6355ea7165aabf5cfab69c9db81670c6b8d3ed58f8f45f37de4a642a
7
- data.tar.gz: 4976c0f97b31d698ab796243b7bc84b63711e1377654585bfa354507b66fdd755e49a51d9bb9426a268c2682474d3f36ef61d05c684be955360c92ff1970601e
6
+ metadata.gz: 77c45f2b777704d6846109425533be79467ba49929614108193b61761be6ad708c58f8631446d9a1b72ae76c819e0fb0abe0195d37a13a8ee0d2117bf6f7804f
7
+ data.tar.gz: e120fe4bd95d455bad3f5d36bd8cd603ca421598e4a41ce462fbea5000565b5df715874a9fcb871047770964c4c39d2b984fc623e8f0dcd88dadf46c3e264797
@@ -202,6 +202,7 @@ module HelloSign
202
202
  prepare_signers opts
203
203
  prepare_ccs opts
204
204
  prepare_templates opts
205
+ prepare_custom_fields opts
205
206
 
206
207
  HelloSign::Resource::SignatureRequest.new post('/signature_request/send_with_template', :body => opts)
207
208
  end
@@ -360,6 +361,7 @@ module HelloSign
360
361
  prepare_signers opts
361
362
  prepare_ccs opts
362
363
  prepare_templates opts
364
+ prepare_custom_fields opts
363
365
 
364
366
  HelloSign::Resource::SignatureRequest.new post('/signature_request/create_embedded_with_template', :body => opts)
365
367
  end
@@ -295,6 +295,13 @@ module HelloSign
295
295
  prepare opts, :signer_roles
296
296
  end
297
297
 
298
+ def prepare_custom_fields(opts)
299
+ if (opts[:custom_fields] and opts[:custom_fields].is_a? Array)
300
+ opts[:custom_fields] = MultiJson.dump(opts[:custom_fields])
301
+ end
302
+ #ignore if it's already a string, or not present
303
+ end
304
+
298
305
  def prepare(opts, key)
299
306
  return unless opts[key]
300
307
  opts[key].each_with_index do |value, index|
@@ -23,5 +23,5 @@
23
23
  #
24
24
 
25
25
  module HelloSign
26
- VERSION = '3.2.7'
26
+ VERSION = '3.2.8'
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.7
4
+ version: 3.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - HelloSign
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-27 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler