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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c236f16095f593671130db8aca56b97673f41b8
4
- data.tar.gz: 99119655a55a4f245e35b89f8907429113cc9c0d
3
+ metadata.gz: 175abc752b026847888755bd431776e30a4f6d09
4
+ data.tar.gz: 0135af34c308e21eb3de4ff5640ce75263e680d5
5
5
  SHA512:
6
- metadata.gz: 3df0d814aaeed1da9c0fc93074cabf3526c7d3d37a1b25022679446128fb370de0687afd8dc21fa87e1fa8a026ff893336a96aef202a39bb24c3f3395f4db377
7
- data.tar.gz: 01be4b3830e774c0224f553caa69a0f4f128f822f07d03b0ad132bde00425aa194b45b1713698473742c8cf6cb5d5281842190d3838540393d43dc25cce078dd
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 [https://help.universign.com/hc/fr/sections/360000148149-Guides-Universign]().
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
  }
@@ -1,3 +1,3 @@
1
1
  module Universign
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
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.1
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: 2018-09-26 00:00:00.000000000 Z
13
+ date: 2019-10-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport