docusign_rest 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -2
- data/lib/docusign_rest/client.rb +5 -2
- 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: 0ad67abd3cf8814f9a5f7eea665b58a5f016778a
|
4
|
+
data.tar.gz: 5a6b872e865673e973b134488ed4afb54010472d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 208f52a15a46334b0751201ef5f790251bd87aa402d72391e7704713b2888bc7068f308acda1ff18477fcc4a95f6821d39854fae16db484b0adb1cf5b23d1922
|
7
|
+
data.tar.gz: 5e6debc7712fe8b73f9737b4357c5d2b6b4cf79b67d337efa9862e911fcdb1286318d1348473dc54461022a0567c2e531fcf9930ed045e2151de5cd7d6d7907e
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -80,11 +80,11 @@ The docusign\_rest gem makes creating multipart POST (aka file upload) requests
|
|
80
80
|
|
81
81
|
#### Situations
|
82
82
|
|
83
|
-
**
|
83
|
+
**In the context of a Rails app**
|
84
84
|
|
85
85
|
This is how most people are using this gem - they've got a Rails app that's doing things with the Docusign API. In that case, these examples assume you have already set up a docusign account, have run the `docusign_rest:generate_config` rake task, and have the configure block properly setup in an initializer with your username, password, integrator\_key, and account\_id.
|
86
86
|
|
87
|
-
**
|
87
|
+
**In the context of this gem as a standalone project**
|
88
88
|
|
89
89
|
Ideally this gem will be independent of Rails. If that's your situation, there won't be a Rails initializer so your code will need to load the API authentication credentials. You will want to do something like:
|
90
90
|
|
data/lib/docusign_rest/client.rb
CHANGED
@@ -916,14 +916,17 @@ module DocusignRest
|
|
916
916
|
file_params = create_file_params(ios)
|
917
917
|
end
|
918
918
|
|
919
|
-
|
919
|
+
post_hash = {
|
920
920
|
emailBlurb: "#{options[:email][:body] if options[:email]}",
|
921
921
|
emailSubject: "#{options[:email][:subject] if options[:email]}",
|
922
922
|
status: options[:status],
|
923
923
|
brandId: options[:brand_id],
|
924
|
+
eventNotification: get_event_notification(options[:event_notification]),
|
924
925
|
allowReassign: options[:allow_reassign],
|
925
926
|
compositeTemplates: get_composite_template(options[:server_template_ids], options[:signers], options[:files])
|
926
|
-
}
|
927
|
+
}
|
928
|
+
|
929
|
+
post_body = post_hash.to_json
|
927
930
|
|
928
931
|
uri = build_uri("/accounts/#{acct_id}/envelopes")
|
929
932
|
|
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.1
|
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-05-
|
12
|
+
date: 2017-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multipart-post
|