onfido 1.1.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +5 -49
  3. data/.travis.yml +2 -8
  4. data/CHANGELOG.md +7 -0
  5. data/Gemfile +2 -0
  6. data/README.md +37 -148
  7. data/lib/onfido.rb +3 -2
  8. data/lib/onfido/api.rb +18 -12
  9. data/lib/onfido/errors/connection_error.rb +2 -0
  10. data/lib/onfido/errors/onfido_error.rb +2 -0
  11. data/lib/onfido/errors/request_error.rb +2 -0
  12. data/lib/onfido/errors/server_error.rb +2 -0
  13. data/lib/onfido/options.rb +38 -0
  14. data/lib/onfido/resource.rb +45 -59
  15. data/lib/onfido/resources/address.rb +2 -0
  16. data/lib/onfido/resources/applicant.rb +2 -0
  17. data/lib/onfido/resources/check.rb +6 -0
  18. data/lib/onfido/resources/document.rb +2 -0
  19. data/lib/onfido/resources/extraction.rb +2 -0
  20. data/lib/onfido/resources/live_photo.rb +2 -0
  21. data/lib/onfido/resources/live_video.rb +2 -0
  22. data/lib/onfido/resources/report.rb +2 -0
  23. data/lib/onfido/resources/sdk_token.rb +2 -0
  24. data/lib/onfido/resources/webhook.rb +4 -2
  25. data/lib/onfido/version.rb +3 -1
  26. data/onfido.gemspec +5 -6
  27. data/spec/integrations/address_spec.rb +4 -2
  28. data/spec/integrations/applicant_spec.rb +12 -7
  29. data/spec/integrations/check_spec.rb +17 -4
  30. data/spec/integrations/document_spec.rb +7 -3
  31. data/spec/integrations/extraction_spec.rb +6 -2
  32. data/spec/integrations/live_photo_spec.rb +7 -3
  33. data/spec/integrations/live_video_spec.rb +6 -1
  34. data/spec/integrations/report_spec.rb +6 -1
  35. data/spec/integrations/resource_spec.rb +93 -0
  36. data/spec/integrations/sdk_token_spec.rb +5 -1
  37. data/spec/integrations/webhook_spec.rb +28 -24
  38. data/spec/onfido/api_spec.rb +14 -25
  39. data/spec/onfido/connection_error_spec.rb +4 -2
  40. data/spec/onfido/options_spec.rb +39 -0
  41. data/spec/onfido/request_error_spec.rb +4 -2
  42. data/spec/spec_helper.rb +3 -5
  43. data/spec/support/fake_onfido_api.rb +63 -49
  44. data/spec/support/fixtures/applicant.json +1 -1
  45. data/spec/support/fixtures/check.json +1 -1
  46. data/spec/support/fixtures/checks.json +1 -1
  47. data/spec/support/fixtures/document.json +1 -1
  48. data/spec/support/fixtures/documents.json +2 -2
  49. data/spec/support/fixtures/live_photo.json +2 -2
  50. data/spec/support/fixtures/live_photos.json +4 -4
  51. data/spec/support/fixtures/live_video.json +2 -2
  52. data/spec/support/fixtures/live_videos.json +2 -2
  53. data/spec/support/fixtures/report.json +1 -1
  54. data/spec/support/fixtures/reports.json +2 -2
  55. data/spec/support/fixtures/webhook.json +1 -1
  56. data/spec/support/fixtures/webhooks.json +2 -2
  57. metadata +11 -29
  58. data/Rakefile +0 -1
  59. data/lib/onfido/configuration.rb +0 -47
  60. data/lib/onfido/null_logger.rb +0 -5
  61. data/spec/integrations/exceptions_spec.rb +0 -72
  62. data/spec/onfido/resource_spec.rb +0 -133
  63. data/spec/onfido_spec.rb +0 -83
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
4
  $LOAD_PATH.unshift(File.dirname(__FILE__))
3
- Dir[File.dirname(__FILE__).concat("/support/**/*.rb")].each { |f| require f }
5
+ Dir[File.dirname(__FILE__).concat('/support/**/*.rb')].sort.each { |f| require f }
4
6
 
5
7
  require 'onfido'
6
8
  require 'webmock/rspec'
