esignatur 1.2.1 → 1.2.2

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: 0ec5608fc8c46c4b6204d2318483a34685b3bd42e266ba7f650f809ae2a8ecae
4
- data.tar.gz: df22ce9c51117cb6ed043067b72c7eb9afaae6daaa33b972aff18a5fe97d130b
3
+ metadata.gz: 329f23bcf2dbcdec7cdf664be600d6832c871ccb898e1f5b5b20b05164eba484
4
+ data.tar.gz: f1b951c3c7d4c4514f5bcfc0b09564732de6f9336bb0a4265e1ba93c75413bca
5
5
  SHA512:
6
- metadata.gz: 32812bb4fc28a496f70a888989e2e6c63bd4a44b24f55e02a8cbdc5f50b3c345a6962d88d4dddb2579f366440a8ca22d885d91236c2643aa9ae79a8a2ac3eef5
7
- data.tar.gz: fef6921c00bbbae2f4c528fe4f4aa1c03e16baab87c397389160b684a1dc59a1a547453b8e3c6de62045b084c852b137d42862ea2274f5065a1fe017feef3005
6
+ metadata.gz: fb70b2bad463b1e45e9fbf1f4c7774fd774eb9845208577aa09bce2db5ed6b0c0f33808fffbcb91aad95b892ed14d80865fb1cb98278e254cb66f2762bffc30d
7
+ data.tar.gz: 765e371eb72d3e3acaee890ce8fd71e6a97947ae9e3627a01c830755bd01945113f8678d826f9e61ae5f4bd200d5c3248c500b5bb08f6b06734e9c5298b339f1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- esignatur (1.2.1)
4
+ esignatur (1.2.2)
5
5
  activesupport (>= 3.0)
6
6
  faraday (>= 0.10)
7
7
 
@@ -22,7 +22,9 @@ module Esignatur
22
22
  end
23
23
 
24
24
  def fetch
25
- @attributes = api_post('Pades/Download', 'Id' => order.id, 'DocumentIndex' => 0).json_body
25
+ response = api_post('Pades/Download', 'Id' => order.id, 'DocumentIndex' => 0)
26
+ @attributes = response.json_body if errors.empty?
27
+ self
26
28
  end
27
29
 
28
30
  private
@@ -17,7 +17,8 @@ module Esignatur
17
17
  end
18
18
 
19
19
  def fetch
20
- @attributes = api_get("status/get/#{order.id}").json_body
20
+ response = api_get("status/get/#{order.id}")
21
+ @attributes = response.json_body if errors.empty?
21
22
  self
22
23
  end
23
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Esignatur
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esignatur
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Povilas Jurcys
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-29 00:00:00.000000000 Z
11
+ date: 2018-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday