ruby_universign 1.5.0 → 1.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4146faa8f8d27032db64034d6350a8b01fc48867c1eb34fde2c0b23327022bb
4
- data.tar.gz: 89bf6f2025a5ee0f25f93d246a43443780d4c314de35dff59f5e025334d0a69d
3
+ metadata.gz: b7f7b34b6f2e64791dbf6910f67dc2d39fda890db4e90c0c6e20a3516a50b26e
4
+ data.tar.gz: 24b47db3af2b7dd0a644649e80fc61880e06ef546909c2479d0c3b93fac7aa66
5
5
  SHA512:
6
- metadata.gz: ad3b266194f219e15daeb6a0be93004ebb46ee35dc93ed67ccc1077a6601ae5a91189f0fbd5b5f809c049b05ad98ffe6a284448268e04904c889030b5d20b0e4
7
- data.tar.gz: 798fee3c9d80556a8d6dcd4ece8ea5127974e6b16d8075d9ec0fce5bda7f0d7ac3b9f5cc94a2da2e451c505e97db663d1cef759dbe4dfa45532f76b4ac49691e
6
+ metadata.gz: b868fd44745e5fc5671f17977249d538a406de57c04219448eec046f7f053c5325bfdaa78ca70e0c8f4fd67fb1bcda738590725f01ba692e207ac4b0c80794d4
7
+ data.tar.gz: 6a7fbc730e6687ad99fb528f638cc3b43121f5728229b634065545fedff9bc111ed487f06f71d10fbc448173e46eb77856d8363376d4e3a6d40a99af2b89e7a4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ v1.5.1
2
+ -------------------------
3
+ - Fix bugs on multi-threads requests.
4
+
5
+ v1.5.0
6
+ -------------------------
7
+ - Add `xmlrpc` as dependency, and raise required ruby version to 2.3.
8
+
1
9
  v1.4.0
2
10
  -------------------------
3
11
  - Refactor and rename errors. They now all inherit from `Universign::Error`.
data/README.md CHANGED
@@ -59,12 +59,12 @@ document_from_content = Universign::Document.new(
59
59
  )
60
60
 
61
61
  signer = Universign::TransactionSigner.new(
62
- first_name: "Signer's first name",
63
- last_name: "Signer's last name",
64
- email: 'test@gmail.com',
65
- phone_number: '0101010101',
66
- success_url: 'https://google.com/',
67
- signature: Universign::SignatureField.new(coordinate: [20, 20], page: 1)
62
+ first_name: "Signer's first name",
63
+ last_name: "Signer's last name",
64
+ email: 'test@gmail.com',
65
+ phone_number: '0101010101',
66
+ success_url: 'https://google.com/',
67
+ signature_field: Universign::SignatureField.new(coordinate: [20, 20], page: 1)
68
68
  )
69
69
 
70
70
  transaction = Universign::Transaction.create(
@@ -2,7 +2,6 @@ require 'singleton'
2
2
 
3
3
  module Universign
4
4
  class Client
5
- include ::Singleton
6
5
  attr_reader :client
7
6
 
8
7
  def initialize
@@ -5,7 +5,7 @@ module Universign
5
5
  #
6
6
  # @return [Array<Universign::Document>]
7
7
  def documents
8
- @client = Universign::Client.instance
8
+ @client = Universign::Client.new
9
9
 
10
10
  @documents ||= safeguard do
11
11
  result = @client.call('requester.getDocuments', @transaction_id)
@@ -26,7 +26,7 @@ module Universign
26
26
  #
27
27
  # @return [Universign::Transaction]
28
28
  def get
29
- @client = Universign::Client.instance
29
+ @client = Universign::Client.new
30
30
 
31
31
  safeguard do
32
32
  result = @client.call('requester.getTransactionInfo', @transaction_id)
@@ -59,7 +59,7 @@ module Universign
59
59
  #
60
60
  # @return [Universign::Transaction]
61
61
  def create(documents:, signers:, options: {})
62
- @client = Universign::Client.instance
62
+ @client = Universign::Client.new
63
63
 
64
64
  sign_options = DEFAULT_OPTIONS.merge(
65
65
  documents: documents.map(&:params),
@@ -95,7 +95,7 @@ module Universign
95
95
  private
96
96
 
97
97
  def client
98
- @client ||= Universign::Client.new.client
98
+ Universign::Client.new.client
99
99
  end
100
100
  end
101
101
  end
@@ -1,3 +1,3 @@
1
1
  module Universign
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
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.5.0
4
+ version: 1.5.1
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: 2021-03-05 00:00:00.000000000 Z
13
+ date: 2021-03-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport