esignatur 1.1.0 → 1.1.1

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
- SHA1:
3
- metadata.gz: 5fe073d133639d410eb843518fad63d14a9bfe3f
4
- data.tar.gz: 438fd000077e43b71082a46017d261d707179b40
2
+ SHA256:
3
+ metadata.gz: 3df94f222684c0d0958e2bd821eaa47407c40027da78ec96787456c16074af3b
4
+ data.tar.gz: 3098700001492334f205e87ff4e87c203f9be7c2bb595659079932911267f239
5
5
  SHA512:
6
- metadata.gz: 80e43b37d1de91a249452513c7acc9b405b80b809dce37f076d0cb11e9a05e94e7c8ee317a7dcf17fd0100621c0595f29bf17a86d1e49741048e7e239c1d053f
7
- data.tar.gz: a51c8865f60775672d5d27a4fb3fedab46a454074d8a0fc046a775b72f84f16127c252c7fcffa837e32b29304228033e20599c5450e7834df639cd34ad4af1bd
6
+ metadata.gz: 94b31a2004fd39adf2aec412039a5e5e4e81741e179c468b47b8e95b2cfa95c6a7e6ba90da2e9fed4d1a816c1287677e4af1a8c64a483351a5e02a45c6fdf0e4
7
+ data.tar.gz: '036769e4f30f82474f5309c2d8c2c0e2e8194c584bf262ac448b2d71af055d21eac957bedc103995d0a2de6a1fb0a486f63030f89308be874654c16e78b5d508'
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- esignatur (1.1.0)
4
+ esignatur (1.1.1)
5
5
  activesupport (>= 3.0)
6
6
  faraday (>= 0.10)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (5.2.1)
11
+ activesupport (5.2.0)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 0.7, < 2)
14
14
  minitest (~> 5.1)
@@ -30,7 +30,7 @@ GEM
30
30
  faraday (0.15.2)
31
31
  multipart-post (>= 1.2, < 3)
32
32
  hashdiff (0.3.7)
33
- i18n (1.1.0)
33
+ i18n (1.0.1)
34
34
  concurrent-ruby (~> 1.0)
35
35
  jaro_winkler (1.5.1)
36
36
  json (2.1.0)
data/README.md CHANGED
@@ -30,7 +30,9 @@ esignatur = Esignatur::Client.new(api_key: your_api_key)
30
30
 
31
31
  esignatur.orders.where(modified_since: Date.new(2000, 1, 1))
32
32
 
33
- order = esignatur.orders.find(1)
33
+ order = esignatur.orders.find(esignatur_order_id)
34
+
35
+ order = esignatur.orders.build
34
36
  order.create(some_order_params) # creates order on esignatur side
35
37
  order.status # returns Status object
36
38
  order.cancel # => true/false
@@ -40,7 +40,7 @@ module Esignatur
40
40
  end
41
41
 
42
42
  def pades
43
- Esignatur::Pades.new(order: self, api: api)
43
+ @pades ||= Esignatur::Pades.new(order: self, api: api)
44
44
  end
45
45
 
46
46
  private
@@ -21,12 +21,12 @@ module Esignatur
21
21
  Base64.decode64(attributes.fetch('DocumentData'))
22
22
  end
23
23
 
24
- private
25
-
26
- attr_reader :api
27
-
28
24
  def fetch
29
25
  @attributes = api_post('Pades/Download', 'Id' => order.id, 'DocumentIndex' => 0).json_body
30
26
  end
27
+
28
+ private
29
+
30
+ attr_reader :api
31
31
  end
32
32
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Esignatur
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
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.1.0
4
+ version: 1.1.1
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-10-11 00:00:00.000000000 Z
11
+ date: 2018-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  requirements: []
220
220
  rubyforge_project:
221
- rubygems_version: 2.6.14.1
221
+ rubygems_version: 2.7.6
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: ruby API client for esignatur.dk