@@ -40,8 +42,4 @@ RSpec.configure do |config|
40
42
  # test failures related to randomization by passing the same `--seed` value
41
43
  # as the one that triggered the failure.
42
44
  Kernel.srand config.seed
43
-
44
- config.before(:each) do
45
- stub_request(:any, /onfido.com/).to_rack(FakeOnfidoAPI)
46
- end
47
45
  end
@@ -1,163 +1,177 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'sinatra/base'
2
4
 
3
- class FakeOnfidoAPI < Sinatra::Base
4
- get '/v3/addresses/pick' do
5
+ RSpec.shared_context 'fake onfido api' do
6
+ let(:onfido) { Onfido::API.new(api_key: 'test', region: :eu) }
7
+
8
+ before { stub_request(:any, /api.eu.onfido.com/).to_rack(FakeOnfidoAPI) }
9
+ end
10
+
11
+ class FakeOnfidoAPI < Sinatra::Base # rubocop:disable Metrics/ClassLength
12
+ get '/v3.1/addresses/pick' do
5
13
  json_response(200, 'addresses.json')
6
14
  end
7
15
 
8
- post '/v3/applicants' do
16
+ post '/v3.1/applicants' do
9
17
  json_response(201, 'applicant.json')
10
18
  end
11
19
 
12
- put '/v3/applicants/:id' do
20
+ put '/v3.1/applicants/:id' do
13
21
  json_response(200, 'applicant.json')
14
22
  end
15
23
 
16
- get '/v3/applicants/:id' do
24
+ get '/v3.1/applicants/:id' do
17
25
  json_response(200, 'applicant.json')
18
26
  end
19
27
 
20
- get '/v3/applicants' do
28
+ get '/v3.1/applicants' do
21
29
  response = json_response(200, 'applicants.json')
22
30
  { applicants: JSON.parse(response)['applicants'][pagination_range] }.to_json
23
31
  end
24
32
 
25
- delete '/v3/applicants/:id' do
33
+ delete '/v3.1/applicants/:id' do
26
34
  status 204
27
35
  end
28
36
 
29
- post '/v3/applicants/:id/restore' do
30
- if params["id"] == "a2fb9c62-ab10-4898-a8ec-342c4b552ad5"
37
+ post '/v3.1/applicants/:id/restore' do
38
+ if params['id'] == 'a2fb9c62-ab10-4898-a8ec-342c4b552ad5'
31
39
  json_response(422, 'not_scheduled_for_deletion_error.json')
32
40
  else
33
41
  status 204
34
42
  end
35
43
  end
36
44
 
37
- post '/v3/documents' do
45
+ post '/v3.1/documents' do
38
46
  json_response(201, 'document.json')
39
47
  end
40
48
 
41
- post '/v3/extractions' do
49
+ post '/v3.1/extractions' do
42
50
  json_response(201, 'extraction.json')
43
51
  end
44
52
 
45
- get '/v3/documents/:id' do
53
+ get '/v3.1/documents/:id' do
46
54
  json_response(200, 'document.json')
47
55
  end
48
56
 
49
- get '/v3/documents' do
57
+ get '/v3.1/documents' do
50
58
  json_response(200, 'documents.json')
51
59
  end
52
60
 
53
- get '/v3/documents/:id/download' do
61
+ get '/v3.1/documents/:id/download' do
54
62
  status 200
55
63
  content_type 'application/octet-stream'
56
64
  "\x01\x02\x03" # acts as binary file data
57
65
  end
58
66
 
59
- post '/v3/live_photos' do
67
+ post '/v3.1/live_photos' do
60
68
  json_response(201, 'live_photo.json')
61
69
  end
62
70
 
63
- get '/v3/live_photos/:id' do
71
+ get '/v3.1/live_photos/:id' do
64
72
  json_response(200, 'live_photo.json')
65
73
  end
66
74
 
67
- get '/v3/live_photos' do
68
- if params["applicant_id"] != "1030303-123123-123123"
69
- status 404
70
- else
75
+ get '/v3.1/live_photos' do
76
+ if params['applicant_id'] == '1030303-123123-123123'
71
77
  json_response(200, 'live_photos.json')
78
+ else
79
+ status 404
72
80
  end
73
81
  end
74
82
 
75
- get '/v3/live_photos/:id/download' do
83
+ get '/v3.1/live_photos/:id/download' do
76
84
  status 200
77
85
  content_type 'image/jpeg'
78
86
  "\x01\x02\x03" # acts as binary file data
79
87
  end
80
88
 
81
- get '/v3/live_videos/:id' do
89
+ get '/v3.1/live_videos/:id' do
82
90
  json_response(200, 'live_video.json')
83
91
  end
84
92
 
85
- get '/v3/live_videos' do
86
- if params["applicant_id"] != "1030303-123123-123123"
87
- status 404
88
- else
93
+ get '/v3.1/live_videos' do
94
+ if params['applicant_id'] == '1030303-123123-123123'
89
95
  json_response(200, 'live_videos.json')
96
+ else
97
+ status 404
90
98
  end
91
99
  end
92
100
 
93
- get '/v3/live_videos/:id/download' do
101
+ get '/v3.1/live_videos/:id/download' do
94
102
  status 200
95
103
  content_type 'video/quicktime'
96
104
  "\x01\x02\x03" # acts as binary file data
97
105
  end
98
106
 
99
- post '/v3/checks' do
100
- params["applicant_id"].nil? ? status(422) : json_response(201, 'check.json')
107
+ post '/v3.1/checks' do
108
+ params['applicant_id'].nil? ? status(422) : json_response(201, 'check.json')
101
109
  end
102
110
 
103
- get '/v3/checks/:id' do
104
- json_response(200, "check.json")
111
+ get '/v3.1/checks/:id' do
112
+ json_response(200, 'check.json')
105
113
  end
106
114
 
107
- get '/v3/checks' do
108
- json_response(200, "checks.json")
115
+ get '/v3.1/checks' do
116
+ json_response(200, 'checks.json')
109
117
  end
110
118
 
111
- post '/v3/checks/:id/resume' do
119
+ post '/v3.1/checks/:id/resume' do
112
120
  status 204 # no_content
113
121
  end
114
122
 
115
- get '/v3/reports' do
123
+ get '/v3.1/checks/:id/download' do
124
+ status 200
125
+ content_type 'application/pdf'
126
+ "\x01\x02\x03" # acts as binary file data
127
+ end
128
+
129
+ get '/v3.1/reports' do
116
130
  json_response(200, 'reports.json')
117
131
  end
118
132
 
119
- get '/v3/reports/:id' do
133
+ get '/v3.1/reports/:id' do
120
134
  json_response(200, 'report.json')
121
135
  end
122
136
 
123
- post '/v3/reports/:id/resume' do
137
+ post '/v3.1/reports/:id/resume' do
124
138
  status 204
125
139
  end
126
140
 
127
- post '/v3/reports/:id/cancel' do
141
+ post '/v3.1/reports/:id/cancel' do
128
142
  status 204
129
143
  end
130
144
 
131
- post '/v3/sdk_token' do
145
+ post '/v3.1/sdk_token' do
132
146
  json_response(201, 'sdk_token.json')
133
147
  end
134
148
 
135
- post '/v3/webhooks' do
149
+ post '/v3.1/webhooks' do
136
150
  json_response(201, 'webhook.json')
137
151
  end
138
152
 
139
- get '/v3/webhooks/:id' do
153
+ get '/v3.1/webhooks/:id' do
140
154
  json_response(200, 'webhook.json')
141
155
  end
142
156
 
143
- delete '/v3/webhooks/:id' do
144
- content_type "application/json; charset=utf-8"
157
+ delete '/v3.1/webhooks/:id' do
158
+ content_type 'application/json; charset=utf-8'
145
159
  status 204
146
160
  end
147
161
 
148
- get '/v3/webhooks' do
162
+ get '/v3.1/webhooks' do
149
163
  json_response(200, 'webhooks.json')
150
164
  end
151
165
 
152
- get '/v3/4xx_response' do
166
+ get '/v3.1/4xx_response' do
153
167
  json_response(422, '4xx_response.json')
154
168
  end
155
169
 
156
- get '/v3/unexpected_error_format' do
170
+ get '/v3.1/unexpected_error_format' do
157
171
  json_response(400, 'unexpected_error_format.json')
158
172
  end
159
173
 
160
- get '/v3/unparseable_response' do
174
+ get '/v3.1/unparseable_response' do
161
175
  content_type :json
162
176
  status 504
163
177
  ''
@@ -166,9 +180,9 @@ class FakeOnfidoAPI < Sinatra::Base
166
180
  private
167
181
 
168
182
  def json_response(response_code, file_name)
169
- content_type "application/json; charset=utf-8"
183
+ content_type 'application/json; charset=utf-8'
170
184
  status response_code
171
- File.open(File.dirname(__FILE__) + '/fixtures/' + file_name, 'rb').read
185
+ File.open("#{File.dirname(__FILE__)}/fixtures/#{file_name}", 'rb').read
172
186
  end
173
187
 
174
188
  def pagination_range
@@ -7,7 +7,7 @@
7
7
  "last_name":"Bing",
8
8
  "email":"chandler_bing_6@friends.com",
9
9
  "dob":"1968-04-08",
10
- "href":"/v3/applicants/61f659cb-c90b-4067-808a-6136b5c01351",
10
+ "href":"/v3.1/applicants/61f659cb-c90b-4067-808a-6136b5c01351",
11
11
  "id_numbers":[],
12
12
  "address": {
13
13
  "flat_number":"4",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "8546921-123123-123123",
3
3
  "created_at": "2019-05-23T13:50:33Z",
4
- "href": "/v3/checks/8546921-123123-123123",
4
+ "href": "/v3.1/checks/8546921-123123-123123",
5
5
  "applicant_provides_data": "false",
6
6
  "status": "pending",
7
7
  "result": "pending",
@@ -3,7 +3,7 @@
3
3
  {
4
4
  "id": "8546921-123123-123123",
5
5
  "created_at": "2019-11-23T13:50:33Z",
6
- "href": "/v3/checks/8546921-123123-123123",
6
+ "href": "/v3.1/checks/8546921-123123-123123",
7
7
  "applicant_provides_data": "false",
8
8
  "status": "pending",
9
9
  "result": "pending",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "7568415-123123-123123",
3
3
  "created_at": "2019-11-23 13:50:33Z",
4
- "href": "/v3/documents/7568415-123123-123123",
4
+ "href": "/v3.1/documents/7568415-123123-123123",
5
5
  "file_name": "passport.jpg",
6
6
  "file_type": "png",
7
7
  "file_size": 282870,
@@ -3,7 +3,7 @@
3
3
  {
4
4
  "id": "7568415-123123-123123",
5
5
  "created_at": "2019-11-23 13:50:33Z",
6
- "href": "/v3/documents/7568415-123123-123123",
6
+ "href": "/v3.1/documents/7568415-123123-123123",
7
7
  "file_name": "passport.jpg",
8
8
  "file_type": "png",
9
9
  "file_size": 282870,
@@ -12,7 +12,7 @@
12
12
  {
13
13
  "id": "121122-123123-123123",
14
14
  "created_at": "2019-11-23 13:50:40Z",
15
- "href": "/v3/documents/7568415-123123-123123",
15
+ "href": "/v3.1/documents/7568415-123123-123123",
16
16
  "file_name": "driving_licence.png",
17
17
  "file_type": "png",
18
18
  "file_size": 282870,
@@ -4,6 +4,6 @@
4
4
  "file_name": "onfido_captured_image.jpg",
5
5
  "file_type": "image/jpeg",
6
6
  "file_size": 47544,
7
- "href": "/v3/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1",
8
- "download_href": "/v3/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1/download"
7
+ "href": "/v3.1/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1",
8
+ "download_href": "/v3.1/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1/download"
9
9
  }
@@ -6,8 +6,8 @@
6
6
  "file_name": "onfido_captured_image.jpg",
7
7
  "file_type": "image/jpeg",
8
8
  "file_size": 47544,
9
- "href": "/v3/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1",
10
- "download_href": "/v3/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1/download"
9
+ "href": "/v3.1/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1",
10
+ "download_href": "/v3.1/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1/download"
11
11
  },
12
12
  {
13
13
  "id": "5134c12a-555a-1234-5e12-9d34fcbc11ba",
@@ -15,8 +15,8 @@
15
15
  "file_name": "onfido_captured_image.jpg",
16
16
  "file_type": "image/jpeg",
17
17
  "file_size": 47544,
18
- "href": "/v3/live_photos/5134c12a-555a-1234-5e12-9d34fcbc11ba",
19
- "download_href": "/v3/live_photos/5134c12a-555a-1234-5e12-9d34fcbc11ba/download"
18
+ "href": "/v3.1/live_photos/5134c12a-555a-1234-5e12-9d34fcbc11ba",
19
+ "download_href": "/v3.1/live_photos/5134c12a-555a-1234-5e12-9d34fcbc11ba/download"
20
20
  }
21
21
  ]
22
22
  }
@@ -18,6 +18,6 @@
18
18
  "file_name" : "output-29-05-2018_11_00_24.mov",
19
19
  "file_type" : "video/quicktime",
20
20
  "file_size" : 3348421,
21
- "href" : "/v3/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01",
22
- "download_href" : "/v3/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01/download"
21
+ "href" : "/v3.1/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01",
22
+ "download_href" : "/v3.1/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01/download"
23
23
  }
@@ -16,11 +16,11 @@
16
16
  }
17
17
  ],
18
18
  "created_at": "2019-11-29T09:00:39Z",
19
- "download_href": "/v3/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01/download",
19
+ "download_href": "/v3.1/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01/download",
20
20
  "file_name": "output-29-11-2019_11_00_24.mov",
21
21
  "file_size": 3348421,
22
22
  "file_type": "video/quicktime",
23
- "href": "/v3/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01",
23
+ "href": "/v3.1/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01",
24
24
  "id": "c9701e9b-83aa-442f-995b-20320ee8fb01"
25
25
  }
26
26
  ]
@@ -4,7 +4,7 @@
4
4
  "created_at": "2019-11-23T13:50:45Z",
5
5
  "status": "in_progress",
6
6
  "result": "pending",
7
- "href": "/v3/reports/6951786-123123-422221",
7
+ "href": "/v3.1/reports/6951786-123123-422221",
8
8
  "breakdown": {},
9
9
  "properties": {}
10
10
  }
@@ -6,7 +6,7 @@
6
6
  "created_at": "2019-11-23T13:50:45Z",
7
7
  "status": "in_progress",
8
8
  "result": "pending",
9
- "href": "/v3/reports/6951786-123123-422221",
9
+ "href": "/v3.1/reports/6951786-123123-422221",
10
10
  "breakdown": {},
11
11
  "properties": {}
12
12
  },
@@ -16,7 +16,7 @@
16
16
  "created_at": "2019-11-23T13:50:45Z",
17
17
  "status": "in_progress",
18
18
  "result": "pending",
19
- "href": "/v3/reports/6951786-123123-316712",
19
+ "href": "/v3.1/reports/6951786-123123-316712",
20
20
  "breakdown": {},
21
21
  "properties": {}
22
22
  }
@@ -3,7 +3,7 @@
3
3
  "url": "https://webhookendpoint.url",
4
4
  "token": "yV85IsmuYwmjQGlZ",
5
5
  "enabled": true,
6
- "href": "/v3/webhooks/fcb73186-0733-4f6f-9c57-d9d5ef979443",
6
+ "href": "/v3.1/webhooks/fcb73186-0733-4f6f-9c57-d9d5ef979443",
7
7
  "environments": [
8
8
  "live"
9
9
  ],
@@ -4,7 +4,7 @@
4
4
  "id": "dd0a89e4-d44e-417a-aec4-01137d01ae59",
5
5
  "url": "https://demo.com",
6
6
  "enabled":false,
7
- "href": "/v3/webhooks/dd0a89e4-d44e-417a-aec4-01137d01ae59",
7
+ "href": "/v3.1/webhooks/dd0a89e4-d44e-417a-aec4-01137d01ae59",
8
8
  "environments": [
9
9
  "live"
10
10
  ],
@@ -18,7 +18,7 @@
18
18
  "id": "bfc727a8-f7bf-4073-b123-ed70a70f58e5",
19
19
  "url": "https://demo2.com",
20
20
  "enabled": true,
