veriff 0.2.1 → 0.2.2

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: 5ccbdb6229a69f0ea4da723474b2c44b0d0907462bcbeb276662eacb8642e755
4
- data.tar.gz: fa48175d5e215837d60762e14082b2e5ad656636a14bd95ff1db033053f1867f
3
+ metadata.gz: e8223cd4ef7a57bd60ff6f8f54043d1f70d757545d720dee031c16eeaade4fb9
4
+ data.tar.gz: a2a73d4c23ae1f38e9cd825e6ef1f8e3680debaf583128b9fed53b8174192c7b
5
5
  SHA512:
6
- metadata.gz: ff91759044cf6dd7174683b21aa8a7084739ddeeaf733ac14a8ef0a8492af4380c96178921e93cdfb817e174710066db5f940bf67297b44eac2c6274b0b0aed1
7
- data.tar.gz: 6cc33772c0b9068f6ba4c0e58af42322b6161aca30310a207ff647cc08f205754a17953d9ec785d964ec36dc079140a5f9b59643645ea5cbed14a0533c8ff83a
6
+ metadata.gz: '09aae37b6cc88bc7bd748f659b226e5201c9cef72fd7bbd9516d80c8ccf2b28b20c61c1d84084b9e2aa96424e0420e1235f703953a891ed43ff251ac3b95a687'
7
+ data.tar.gz: 9af3a868e82f81cf468d2866223ddb9599957d701988760475dc5af8901b5f0c9377eee87100f384a63e811f1eb72d476a6d08f36d17f24dea74fdf2d140a2ad
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.6.3
1
+ ruby-3.3.4
data/.travis.yml CHANGED
@@ -3,5 +3,5 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.6.3
6
+ - 3.3.4
7
7
  before_install: gem install bundler -v 2.0.2
data/Gemfile.lock CHANGED
@@ -2,44 +2,48 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  veriff (0.2.1)
5
- httparty (~> 0.17, >= 0.17.3)
5
+ httparty
6
+ json
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
- diff-lcs (1.3)
11
- httparty (0.17.3)
12
- mime-types (~> 3.0)
11
+ bigdecimal (3.1.8)
12
+ csv (3.3.0)
13
+ diff-lcs (1.5.1)
14
+ httparty (0.22.0)
15
+ csv
16
+ mini_mime (>= 1.0.0)
13
17
  multi_xml (>= 0.5.2)
14
- mime-types (3.3.1)
15
- mime-types-data (~> 3.2015)
16
- mime-types-data (3.2019.1009)
17
- multi_xml (0.6.0)
18
- rake (10.5.0)
19
- rspec (3.8.0)
20
- rspec-core (~> 3.8.0)
21
- rspec-expectations (~> 3.8.0)
22
- rspec-mocks (~> 3.8.0)
23
- rspec-core (3.8.2)
24
- rspec-support (~> 3.8.0)
25
- rspec-expectations (3.8.4)
18
+ json (2.7.2)
19
+ mini_mime (1.1.5)
20
+ multi_xml (0.7.1)
21
+ bigdecimal (~> 3.1)
22
+ rake (13.2.1)
23
+ rspec (3.13.0)
24
+ rspec-core (~> 3.13.0)
25
+ rspec-expectations (~> 3.13.0)
26
+ rspec-mocks (~> 3.13.0)
27
+ rspec-core (3.13.0)
28
+ rspec-support (~> 3.13.0)
29
+ rspec-expectations (3.13.1)
26
30
  diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.8.0)
28
- rspec-mocks (3.8.1)
31
+ rspec-support (~> 3.13.0)
32
+ rspec-mocks (3.13.1)
29
33
  diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.8.0)
31
- rspec-support (3.8.2)
32
- timecop (0.9.1)
34
+ rspec-support (~> 3.13.0)
35
+ rspec-support (3.13.1)
36
+ timecop (0.9.10)
33
37
 
34
38
  PLATFORMS
35
39
  ruby
36
40
 
37
41
  DEPENDENCIES
38
- bundler (~> 2.0)
39
- rake (~> 10.0)
40
- rspec (~> 3.0)
41
- timecop (~> 0.9)
42
+ bundler
43
+ rake
44
+ rspec
45
+ timecop
42
46
  veriff!
43
47
 
44
48
  BUNDLED WITH
45
- 2.0.2
49
+ 2.5.17
@@ -6,8 +6,10 @@ module Veriff
6
6
  base_uri: 'https://api.veriff.me/v1'
7
7
  }.freeze
8
8
 
9
+ Config = Struct.new(:api_key, :api_secret, :base_uri, keyword_init: true)
10
+
9
11
  def configuration
10
- @configuration ||= OpenStruct.new(DEFAULT_CONFIG)
12
+ @configuration ||= Config.new(**DEFAULT_CONFIG)
11
13
  end
12
14
 
13
15
  def configure
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Veriff
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
data/lib/veriff.rb CHANGED
@@ -1,8 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'httparty'
4
- require 'veriff/parser'
4
+ require 'json'
5
5
 
6
+ require 'veriff/parser'
6
7
  require 'veriff/version'
7
8
 
8
9
  require 'veriff/configuration'
data/veriff.gemspec CHANGED
@@ -27,9 +27,10 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ['lib']
29
29
 
30
- spec.add_dependency 'httparty', '~> 0.17', '>= 0.17.3'
31
- spec.add_development_dependency 'bundler', '~> 2.0'
32
- spec.add_development_dependency 'rake', '~> 10.0'
33
- spec.add_development_dependency 'rspec', '~> 3.0'
34
- spec.add_development_dependency 'timecop', '~> 0.9'
30
+ spec.add_dependency 'httparty'
31
+ spec.add_dependency 'json'
32
+ spec.add_development_dependency 'bundler'
33
+ spec.add_development_dependency 'rake'
34
+ spec.add_development_dependency 'rspec'
35
+ spec.add_development_dependency 'timecop'
35
36
  end
metadata CHANGED
@@ -1,91 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veriff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojtek Widenka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-22 00:00:00.000000000 Z
11
+ date: 2024-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '0.17'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 0.17.3
19
+ version: '0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "~>"
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '0.17'
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
30
31
  - - ">="
31
32
  - !ruby/object:Gem::Version
32
- version: 0.17.3
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
33
41
  - !ruby/object:Gem::Dependency
34
42
  name: bundler
35
43
  requirement: !ruby/object:Gem::Requirement
36
44
  requirements:
37
- - - "~>"
45
+ - - ">="
38
46
  - !ruby/object:Gem::Version
39
- version: '2.0'
47
+ version: '0'
40
48
  type: :development
41
49
  prerelease: false
42
50
  version_requirements: !ruby/object:Gem::Requirement
43
51
  requirements:
44
- - - "~>"
52
+ - - ">="
45
53
  - !ruby/object:Gem::Version
46
- version: '2.0'
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: rake
49
57
  requirement: !ruby/object:Gem::Requirement
50
58
  requirements:
51
- - - "~>"
59
+ - - ">="
52
60
  - !ruby/object:Gem::Version
53
- version: '10.0'
61
+ version: '0'
54
62
  type: :development
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
65
  requirements:
58
- - - "~>"
66
+ - - ">="
59
67
  - !ruby/object:Gem::Version
60
- version: '10.0'
68
+ version: '0'
61
69
  - !ruby/object:Gem::Dependency
62
70
  name: rspec
63
71
  requirement: !ruby/object:Gem::Requirement
64
72
  requirements:
65
- - - "~>"
73
+ - - ">="
66
74
  - !ruby/object:Gem::Version
67
- version: '3.0'
75
+ version: '0'
68
76
  type: :development
69
77
  prerelease: false
70
78
  version_requirements: !ruby/object:Gem::Requirement
71
79
  requirements:
72
- - - "~>"
80
+ - - ">="
73
81
  - !ruby/object:Gem::Version
74
- version: '3.0'
82
+ version: '0'
75
83
  - !ruby/object:Gem::Dependency
76
84
  name: timecop
77
85
  requirement: !ruby/object:Gem::Requirement
78
86
  requirements:
79
- - - "~>"
87
+ - - ">="
80
88
  - !ruby/object:Gem::Version
81
- version: '0.9'
89
+ version: '0'
82
90
  type: :development
83
91
  prerelease: false
84
92
  version_requirements: !ruby/object:Gem::Requirement
85
93
  requirements:
86
- - - "~>"
94
+ - - ">="
87
95
  - !ruby/object:Gem::Version
88
- version: '0.9'
96
+ version: '0'
89
97
  description: Simple wrapper on Verff.com API
90
98
  email:
91
99
  - wojtek@codegarden.online
@@ -148,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
156
  - !ruby/object:Gem::Version
149
157
  version: '0'
150
158
  requirements: []
151
- rubygems_version: 3.0.9
159
+ rubygems_version: 3.5.17
152
160
  signing_key:
153
161
  specification_version: 4
154
162
  summary: Simple wrapper on Verff.com API