esignatur 1.2.6 → 2.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
  SHA256:
3
- metadata.gz: c7dd1f4618e2aa836b73c01caa30e006dc70225fcac39c50ce1800f8f9774a7f
4
- data.tar.gz: dc03a0757930cea8d2b911363f6087820e60384655812a29de2a35665afc4694
3
+ metadata.gz: 6a6949dca95e7db555ce0ef6a51305250ae96b6915d4d22816c6cd4f39fb04f2
4
+ data.tar.gz: 40e103f6364ef082093550b9022c07931a4ab779198e971d40f2e8a1d5a9bda9
5
5
  SHA512:
6
- metadata.gz: 2f19152b0734e12e5fc6b96e235402062129555212d8438d51ed5e90d2d8d1d5337336a5ea96dd2321712e565a412983afb1e26f270fd72171bbf4d5a81b4f08
7
- data.tar.gz: fb8130fa4f5b997f2f4d55c85902fa4d705e747f1f51334972ddca8e5ad825e6f79152701e3ebc1d043a2a50e674fc9a50e5eadabe3be647b67506b5bb131998
6
+ metadata.gz: fd2676c1c5fe06d34609d14e6c5d6cca6ae66c9e822859d1e7378aa8b8f89db7e5248c870e5524957a6f8b5098886ee7e751d2a10a334f3546bb2a0e7cd4efa9
7
+ data.tar.gz: b10cdbacbdc0cb0f9acd78edf07e5b8dec4b2b786039a9ad2679e81d1bc362d3a87153199ae8225efc4ec065fbbf3d44f0b6b9ef3b758934bb47b1abcc4b4656
@@ -0,0 +1,19 @@
1
+ name: Ruby
2
+ on: [push, pull_request]
3
+ jobs:
4
+ specs:
5
+ strategy:
6
+ fail-fast: false
7
+ matrix:
8
+ ruby-version: ['3.0', '3.2', '3.3']
9
+
10
+ runs-on: ubuntu-latest
11
+ env:
12
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby-version }}
18
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
19
+ - run: bundle exec rake
@@ -1,3 +1,4 @@
1
1
  rubocop:
2
2
  config_file: .rubocop.yml
3
+ version: 1.5.2
3
4
  fail_on_violations: true
data/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ require: rubocop-rspec
3
3
  RSpec/NestedGroups:
4
4
  Enabled: false
5
5
 
6
- Metrics/LineLength:
6
+ Layout/LineLength:
7
7
  Enabled: true
8
8
  Max: 120
9
9
 
@@ -18,7 +18,7 @@ Lint/AmbiguousBlockAssociation:
18
18
  Exclude:
19
19
  - spec/**/*.rb
20
20
 
21
- Naming/UncommunicativeMethodParamName:
21
+ Naming/MethodParameterName:
22
22
  AllowedNames:
23
23
  - 'to'
24
24
  - 'at'
@@ -28,7 +28,7 @@ Naming/UncommunicativeMethodParamName:
28
28
  - 'as'
29
29
 
30
30
  AllCops:
31
- TargetRubyVersion: 2.5
31
+ TargetRubyVersion: 3.0
32
32
  Exclude:
33
33
  - bin/*
34
34
  - esignatur.gemspec
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.1
1
+ 3.2.1
data/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ * Added/Changed/Deprecated/Removed/Fixed/Security: YOUR CHANGE HERE
11
+
12
+ ## [2.0.0](2024-01-30)
13
+
14
+ * Added: CHANGELOG.md
15
+ * Changed: creator_id won't be passed in request body, but it will always included in the headers
data/Gemfile.lock CHANGED
@@ -1,109 +1,132 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- esignatur (1.2.6)
5
- activesupport (>= 3.0)
4
+ esignatur (2.1.0)
5
+ activesupport (>= 4.0)
6
6
  faraday (>= 0.10)
7
+ json (>= 2.6.2)
8
+ rexml (>= 3.2)
7
9
 
8
10
  GEM
9
11
  remote: https://rubygems.org/
10
12
  specs:
11
- activesupport (5.2.3)
13
+ activesupport (7.1.3)
14
+ base64
15
+ bigdecimal
12
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (>= 0.7, < 2)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
- addressable (2.5.2)
17
- public_suffix (>= 2.0.2, < 4.0)
18
- ast (2.4.0)
19
- byebug (10.0.2)
20
- codecov (0.1.10)
21
- json
22
- simplecov
23
- url
24
- coderay (1.1.2)
25
- concurrent-ruby (1.1.5)
26
- crack (0.4.3)
27
- safe_yaml (~> 1.0.0)
28
- diff-lcs (1.3)
29
- docile (1.3.1)
30
- faraday (0.15.4)
31
- multipart-post (>= 1.2, < 3)
32
- hashdiff (0.3.7)
33
- i18n (1.6.0)
17
+ connection_pool (>= 2.2.5)
18
+ drb
19
+ i18n (>= 1.6, < 2)
20
+ minitest (>= 5.1)
21
+ mutex_m
22
+ tzinfo (~> 2.0)
23
+ addressable (2.8.6)
24
+ public_suffix (>= 2.0.2, < 6.0)
25
+ ast (2.4.2)
26
+ base64 (0.2.0)
27
+ bigdecimal (3.1.6)
28
+ byebug (11.1.3)
29
+ codecov (0.6.0)
30
+ simplecov (>= 0.15, < 0.22)
31
+ coderay (1.1.3)
32
+ concurrent-ruby (1.2.3)
33
+ connection_pool (2.4.1)
34
+ crack (0.4.6)
35
+ bigdecimal
36
+ rexml
37
+ diff-lcs (1.5.0)
38
+ docile (1.4.0)
39
+ drb (2.2.0)
40
+ ruby2_keywords
41
+ faraday (2.9.0)
42
+ faraday-net_http (>= 2.0, < 3.2)
43
+ faraday-net_http (3.1.0)
44
+ net-http
45
+ hashdiff (1.1.0)
46
+ i18n (1.14.1)
34
47
  concurrent-ruby (~> 1.0)
35
- jaro_winkler (1.5.1)
36
- json (2.1.0)
37
- method_source (0.9.0)
38
- minitest (5.11.3)
39
- multipart-post (2.1.1)
40
- parallel (1.12.1)
41
- parser (2.5.1.0)
42
- ast (~> 2.4.0)
43
- powerpack (0.1.2)
44
- pry (0.11.3)
45
- coderay (~> 1.1.0)
46
- method_source (~> 0.9.0)
47
- pry-byebug (3.6.0)
48
- byebug (~> 10.0)
49
- pry (~> 0.10)
50
- public_suffix (3.0.3)
51
- rainbow (3.0.0)
52
- rake (10.5.0)
53
- rspec (3.7.0)
54
- rspec-core (~> 3.7.0)
55
- rspec-expectations (~> 3.7.0)
56
- rspec-mocks (~> 3.7.0)
57
- rspec-core (3.7.1)
58
- rspec-support (~> 3.7.0)
59
- rspec-expectations (3.7.0)
48
+ json (2.7.1)
49
+ method_source (1.0.0)
50
+ minitest (5.21.2)
51
+ mutex_m (0.2.0)
52
+ net-http (0.4.1)
53
+ uri
54
+ parallel (1.24.0)
55
+ parser (3.3.1.0)
56
+ ast (~> 2.4.1)
57
+ racc
58
+ pry (0.14.2)
59
+ coderay (~> 1.1)
60
+ method_source (~> 1.0)
61
+ pry-byebug (3.10.1)
62
+ byebug (~> 11.0)
63
+ pry (>= 0.13, < 0.15)
64
+ public_suffix (5.0.4)
65
+ racc (1.8.0)
66
+ rainbow (3.1.1)
67
+ rake (13.1.0)
68
+ regexp_parser (2.9.2)
69
+ rexml (3.2.8)
70
+ strscan (>= 3.0.9)
71
+ rspec (3.12.0)
72
+ rspec-core (~> 3.12.0)
73
+ rspec-expectations (~> 3.12.0)
74
+ rspec-mocks (~> 3.12.0)
75
+ rspec-core (3.12.2)
76
+ rspec-support (~> 3.12.0)
77
+ rspec-expectations (3.12.3)
60
78
  diff-lcs (>= 1.2.0, < 2.0)
61
- rspec-support (~> 3.7.0)
62
- rspec-mocks (3.7.0)
79
+ rspec-support (~> 3.12.0)
80
+ rspec-mocks (3.12.6)
63
81
  diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.7.0)
65
- rspec-support (3.7.1)
66
- rubocop (0.57.2)
67
- jaro_winkler (~> 1.5.1)
82
+ rspec-support (~> 3.12.0)
83
+ rspec-support (3.12.1)
84
+ rubocop (1.5.2)
68
85
  parallel (~> 1.10)
69
- parser (>= 2.5)
70
- powerpack (~> 0.1)
86
+ parser (>= 2.7.1.5)
71
87
  rainbow (>= 2.2.2, < 4.0)
88
+ regexp_parser (>= 1.8, < 3.0)
89
+ rexml
90
+ rubocop-ast (>= 1.2.0, < 2.0)
72
91
  ruby-progressbar (~> 1.7)
73
- unicode-display_width (~> 1.0, >= 1.0.1)
74
- rubocop-rspec (1.27.0)
75
- rubocop (>= 0.56.0)
76
- ruby-progressbar (1.9.0)
77
- safe_yaml (1.0.4)
78
- simplecov (0.16.1)
92
+ unicode-display_width (>= 1.4.0, < 2.0)
93
+ rubocop-ast (1.31.3)
94
+ parser (>= 3.3.1.0)
95
+ rubocop-rspec (2.4.0)
96
+ rubocop (~> 1.0)
97
+ rubocop-ast (>= 1.1.0)
98
+ ruby-progressbar (1.13.0)
99
+ ruby2_keywords (0.0.5)
100
+ simplecov (0.21.2)
79
101
  docile (~> 1.1)
80
- json (>= 1.8, < 3)
81
- simplecov-html (~> 0.10.0)
82
- simplecov-html (0.10.2)
83
- thread_safe (0.3.6)
84
- tzinfo (1.2.5)
85
- thread_safe (~> 0.1)
86
- unicode-display_width (1.4.0)
87
- url (0.3.2)
88
- webmock (3.4.2)
89
- addressable (>= 2.3.6)
102
+ simplecov-html (~> 0.11)
103
+ simplecov_json_formatter (~> 0.1)
104
+ simplecov-html (0.12.3)
105
+ simplecov_json_formatter (0.1.4)
106
+ strscan (3.1.0)
107
+ tzinfo (2.0.6)
108
+ concurrent-ruby (~> 1.0)
109
+ unicode-display_width (1.8.0)
110
+ uri (0.13.0)
111
+ webmock (3.19.1)
112
+ addressable (>= 2.8.0)
90
113
  crack (>= 0.3.2)
91
- hashdiff
114
+ hashdiff (>= 0.4.0, < 2.0.0)
92
115
 
93
116
  PLATFORMS
94
117
  ruby
95
118
 
96
119
  DEPENDENCIES
97
120
  bundler (>= 1.16)
98
- codecov (>= 0.1.10)
121
+ codecov (>= 0.2.0)
99
122
  esignatur!
100
123
  pry-byebug
101
124
  rake (>= 10.0)
102
125
  rspec (>= 3.0)
103
- rubocop (>= 0.57)
126
+ rubocop (= 1.5.2)
104
127
  rubocop-rspec (>= 1.27)
105
128
  simplecov (>= 0.16.1)
106
129
  webmock (>= 3.4)
107
130
 
108
131
  BUNDLED WITH
109
- 1.17.2
132
+ 2.5.5
data/README.md CHANGED
@@ -26,7 +26,7 @@ Or install it yourself as:
26
26
  ## Usage
27
27
 
28
28
  ```ruby
29
- esignatur = Esignatur::Client.new(api_key: your_api_key)
29
+ esignatur = Esignatur::Client.new(api_key: your_api_key, creator_id: your_creator_id)
30
30
 
31
31
  esignatur.orders.where(modified_since: Date.new(2000, 1, 1))
32
32
 
@@ -35,7 +35,7 @@ order = esignatur.orders.find(esignatur_order_id)
35
35
  order = esignatur.orders.build
36
36
  order.create(some_order_params) # creates order on esignatur side
37
37
  order.status # returns Status object
38
- order.cancel(creator_id: '123') # => true/false
38
+ order.cancel
39
39
 
40
40
  pade_list = order.pades_list
41
41
  pade_list.first.document_data # decoded body of the document
data/esignatur.gemspec CHANGED
@@ -2,6 +2,7 @@
2
2
  lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require "esignatur/version"
5
+ require "yaml"
5
6
 
6
7
  Gem::Specification.new do |spec|
7
8
  spec.name = "esignatur"
@@ -32,15 +33,17 @@ Gem::Specification.new do |spec|
32
33
  spec.require_paths = ["lib"]
33
34
 
34
35
  spec.add_dependency "faraday", ">= 0.10"
35
- spec.add_dependency "activesupport", ">= 3.0"
36
+ spec.add_dependency "activesupport", ">= 4.0"
37
+ spec.add_dependency "rexml", ">= 3.2"
38
+ spec.add_dependency "json", ">= 2.6.2"
36
39
 
37
40
  spec.add_development_dependency "bundler", ">= 1.16"
38
41
  spec.add_development_dependency "rake", ">= 10.0"
39
42
  spec.add_development_dependency "rspec", ">= 3.0"
40
- spec.add_development_dependency "rubocop", '>= 0.57'
43
+ spec.add_development_dependency "rubocop", YAML.load_file('.hound.yml')['rubocop']['version']
41
44
  spec.add_development_dependency "rubocop-rspec", '>= 1.27'
42
45
  spec.add_development_dependency "webmock", '>= 3.4'
43
- spec.add_development_dependency "codecov", '>= 0.1.10'
46
+ spec.add_development_dependency "codecov", '>= 0.2.0'
44
47
  spec.add_development_dependency "simplecov", '>= 0.16.1'
45
48
  spec.add_development_dependency "pry-byebug"
46
49
  end
data/lib/esignatur/api.rb CHANGED
@@ -10,38 +10,51 @@ module Esignatur
10
10
 
11
11
  DEFAULT_BASE_URL = 'https://api.esignatur.dk'
12
12
 
13
- def initialize(api_key:, base_url: DEFAULT_BASE_URL)
13
+ attr_reader :creator_id
14
+
15
+ def initialize(api_key:, creator_id:, base_url: DEFAULT_BASE_URL, timeout: nil)
14
16
  @api_key = api_key.to_s
15
17
  @base_url = base_url
18
+ @creator_id = creator_id
19
+ @default_timeout = timeout
16
20
  end
17
21
 
18
- def post(relative_url, data:, headers: {})
19
- make_request(:post, relative_url, data: data, extra_headers: headers)
22
+ def post(relative_url, data:, headers: {}, timeout: nil)
23
+ make_request(:post, relative_url, data: data, extra_headers: headers, timeout: timeout)
20
24
  end
21
25
 
22
- def get(relative_url, headers: {})
23
- make_request(:get, relative_url, extra_headers: headers)
26
+ def get(relative_url, headers: {}, timeout: nil)
27
+ make_request(:get, relative_url, extra_headers: headers, timeout: timeout)
24
28
  end
25
29
 
26
30
  private
27
31
 
28
- attr_reader :base_url, :api_key
32
+ attr_reader :base_url, :api_key, :default_timeout
29
33
 
30
- def make_request(http_method, relative_url, extra_headers: {}, data: nil)
34
+ def make_request(http_method, relative_url, extra_headers: {}, data: nil, timeout: nil)
31
35
  url = URI.join(base_url, relative_url).to_s
32
-
33
36
  headers = default_headers.merge(extra_headers)
34
- raw_response = Faraday.public_send(http_method, url, data&.to_json, headers)
37
+
38
+ raw_response = connection(timeout: timeout).public_send(http_method, url, data&.to_json, headers)
35
39
  request = RequestInfo.new(http_method, url, headers)
36
40
  Esignatur::Api::Response.new(raw_response, request: request)
37
41
  end
38
42
 
43
+ def connection(timeout: nil)
44
+ request_timeout = timeout || default_timeout
45
+
46
+ Faraday.new do |conn|
47
+ conn.options.timeout = request_timeout if request_timeout
48
+ end
49
+ end
50
+
39
51
  def default_headers
40
52
  {
41
53
  'X-eSignatur-Id' => api_key,
42
54
  'Accept' => 'application/json',
43
- 'Content-Type' => 'application/json'
44
- }
55
+ 'Content-Type' => 'application/json',
56
+ 'X-eSignatur-CreatorId' => creator_id&.to_s
57
+ }.compact
45
58
  end
46
59
  end
47
60
  end
@@ -4,8 +4,8 @@ module Esignatur
4
4
  class Client
5
5
  DEFAULT_BASE_URL = 'https://api.esignatur.dk'
6
6
 
7
- def initialize(api_key:, base_url: DEFAULT_BASE_URL)
8
- @api = Esignatur::Api.new(api_key: api_key, base_url: base_url)
7
+ def initialize(**options)
8
+ @api = Esignatur::Api.new(**options)
9
9
  end
10
10
 
11
11
  def orders
@@ -19,12 +19,14 @@ module Esignatur
19
19
  @api = api
20
20
  end
21
21
 
22
- def create(attributes)
23
- response = api_post('Order/Create', attributes)
22
+ def create(attributes = {}, **keyword_attributes)
23
+ response = api_post('Order/Create', attributes.merge(keyword_attributes))
24
+
24
25
  if errors.empty?
25
26
  body = response.json_body
26
27
  @attributes = attributes.merge(id: body.fetch('OrderId')).merge(body)
27
28
  end
29
+
28
30
  self
29
31
  end
30
32
 
@@ -36,14 +38,11 @@ module Esignatur
36
38
  @status ||= Esignatur::Status.new(order: self, api: api).tap(&:fetch)
37
39
  end
38
40
 
39
- def cancel(attributes)
40
- camelized_attributes = attributes.transform_keys(&:to_s).transform_keys(&:camelize)
41
- creator_id = camelized_attributes.delete('CreatorId')
42
-
41
+ def cancel(attributes = {}, **keyword_attributes)
42
+ camelized_attributes = attributes.merge(keyword_attributes).transform_keys(&:to_s).transform_keys(&:camelize)
43
43
  data = { 'OrderId' => id }.merge(camelized_attributes.compact)
44
- headers = { 'X-eSignatur-CreatorId': creator_id }
45
44
 
46
- api_post('Cancel/CancelOrder', data, headers: headers).success?
45
+ api_post('Cancel/CancelOrder', data).success?
47
46
  end
48
47
 
49
48
  def pades_list
@@ -14,8 +14,8 @@ module Esignatur
14
14
  @api = api
15
15
  end
16
16
 
17
- def create(attributes)
18
- build.create(attributes)
17
+ def create(attributes = {}, **keyword_attributes)
18
+ build.create(attributes, **keyword_attributes)
19
19
  end
20
20
 
21
21
  def build
@@ -28,7 +28,7 @@ module Esignatur
28
28
 
29
29
  def all
30
30
  @all ||= begin
31
- response = api_get("OrderInfo/OrdersForAdministrator/#{creator_id}", headers: headers_for_all_query)
31
+ response = api_get("OrderInfo/OrdersForAdministrator/#{api.creator_id}", headers: headers_for_all_query)
32
32
  response.json_body.fetch('SignOrders').map do |raw_order|
33
33
  order_attributes = raw_order.merge(id: raw_order.fetch('SignOrderId'))
34
34
  Esignatur::Order.new(attributes: order_attributes, api: api)
@@ -52,15 +52,5 @@ module Esignatur
52
52
  modified_since = scope[:modified_since]&.iso8601
53
53
  modified_since ? { 'If-Modified-Since' => modified_since } : {}
54
54
  end
55
-
56
- def creator_id
57
- scope.fetch(:creator_id) do
58
- raise(
59
- Esignatur::MissingAttributeError,
60
- 'You need to specify creator_id in order to fech orders. ' \
61
- 'You can do this with `esignatur.orders.where(creator_id: 123)`'
62
- )
63
- end
64
- end
65
55
  end
66
56
  end
@@ -37,7 +37,12 @@ module Esignatur
37
37
  end
38
38
 
39
39
  def fetch
40
- response = api_post('Pades/Download', 'Id' => order.id, 'AgreementId' => attributes['AgreementId'])
40
+ response = api_post(
41
+ 'Pades/Download',
42
+ {
43
+ 'Id' => order.id, 'AgreementId' => attributes['AgreementId']
44
+ }
45
+ )
41
46
  @attributes = response.json_body if errors.empty?
42
47
  self
43
48
  end
@@ -22,8 +22,11 @@ module Esignatur
22
22
  end
23
23
 
24
24
  def fetch
25
- response = api_post('SourceDocument/Download',
26
- 'Id' => order.id, 'DocumentIndex' => 0)
25
+ response = api_post(
26
+ 'SourceDocument/Download',
27
+ { 'Id' => order.id, 'DocumentIndex' => 0 }
28
+ )
29
+
27
30
  @attributes = response.json_body if errors.empty?
28
31
  self
29
32
  end
@@ -10,14 +10,18 @@ module Esignatur
10
10
 
11
11
  DEFAULT_BASE_URL = 'https://api.esignatur.dk'
12
12
 
13
- def initialize(api_key:, base_url: DEFAULT_BASE_URL)
14
- @api = Esignatur::Api.new(api_key: api_key, base_url: base_url)
13
+ def initialize(api_key:, base_url: DEFAULT_BASE_URL, creator_id:)
14
+ @api = Esignatur::Api.new(
15
+ api_key: api_key,
16
+ base_url: base_url,
17
+ creator_id: creator_id
18
+ )
19
+
15
20
  @attributes = {}
16
21
  end
17
22
 
18
- def find_by(user_id:, creator_id:)
19
- headers = { 'X-eSignatur-CreatorId': creator_id }
20
- response = api_get("user/get/#{user_id}", headers: headers)
23
+ def find_by(user_id:)
24
+ response = api_get("user/get/#{user_id}")
21
25
  @attributes = response.json_body if errors.empty?
22
26
  self
23
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Esignatur
4
- VERSION = '1.2.6'
4
+ VERSION = '2.1.0'
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.6
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Povilas Jurcys
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-19 00:00:00.000000000 Z
11
+ date: 2024-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -30,14 +30,42 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '3.0'
33
+ version: '4.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '3.0'
40
+ version: '4.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rexml
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: json
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 2.6.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 2.6.2
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: bundler
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -84,16 +112,16 @@ dependencies:
84
112
  name: rubocop
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
- - - ">="
115
+ - - '='
88
116
  - !ruby/object:Gem::Version
89
- version: '0.57'
117
+ version: 1.5.2
90
118
  type: :development
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
- - - ">="
122
+ - - '='
95
123
  - !ruby/object:Gem::Version
96
- version: '0.57'
124
+ version: 1.5.2
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: rubocop-rspec
99
127
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +156,14 @@ dependencies:
128
156
  requirements:
129
157
  - - ">="
130
158
  - !ruby/object:Gem::Version
131
- version: 0.1.10
159
+ version: 0.2.0
132
160
  type: :development
133
161
  prerelease: false
134
162
  version_requirements: !ruby/object:Gem::Requirement
135
163
  requirements:
136
164
  - - ">="
137
165
  - !ruby/object:Gem::Version
138
- version: 0.1.10
166
+ version: 0.2.0
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: simplecov
141
169
  requirement: !ruby/object:Gem::Requirement
@@ -171,12 +199,13 @@ executables: []
171
199
  extensions: []
172
200
  extra_rdoc_files: []
173
201
  files:
202
+ - ".github/workflows/ruby.yml"
174
203
  - ".gitignore"
175
- - ".hound"
204
+ - ".hound.yml"
176
205
  - ".rspec"
177
206
  - ".rubocop.yml"
178
207
  - ".ruby-version"
179
- - ".travis.yml"
208
+ - CHANGELOG.md
180
209
  - CODE_OF_CONDUCT.md
181
210
  - Gemfile
182
211
  - Gemfile.lock
@@ -219,8 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
248
  - !ruby/object:Gem::Version
220
249
  version: '0'
221
250
  requirements: []
222
- rubyforge_project:
223
- rubygems_version: 2.7.6
251
+ rubygems_version: 3.4.6
224
252
  signing_key:
225
253
  specification_version: 4
226
254
  summary: ruby API client for esignatur.dk
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.5.1
5
- before_install: gem install bundler -v 1.16.2