21
- "href": "/v3/webhooks/bfc727a8-f7bf-4073-b123-ed70a70f58e5",
21
+ "href": "/v3.1/webhooks/bfc727a8-f7bf-4073-b123-ed70a70f58e5",
22
22
  "environments": [
23
23
  "live"
24
24
  ],
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onfido
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Onfido
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-16 00:00:00.000000000 Z
11
+ date: 2021-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rake
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '12.0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '12.0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rspec
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +44,14 @@ dependencies:
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: 0.57.0
47
+ version: '1.11'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: 0.57.0
54
+ version: '1.11'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: sinatra
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -139,15 +125,13 @@ files:
139
125
  - Gemfile
140
126
  - LICENSE
141
127
  - README.md
142
- - Rakefile
143
128
  - lib/onfido.rb
144
129
  - lib/onfido/api.rb
145
- - lib/onfido/configuration.rb
146
130
  - lib/onfido/errors/connection_error.rb
147
131
  - lib/onfido/errors/onfido_error.rb
148
132
  - lib/onfido/errors/request_error.rb
149
133
  - lib/onfido/errors/server_error.rb
150
- - lib/onfido/null_logger.rb
134
+ - lib/onfido/options.rb
151
135
  - lib/onfido/resource.rb
152
136
  - lib/onfido/resources/address.rb
153
137
  - lib/onfido/resources/applicant.rb
@@ -165,18 +149,17 @@ files:
165
149
  - spec/integrations/applicant_spec.rb
166
150
  - spec/integrations/check_spec.rb
167
151
  - spec/integrations/document_spec.rb
168
- - spec/integrations/exceptions_spec.rb
169
152
  - spec/integrations/extraction_spec.rb
170
153
  - spec/integrations/live_photo_spec.rb
171
154
  - spec/integrations/live_video_spec.rb
172
155
  - spec/integrations/report_spec.rb
156
+ - spec/integrations/resource_spec.rb
173
157
  - spec/integrations/sdk_token_spec.rb
174
158
  - spec/integrations/webhook_spec.rb
175
159
  - spec/onfido/api_spec.rb
176
160
  - spec/onfido/connection_error_spec.rb
161
+ - spec/onfido/options_spec.rb
177
162
  - spec/onfido/request_error_spec.rb
178
- - spec/onfido/resource_spec.rb
179
- - spec/onfido_spec.rb
180
163
  - spec/spec_helper.rb
181
164
  - spec/support/fake_onfido_api.rb
182
165
  - spec/support/fixtures/4xx_response.json
@@ -211,14 +194,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
194
  requirements:
212
195
  - - ">="
213
196
  - !ruby/object:Gem::Version
214
- version: 2.2.0
197
+ version: 2.4.0
215
198
  required_rubygems_version: !ruby/object:Gem::Requirement
216
199
  requirements:
217
200
  - - ">="
218
201
  - !ruby/object:Gem::Version
219
202
  version: '0'
220
203
  requirements: []
221
- rubygems_version: 3.0.3
204
+ rubygems_version: 3.1.4
222
205
  signing_key:
223
206
  specification_version: 4
224
207
  summary: A wrapper for Onfido API
@@ -227,18 +210,17 @@ test_files:
227
210
  - spec/integrations/applicant_spec.rb
228
211
  - spec/integrations/check_spec.rb
229
212
  - spec/integrations/document_spec.rb
230
- - spec/integrations/exceptions_spec.rb
231
213
  - spec/integrations/extraction_spec.rb
232
214
  - spec/integrations/live_photo_spec.rb
233
215
  - spec/integrations/live_video_spec.rb
234
216
  - spec/integrations/report_spec.rb
217
+ - spec/integrations/resource_spec.rb
235
218
  - spec/integrations/sdk_token_spec.rb
236
219
  - spec/integrations/webhook_spec.rb
237
220
  - spec/onfido/api_spec.rb
238
221
  - spec/onfido/connection_error_spec.rb
222
+ - spec/onfido/options_spec.rb
239
223
  - spec/onfido/request_error_spec.rb
240
- - spec/onfido/resource_spec.rb
241
- - spec/onfido_spec.rb
242
224
  - spec/spec_helper.rb
243
225
  - spec/support/fake_onfido_api.rb
244
226
  - spec/support/fixtures/4xx_response.json