hellosign-ruby-sdk 3.3.0 → 3.4.0
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/CONTRIBUTING.md +1 -1
- data/README.md +3 -3
- data/lib/hello_sign/api/account.rb +1 -1
- data/lib/hello_sign/api/api_app.rb +1 -1
- data/lib/hello_sign/api/embedded.rb +3 -3
- data/lib/hello_sign/api/signature_request.rb +9 -3
- data/lib/hello_sign/api/team.rb +1 -1
- data/lib/hello_sign/api/template.rb +1 -1
- data/lib/hello_sign/api/unclaimed_draft.rb +1 -1
- data/lib/hello_sign/resource/account.rb +1 -1
- data/lib/hello_sign/resource/api_app.rb +1 -1
- data/lib/hello_sign/resource/embedded.rb +1 -1
- data/lib/hello_sign/resource/signature_request.rb +1 -1
- data/lib/hello_sign/resource/team.rb +1 -1
- data/lib/hello_sign/resource/template.rb +1 -1
- data/lib/hello_sign/resource/template_draft.rb +1 -1
- data/lib/hello_sign/resource/unclaimed_draft.rb +1 -1
- data/lib/hello_sign/version.rb +1 -1
- data/spec/hello_sign/api/signature_request_spec.rb +19 -0
- data/spec/spec_helper.rb +2 -2
- 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: a385289e3cf44bf369dd47ddfebc38cac0c92f85
|
4
|
+
data.tar.gz: cb4e117e1514387c2ae5d9b90c70303a2d56441f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9b21616f1202c91af28b220f4155ccb1b53edab87a1eb2f8aebf530b78d7230d76d0c9e85f5deb2091507fb47e11e28891feb963e1e04f0a98f7e610e3f20ca
|
7
|
+
data.tar.gz: 92d814dc38788bf034ebc28b84afe10bde5aed0ffd926a803deba54da8552461f2b3e8155b679d1342197c384746207d567c7c2f006ad9d3ae25a0d3ed886230
|
data/CONTRIBUTING.md
CHANGED
@@ -38,5 +38,5 @@ always necessary to create a new issue ticket.
|
|
38
38
|
|
39
39
|
* [General GitHub documentation](http://help.github.com/)
|
40
40
|
* [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
|
41
|
-
* [HelloSign API documentation](https://
|
41
|
+
* [HelloSign API documentation](https://app.hellosign.com/api/documentation)
|
42
42
|
* [HelloSign API HipChat room](https://www.hipchat.com/gq4BMFKt1)
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# HelloSign Ruby SDK
|
2
2
|
|
3
3
|
In addition to this readme, checkout our quickstart guide here:
|
4
|
-
https://
|
4
|
+
https://app.hellosign.com/api/documentation#QuickStart
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
@@ -15,8 +15,8 @@ And then execute:
|
|
15
15
|
|
16
16
|
## Configuration
|
17
17
|
|
18
|
-
Create a config block. At a minimum you'll want to set your [API Key](https://
|
19
|
-
want to set your app's [Client ID](https://
|
18
|
+
Create a config block. At a minimum you'll want to set your [API Key](https://app.hellosign.com/home/myAccount/current_tab/integrations#api) but depending on your usage you'll possibly
|
19
|
+
want to set your app's [Client ID](https://app.hellosign.com/oauth/createAppForm) and [Client Secret](https://app.hellosign.com/oauth/createAppForm). In Rails you can place it in `config/initializers/hello_sign.rb`
|
20
20
|
|
21
21
|
```ruby
|
22
22
|
require 'hello_sign'
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# Contains all the api calls for the Account resource.
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference#Account account api document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# Contains all the api calls for the ApiApp resource.
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference#Team team api document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -1,8 +1,8 @@
|
|
1
1
|
#
|
2
2
|
# The MIT License (MIT)
|
3
|
-
#
|
3
|
+
#
|
4
4
|
# Copyright (C) 2014 hellosign.com
|
5
|
-
#
|
5
|
+
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the "Software"), to deal
|
8
8
|
# in the Software without restriction, including without limitation the rights
|
@@ -28,7 +28,7 @@ module HelloSign
|
|
28
28
|
#
|
29
29
|
# HelloSign allows you to embed the signing page on your site in an iFrame
|
30
30
|
# without the need for the end-user to create a HelloSign account.
|
31
|
-
# Take a look at our {https://
|
31
|
+
# Take a look at our {https://app.hellosign.com/api/embeddedSigningWalkthrough embedded signing walkthrough}
|
32
32
|
# for more information about this.
|
33
33
|
#
|
34
34
|
# @author [hellosign]
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# Contains all the api about the SignatureRequest resource.
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference#SignatureRequest signature request api document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -274,7 +274,7 @@ module HelloSign
|
|
274
274
|
# If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents.
|
275
275
|
# Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on HelloSign.
|
276
276
|
# @option opts [Integer] test_mode (0) Whether this is a test, the signature request will not be legally binding if set to 1.
|
277
|
-
# @option opts [String] client_id Client id of the app you're using to create this embedded signature request. Visit our {https://
|
277
|
+
# @option opts [String] client_id Client id of the app you're using to create this embedded signature request. Visit our {https://app.hellosign.com/api/reference#Embedded embedded page} page to learn more about this parameter.
|
278
278
|
# @option opts [Array<String>] files Use files to indicate the uploaded file(s) to send for signature. Currently we only support use of either the files parameter or file_urls parameter, not both.
|
279
279
|
# @option opts [Array<String>] file_urls Use file_urls to have HelloSign download the file(s) to send for signature. Currently we only support use of either the files parameter or file_urls parameter, not both.
|
280
280
|
# @option opts [String] title The title you want to assign to the SignatureRequest.
|
@@ -329,7 +329,7 @@ module HelloSign
|
|
329
329
|
# Creates a new SignatureRequest based on the given Template to be signed in an embedded iFrame.
|
330
330
|
# Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on HelloSign.
|
331
331
|
# @option opts [Integer] test_mode (0) Whether this is a test, the signature request will not be legally binding if set to 1.
|
332
|
-
# @option opts [String] client_id Client id of the app you're using to create this embedded signature request. Visit our {https://
|
332
|
+
# @option opts [String] client_id Client id of the app you're using to create this embedded signature request. Visit our {https://app.hellosign.com/api/reference#Embedded embedded page} page to learn more about this parameter.
|
333
333
|
# @option opts [String] template_id The id of the Template to use when creating the SignatureRequest.
|
334
334
|
# @option opts [String] title The title you want to assign to the SignatureRequest.
|
335
335
|
# @option opts [String] subject The subject in the email that will be sent to the signers.
|
@@ -388,6 +388,12 @@ module HelloSign
|
|
388
388
|
|
389
389
|
HelloSign::Resource::SignatureRequest.new post('/signature_request/create_embedded_with_template', :body => opts)
|
390
390
|
end
|
391
|
+
|
392
|
+
def update_signature_request(opts)
|
393
|
+
signature_request_id = opts.delete(:signature_request_id)
|
394
|
+
path = "/signature_request/update/#{signature_request_id}"
|
395
|
+
HelloSign::Resource::SignatureRequest.new post(path, :body => opts)
|
396
|
+
end
|
391
397
|
end
|
392
398
|
end
|
393
399
|
end
|
data/lib/hello_sign/api/team.rb
CHANGED
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# Contains all the api calls for the Team resource.
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference#Team team api document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# Contains all the api calls for the Template resource.
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/embeddedTemplatesWalkthrough template form api document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# Contains all the api calls for the UnclaimedDraft resource.
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference#UnclaimedDraft unclaimed draft document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# Contains information about an account and its settings.
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference#Account account resource document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# Contains information about an team and its members.
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference#ApiApp API Application resource document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# An object that contains necessary information to set up embedded signing.
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference#Embedded account resource document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# Contains information regarding documents that need to be signed
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference#SignatureRequest signature request resource document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# Contains information about an team and its members.
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference#Team team resource document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# Contains information about the templates you and your team have created
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference#Template Template resource document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# A group of documents that a user can take ownership of by going to the claim URL
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
@@ -27,7 +27,7 @@ module HelloSign
|
|
27
27
|
|
28
28
|
#
|
29
29
|
# A group of documents that a user can take ownership of by going to the claim URL
|
30
|
-
# Take a look at our {https://
|
30
|
+
# Take a look at our {https://app.hellosign.com/api/reference#UnclaimedDraft unclaimed draft resource document}
|
31
31
|
# for more information about this.
|
32
32
|
#
|
33
33
|
# @author [hellosign]
|
data/lib/hello_sign/version.rb
CHANGED
@@ -176,4 +176,23 @@ describe HelloSign::Api::SignatureRequest do
|
|
176
176
|
expect(a_post('/signature_request/create_embedded_with_template')).to have_been_made
|
177
177
|
end
|
178
178
|
end
|
179
|
+
|
180
|
+
describe '#update_signature_request' do
|
181
|
+
before do
|
182
|
+
stub_post('/signature_request/update/1', 'signature_request')
|
183
|
+
@signature_request = HelloSign.update_signature_request(
|
184
|
+
:signature_request_id => '1',
|
185
|
+
:signature_id => 'signature_id',
|
186
|
+
:email_address => 'updated_signer_email_address@example.com'
|
187
|
+
)
|
188
|
+
end
|
189
|
+
|
190
|
+
it 'should get the correct resource' do
|
191
|
+
expect(a_post('/signature_request/update/1')).to have_been_made
|
192
|
+
end
|
193
|
+
|
194
|
+
it 'should return a Signature Request' do
|
195
|
+
expect(@signature_request).to be_a HelloSign::Resource::SignatureRequest
|
196
|
+
end
|
197
|
+
end
|
179
198
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -6,9 +6,9 @@
|
|
6
6
|
|
7
7
|
#
|
8
8
|
# The MIT License (MIT)
|
9
|
-
#
|
9
|
+
#
|
10
10
|
# Copyright (C) 2014 hellosign.com
|
11
|
-
#
|
11
|
+
#
|
12
12
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
13
13
|
# of this software and associated documentation files (the "Software"), to deal
|
14
14
|
# in the Software without restriction, including without limitation the rights
|
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.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HelloSign
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|