ruby_universign 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/universign/signature_field.rb +4 -2
- data/lib/universign/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: 175abc752b026847888755bd431776e30a4f6d09
|
4
|
+
data.tar.gz: 0135af34c308e21eb3de4ff5640ce75263e680d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 377524bd902b6537adfd59a0f08b980e63a3ba7659a39bfa35ed93d4aecb96ce580a12101a810c3e2d6020863481757c4af3c0e7f9e1358ce2488ed9a146caac
|
7
|
+
data.tar.gz: ce7b8e42e17d62783532e94206f74671bbf9a6fcec5eebc9a7794974f0b3b30dddaa34bd55670afd34cc566d5e1dbe6775703c0fa3c234dd085ea40d8b277533
|
data/README.md
CHANGED
@@ -91,6 +91,10 @@ It can be created with either your file's content or your file's url.
|
|
91
91
|
|
92
92
|
Nothing much to say here. It follows Universign's signature field.
|
93
93
|
|
94
|
+
You can pass the coordinates of the signature or the name of the field.
|
95
|
+
|
96
|
+
If the PDF already contains a named signature field, you can use this parameter instead of giving the coordinates (which will be ignored). If the name of this field does not exist in the document, the given coordinates will be used instead.
|
97
|
+
|
94
98
|
### `Universign::TransactionSigner`
|
95
99
|
|
96
100
|
* `success_url` is where your user will be redirected after signing the documents.
|
@@ -135,7 +139,7 @@ Once your transaction is created:
|
|
135
139
|
|
136
140
|
## Universign documentation
|
137
141
|
|
138
|
-
As of September 25th 2018, all official Universign documentation can be found at
|
142
|
+
As of September 25th 2018, all official Universign documentation can be found at https://help.universign.com/hc/fr/sections/360000148149-Guides-Universign.
|
139
143
|
|
140
144
|
## Development
|
141
145
|
|
@@ -2,12 +2,14 @@ module Universign
|
|
2
2
|
class SignatureField
|
3
3
|
attr_reader :params
|
4
4
|
|
5
|
-
def initialize(coordinate:, page:)
|
6
|
-
@coordinate = coordinate
|
5
|
+
def initialize(coordinate:, name:, page:)
|
6
|
+
@coordinate = coordinate || [0, 0]
|
7
|
+
@name = name
|
7
8
|
@page = page
|
8
9
|
|
9
10
|
@params = {
|
10
11
|
page: @page,
|
12
|
+
name: @name,
|
11
13
|
x: @coordinate[0],
|
12
14
|
y: @coordinate[1]
|
13
15
|
}
|
data/lib/universign/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_universign
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Besnard
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2019-10-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|