hellosign-ruby-sdk 3.2.7 → 3.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/hello_sign/api/signature_request.rb +2 -0
- data/lib/hello_sign/client.rb +7 -0
- data/lib/hello_sign/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: 512f332004fb7f9b998ba9fd7fb7e7f4c9c0b680
|
|
4
|
+
data.tar.gz: 701daa5d4ddb438d53fe30754e84158ea0dfcc85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/hello_sign/client.rb
CHANGED
|
@@ -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|
|
data/lib/hello_sign/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-03-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|