onfido 0.11.0 → 0.15.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
2
  SHA256:
3
- metadata.gz: 25182eb1c80a27c7f3fbd914c640e277e973e71d0f24f8760c4c28894b243622
4
- data.tar.gz: 9f2a71605568b28890ac8ad6113050a9f6e2a947e19964a70a2144fe51571e93
3
+ metadata.gz: 4a3a4754fe9f0896451df78eed5bf0af851ddffad2d4992e59d68fd5a3dc5e1d
4
+ data.tar.gz: 4c51e178c11a4a60cda311c517803cd890d90c383b5fef10250e2064f372649b
5
5
  SHA512:
6
- metadata.gz: 16f99cd52f76371e5fee1aef34d0c33752eb772ae6ffbd514644ee84eb5baf50fb126d4a00726fe7b15f802f8efbc7f3ff3a654bae875a0af992cfac6663d63b
7
- data.tar.gz: e1df5fd7ca79a84cd33942d59271b68ccedaca41d49dfdf1ef107a07d199e8688299da824c7d32722a1350f6137c7bfd5ad3907449e5a93ec28f2d288d137edd
6
+ metadata.gz: be9b5b35882b37be5d70e0004191c10ba67c069ac99b86b7382abb6924b8e6d29f557340d4ff18e38f9bcd8f898f0ae60c57daea5ebac1037e781aa551fc38ae
7
+ data.tar.gz: 5d2cd866567a2159a661ae3ec7af29d2d620b47f5ba44e681fb84e8ca1798c0c8b13c8eb0da829ccd9b46861038f0a89d6ccd1b4ec4de576b61d45fe78ea9c30
data/.rubocop.yml CHANGED
@@ -2,9 +2,6 @@
2
2
 
3
3
  AllCops:
4
4
  DisplayCopNames: true
5
- Include:
6
- - Rakefile
7
- - lib/tasks/*.rake
8
5
  Exclude:
9
6
  - vendor/**/*
10
7
  - .*/**
@@ -54,3 +51,7 @@ Layout/DotPosition:
54
51
  # Allow class and message or instance raises
55
52
  Style/RaiseArgs:
56
53
  Enabled: false
54
+
55
+ Lint/AmbiguousBlockAssociation:
56
+ Exclude:
57
+ - "spec/**/*"
data/.travis.yml CHANGED
@@ -1,18 +1,20 @@
1
1
  language: ruby
2
2
 
3
- matrix:
4
- allow_failures:
5
- - rvm: jruby
6
- - rvm: rbx-2
7
-
8
3
  rvm:
9
- - 2.2
10
4
  - 2.3
11
5
  - 2.4
12
6
  - 2.5
13
- - jruby
14
- - rbx-2
7
+ - 2.6
8
+
9
+ before_install:
10
+ - gem update --system
11
+ - gem install bundler
15
12
 
16
13
  script:
17
14
  - bundle exec rubocop
18
15
  - bundle exec rspec spec
16
+
17
+ # safelist
18
+ branches:
19
+ only:
20
+ - master
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## v0.15.0, 4 Feb 2019
2
+
3
+ - Add Check#find_by_url method (@ctrlaltdylan)
4
+
5
+ ## v0.14.0, 28 Jan 2019
6
+
7
+ - Add support for applicant deletion and restore endpoints
8
+
9
+ ## v0.13.0, 5 Nov 2018
10
+
11
+ - Add support for region-specific environments (@stephencookdev)
12
+
13
+ ## v0.12.0, 29 May 2018
14
+
15
+ - Add support for the Live Video resource (#55) (@Intrepidd)
16
+
1
17
  ## v0.11.0, 18 April 2018
2
18
 
3
19
  - Automatically detect the correct Onfido API region to use based on the provided API
data/README.md CHANGED
@@ -12,14 +12,14 @@ This gem supports both `v1` and `v2` of the Onfido API. Refer to Onfido's [API d
12
12
  Add this line to your application's Gemfile:
13
13
 
14
14
  ```ruby
15
- gem 'onfido', '~> 0.11.0'
15
+ gem 'onfido', '~> 0.15.1'
16
16
  ```
17
17
 
18
18
  The gem is compatible with Ruby 2.2.0 and onwards. Earlier versions of Ruby have [reached end-of-life](https://www.ruby-lang.org/en/news/2017/04/01/support-of-ruby-2-1-has-ended/), are no longer supported and no longer receive security fixes.
19
19
 
20
20
  ## Configuration
21
21
 
22
- There are 5 configuration options:
22
+ There are 6 configuration options:
23
23
 
24
24
  ```ruby
25
25
  Onfido.configure do |config|
@@ -28,9 +28,19 @@ Onfido.configure do |config|
28
28
  config.logger = Logger.new(STDOUT)
29
29
  config.open_timeout = 30
30
30
  config.read_timeout = 80
31
+ config.region = nil
31
32
  end
32
33
  ```
33
34
 
35
+ ### Regions
36
+
37
+ The gem will use the default region if no region is specified.
38
+
39
+ To specify the US region do:
40
+ `config.region = :us`
41
+
42
+ See https://documentation.onfido.com/#regions for supported regions.
43
+
34
44
  ## Usage
35
45
 
36
46
  You can make API calls by using an instance of the `API` class:
@@ -58,11 +68,15 @@ Applicants are the object upon which Onfido checks are performed.
58
68
  ```ruby
59
69
  api.applicant.create(params) # => Creates an applicant
60
70
  api.applicant.update('applicant_id', params) # => Updates an applicant
61
- api.applicant.destroy('applicant_id') # => Destroy an applicant
71
+ api.applicant.destroy('applicant_id') # => Schedule an applicant for deletion
72
+ api.applicant.restore('applicant_id') # => Restore an applicant scheduled for deletion
62
73
  api.applicant.find('applicant_id') # => Finds a single applicant
63
74
  api.applicant.all # => Returns all applicants
64
75
  ```
65
76
 
77
+ **Note:** Calling `api.applicant.destroy` adds the applicant and all associated documents, photos, videos, checks, and reports to the deletion queue. They will be deleted 20 days after the request is made. An applicant that is scheduled for deletion can be restored but applicants that have been permanently deleted cannot.
78
+ See https://documentation.onfido.com/#delete-applicant for more information.
79
+
66
80
  #### Documents
67
81
 
68
82
  Documents provide supporting evidence for Onfido checks.
@@ -103,6 +117,7 @@ more "reports" on them.
103
117
  ```ruby
104
118
  api.check.create('applicant_id', type: 'express', reports: [{ name: 'identity' }])
105
119
  api.check.find('applicant_id', 'check_id')
120
+ api.check.find_by_url('applicants/a90e7a17-677a-49ab-a171-281f96c77bde/checks/c9f41bef-0610-4d2f-9982-ae9387876edc')
106
121
  api.check.resume('check_id')
107
122
  api.check.all('applicant_id')
108
123
  ```
data/lib/onfido.rb CHANGED
@@ -17,6 +17,7 @@ require 'onfido/resources/applicant'
17
17
  require 'onfido/resources/check'
18
18
  require 'onfido/resources/document'
19
19
  require 'onfido/resources/live_photo'
20
+ require 'onfido/resources/live_video'
20
21
  require 'onfido/resources/report'
21
22
  require 'onfido/resources/report_type_group'
22
23
  require 'onfido/resources/sdk_token'
data/lib/onfido/api.rb CHANGED
@@ -20,6 +20,10 @@ module Onfido
20
20
  Onfido::LivePhoto.new(@api_key)
21
21
  end
22
22
 
23
+ def live_video
24
+ Onfido::LiveVideo.new(@api_key)
25
+ end
26
+
23
27
  def report
24
28
  Onfido::Report.new(@api_key)
25
29
  end
@@ -1,6 +1,10 @@
1
1
  module Onfido
2
2
  module Configuration
3
- attr_accessor :api_key, :open_timeout, :read_timeout, :api_version
3
+ REGION_HOSTS = {
4
+ us: "api.us.onfido.com"
5
+ }.freeze
6
+
7
+ attr_accessor :api_key, :region, :open_timeout, :read_timeout, :api_version
4
8
 
5
9
  def self.extended(base)
6
10
  base.reset
@@ -12,6 +16,7 @@ module Onfido
12
16
 
13
17
  def reset
14
18
  self.api_key = nil
19
+ self.region = nil
15
20
  self.open_timeout = 30
16
21
  self.read_timeout = 80
17
22
  self.api_version = 'v2'
@@ -30,22 +35,13 @@ module Onfido
30
35
  RestClient.log ||= NullLogger.new
31
36
  end
32
37
 
33
- def region
34
- return unless api_key
35
-
36
- first_bit = api_key.split("_")[0]
37
-
38
- return if %w(live test).include?(first_bit)
39
-
40
- first_bit
41
- end
42
-
43
38
  def endpoint
44
- if region
45
- "https://api.#{region}.onfido.com/#{api_version}/"
46
- else
47
- "https://api.onfido.com/#{api_version}/"
39
+ region_host = region ? REGION_HOSTS[region.downcase.to_sym] : "api.onfido.com"
40
+ unless region_host
41
+ raise "The region \"#{region.downcase}\" is not currently supported"
48
42
  end
43
+
44
+ "https://#{region_host}/#{api_version}/"
49
45
  end
50
46
  end
51
47
  end
@@ -1,10 +1,8 @@
1
1
  module Onfido
2
2
  class Address < Resource
3
3
  def all(postcode)
4
- get(
5
- url: url_for('addresses/pick'),
6
- payload: { postcode: postcode.delete(' ') }
7
- )
4
+ query_string = "postcode=#{postcode.delete(' ')}"
5
+ get(url: url_for("addresses/pick?#{query_string}"))
8
6
  end
9
7
  end
10
8
  end
@@ -19,5 +19,9 @@ module Onfido
19
19
  def all(page: 1, per_page: 20)
20
20
  get(url: url_for("applicants?page=#{page}&per_page=#{per_page}"))
21
21
  end
22
+
23
+ def restore(applicant_id)
24
+ post(url: url_for("applicants/#{applicant_id}/restore"))
25
+ end
22
26
  end
23
27
  end
@@ -13,6 +13,12 @@ module Onfido
13
13
  "#{querystring}"))
14
14
  end
15
15
 
16
+ def find_by_url(url, expand: nil)
17
+ url_path = url.sub(%r/^https\:\/\/api\.onfido\.com\/v2\//, '')
18
+ querystring = "&expand=#{expand}" if expand
19
+ get(url: url_for("#{url_path}?#{querystring}"))
20
+ end
21
+
16
22
  def all(applicant_id, page: 1, per_page: 20, expand: nil)
17
23
  querystring = "page=#{page}&per_page=#{per_page}"
18
24
  querystring += "&expand=#{expand}" if expand
@@ -0,0 +1,18 @@
1
+ module Onfido
2
+ class LiveVideo < Resource
3
+ def find(applicant_id, live_video_id)
4
+ query_string = "applicant_id=#{applicant_id}"
5
+ get(url: url_for("live_videos/#{live_video_id}?#{query_string}"))
6
+ end
7
+
8
+ def download(applicant_id, live_video_id)
9
+ query_string = "applicant_id=#{applicant_id}"
10
+ get(url: url_for("live_videos/#{live_video_id}/download?#{query_string}"))
11
+ end
12
+
13
+ def all(applicant_id)
14
+ query_string = "applicant_id=#{applicant_id}"
15
+ get(url: url_for("live_videos?#{query_string}"))
16
+ end
17
+ end
18
+ end
@@ -1,3 +1,3 @@
1
1
  module Onfido
2
- VERSION = '0.11.0'.freeze
2
+ VERSION = '0.15.1'.freeze
3
3
  end
data/onfido.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- lib = File.expand_path('../lib', __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'onfido/version'
6
6
 
@@ -23,11 +23,11 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = ['lib']
24
24
  spec.required_ruby_version = ">= 2.2.0"
25
25
 
26
- spec.add_development_dependency 'bundler', '~> 1.7'
26
+ spec.add_development_dependency 'bundler', '~> 2.0'
27
27
  spec.add_development_dependency 'rake', '~> 12.0'
28
28
  spec.add_development_dependency 'rspec', '~> 3.1'
29
29
  spec.add_development_dependency 'rspec-its', '~> 1.2'
30
- spec.add_development_dependency 'rubocop', '~> 0.52.0'
30
+ spec.add_development_dependency 'rubocop', '~> 0.57.0'
31
31
  spec.add_development_dependency 'sinatra', '~> 1.4'
32
32
  spec.add_development_dependency 'webmock', '~> 3.0'
33
33
 
@@ -97,4 +97,28 @@ describe Onfido::Applicant do
97
97
  end
98
98
  end
99
99
  end
100
+
101
+ describe '#restore' do
102
+ context 'an applicant scheduled for deletion' do
103
+ let(:applicant_id) { '61f659cb-c90b-4067-808a-6136b5c01351' }
104
+
105
+ it 'returns nil' do
106
+ expect(applicant.restore(applicant_id)).to be_nil
107
+ end
108
+ end
109
+
110
+ context 'an applicant not scheduled for deletion' do
111
+ let(:applicant_id) { 'a2fb9c62-ab10-4898-a8ec-342c4b552ad5' }
112
+
113
+ it 'returns an error' do
114
+ expect { applicant.restore(applicant_id) }.to raise_error { |error|
115
+ expect(error).to be_a(Onfido::RequestError)
116
+ expect(error.message).to eq('There was a validation error on this request')
117
+ expect(error.fields).to eq(
118
+ "Applicant a2fb9c62-ab10-4898-a8ec-342c4b552ad5 is not scheduled for deletion"
119
+ )
120
+ }
121
+ end
122
+ end
123
+ end
100
124
  end
@@ -30,6 +30,50 @@ describe Onfido::Check do
30
30
  end
31
31
  end
32
32
 
33
+ describe '#find_by_url' do
34
+ let(:check_id) { '8546921-123123-123123' }
35
+
36
+ context 'partial url' do
37
+ let(:url) { "applicants/#{applicant_id}/checks/#{check_id}" }
38
+
39
+ it 'returns an existing check for the applicant with the partial url' do
40
+ response = check.find_by_url(url)
41
+ expect(response['id']).to eq(check_id)
42
+ end
43
+
44
+ it "returns unexpanded reports" do
45
+ response = check.find_by_url(url)
46
+ expect(response['reports'].first).to be_a(String)
47
+ end
48
+
49
+ it 'allows you to expand the reports' do
50
+ response = check.find_by_url(url, expand: "reports")
51
+ expect(response['reports'].first).to be_a(Hash)
52
+ end
53
+ end
54
+
55
+ context 'full url' do
56
+ let(:url) do
57
+ "https://api.onfido.com/v2/applicants/#{applicant_id}/checks/#{check_id}"
58
+ end
59
+
60
+ it 'returns an existing check for the applicant with the partial url' do
61
+ response = check.find_by_url(url)
62
+ expect(response['id']).to eq(check_id)
63
+ end
64
+
65
+ it "returns unexpanded reports" do
66
+ response = check.find_by_url(url)
67
+ expect(response['reports'].first).to be_a(String)
68
+ end
69
+
70
+ it 'allows you to expand the reports' do
71
+ response = check.find_by_url(url, expand: "reports")
72
+ expect(response['reports'].first).to be_a(Hash)
73
+ end
74
+ end
75
+ end
76
+
33
77
  describe '#all' do
34
78
  let(:check_id) { '8546921-123123-123123' }
35
79
 
@@ -0,0 +1,34 @@
1
+ require 'tempfile'
2
+
3
+ describe Onfido::LiveVideo do
4
+ subject(:live_video) { described_class.new }
5
+
6
+ describe '#find' do
7
+ let(:applicant_id) { '1030303-123123-123123' }
8
+ let(:live_video_id) { 'c9701e9b-83aa-442f-995b-20320ee8fb01' }
9
+
10
+ it 'returns the expected live photo' do
11
+ response = live_video.find(applicant_id, live_video_id)
12
+ expect(response['id']).to eq(live_video_id)
13
+ end
14
+ end
15
+
16
+ describe '#all' do
17
+ let(:applicant_id) { '1030303-123123-123123' }
18
+
19
+ it 'returns list of documents' do
20
+ response = live_video.all(applicant_id)
21
+ expect(response['live_videos']).not_to be_empty
22
+ end
23
+ end
24
+
25
+ describe '#download' do
26
+ let(:applicant_id) { '1030303-123123-123123' }
27
+ let(:live_video_id) { 'c9701e9b-83aa-442f-995b-20320ee8fb01' }
28
+
29
+ it 'returns the file data' do
30
+ response = live_video.download(applicant_id, live_video_id)
31
+ expect(response).not_to be_nil
32
+ end
33
+ end
34
+ end
data/spec/onfido_spec.rb CHANGED
@@ -35,17 +35,18 @@ describe Onfido do
35
35
  end
36
36
  end
37
37
 
38
- describe 'using a US API token' do
38
+ describe 'using the US region' do
39
39
  it 'should change endpoint' do
40
- onfido.api_key = "us_live_asdfghjkl1234567890qwertyuiop"
40
+ onfido.region = 'us'
41
41
  expect(onfido.endpoint).to eq('https://api.us.onfido.com/v2/')
42
42
  end
43
43
  end
44
44
 
45
- describe 'using a EU API token' do
45
+ describe 'using an unsupported region' do
46
46
  it 'should change endpoint' do
47
- onfido.api_key = "eu_live_asdfghjkl1234567890qwertyuiop"
48
- expect(onfido.endpoint).to eq('https://api.eu.onfido.com/v2/')
47
+ onfido.region = 'de'
48
+ expect { onfido.endpoint }.
49
+ to raise_error('The region "de" is not currently supported')
49
50
  end
50
51
  end
51
52
 
@@ -26,6 +26,14 @@ class FakeOnfidoAPI < Sinatra::Base
26
26
  status 204
27
27
  end
28
28
 
29
+ post '/v2/applicants/:id/restore' do
30
+ if params["id"] == "a2fb9c62-ab10-4898-a8ec-342c4b552ad5"
31
+ json_response(422, 'not_scheduled_for_deletion_error.json')
32
+ else
33
+ status 204
34
+ end
35
+ end
36
+
29
37
  post '/v2/applicants/:id/documents' do
30
38
  json_response(201, 'document.json')
31
39
  end
@@ -74,6 +82,32 @@ class FakeOnfidoAPI < Sinatra::Base
74
82
  end
75
83
  end
76
84
 
85
+ get '/v2/live_videos/:id' do
86
+ if params["applicant_id"] != "1030303-123123-123123"
87
+ status 404
88
+ else
89
+ json_response(200, 'live_video.json')
90
+ end
91
+ end
92
+
93
+ get '/v2/live_videos' do
94
+ if params["applicant_id"] != "1030303-123123-123123"
95
+ status 404
96
+ else
97
+ json_response(200, 'live_videos.json')
98
+ end
99
+ end
100
+
101
+ get '/v2/live_videos/:id/download' do
102
+ if params["applicant_id"] != "1030303-123123-123123"
103
+ status 404
104
+ else
105
+ status 200
106
+ content_type 'video/quicktime'
107
+ "\x01\x02\x03" # acts as binary file data
108
+ end
109
+ end
110
+
77
111
  post '/v2/applicants/:id/checks' do
78
112
  json_response(201, 'check.json')
79
113
  end
@@ -0,0 +1,23 @@
1
+ {
2
+ "id" : "c9701e9b-83aa-442f-995b-20320ee8fb01",
3
+ "challenge" : [
4
+ {
5
+ "type" : "movement",
6
+ "query" : "turnLeft"
7
+ },
8
+ {
9
+ "type" : "recite",
10
+ "query" : [
11
+ 9,
12
+ 5,
13
+ 9
14
+ ]
15
+ }
16
+ ],
17
+ "created_at" : "2018-05-29T09:00:39Z",
18
+ "file_name" : "output-29-05-2018_11_00_24.mov",
19
+ "file_type" : "video/quicktime",
20
+ "file_size" : 3348421,
21
+ "href" : "/v2/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01",
22
+ "download_href" : "/v2/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01/download"
23
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "live_videos": [
3
+ {
4
+ "challenge": [
5
+ {
6
+ "query": "turnLeft",
7
+ "type": "movement"
8
+ },
9
+ {
10
+ "query": [
11
+ 9,
12
+ 5,
13
+ 9
14
+ ],
15
+ "type": "recite"
16
+ }
17
+ ],
18
+ "created_at": "2018-05-29T09:00:39Z",
19
+ "download_href": "/v2/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01/download",
20
+ "file_name": "output-29-05-2018_11_00_24.mov",
21
+ "file_size": 3348421,
22
+ "file_type": "video/quicktime",
23
+ "href": "/v2/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01",
24
+ "id": "c9701e9b-83aa-442f-995b-20320ee8fb01"
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "error": {
3
+ "type": "validation_error",
4
+ "message": "There was a validation error on this request",
5
+ "fields": "Applicant a2fb9c62-ab10-4898-a8ec-342c4b552ad5 is not scheduled for deletion"
6
+ }
7
+ }
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onfido
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pericles Theodorou
8
8
  - Grey Baker
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-04-18 00:00:00.000000000 Z
12
+ date: 2021-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '1.7'
20
+ version: '2.0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '1.7'
27
+ version: '2.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -73,14 +73,14 @@ dependencies:
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: 0.52.0
76
+ version: 0.57.0
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: 0.52.0
83
+ version: 0.57.0
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: sinatra
86
86
  requirement: !ruby/object:Gem::Requirement
@@ -170,6 +170,7 @@ files:
170
170
  - lib/onfido/resources/check.rb
171
171
  - lib/onfido/resources/document.rb
172
172
  - lib/onfido/resources/live_photo.rb
173
+ - lib/onfido/resources/live_video.rb
173
174
  - lib/onfido/resources/report.rb
174
175
  - lib/onfido/resources/report_type_group.rb
175
176
  - lib/onfido/resources/sdk_token.rb
@@ -182,6 +183,7 @@ files:
182
183
  - spec/integrations/document_spec.rb
183
184
  - spec/integrations/exceptions_spec.rb
184
185
  - spec/integrations/live_photo_spec.rb
186
+ - spec/integrations/live_video_spec.rb
185
187
  - spec/integrations/report_spec.rb
186
188
  - spec/integrations/report_type_group_spec.rb
187
189
  - spec/integrations/sdk_token_spec.rb
@@ -205,6 +207,9 @@ files:
205
207
  - spec/support/fixtures/documents.json
206
208
  - spec/support/fixtures/live_photo.json
207
209
  - spec/support/fixtures/live_photos.json
210
+ - spec/support/fixtures/live_video.json
211
+ - spec/support/fixtures/live_videos.json
212
+ - spec/support/fixtures/not_scheduled_for_deletion_error.json
208
213
  - spec/support/fixtures/report.json
209
214
  - spec/support/fixtures/report_type_group.json
210
215
  - spec/support/fixtures/report_type_groups.json
@@ -217,7 +222,7 @@ homepage: http://github.com/hvssle/onfido
217
222
  licenses:
218
223
  - MIT
219
224
  metadata: {}
220
- post_install_message:
225
+ post_install_message:
221
226
  rdoc_options: []
222
227
  require_paths:
223
228
  - lib
@@ -232,9 +237,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
237
  - !ruby/object:Gem::Version
233
238
  version: '0'
234
239
  requirements: []
235
- rubyforge_project:
236
- rubygems_version: 2.7.4
237
- signing_key:
240
+ rubygems_version: 3.0.3
241
+ signing_key:
238
242
  specification_version: 4
239
243
  summary: A wrapper for Onfido API
240
244
  test_files:
@@ -244,6 +248,7 @@ test_files:
244
248
  - spec/integrations/document_spec.rb
245
249
  - spec/integrations/exceptions_spec.rb
246
250
  - spec/integrations/live_photo_spec.rb
251
+ - spec/integrations/live_video_spec.rb
247
252
  - spec/integrations/report_spec.rb
248
253
  - spec/integrations/report_type_group_spec.rb
249
254
  - spec/integrations/sdk_token_spec.rb
@@ -267,6 +272,9 @@ test_files:
267
272
  - spec/support/fixtures/documents.json
268
273
  - spec/support/fixtures/live_photo.json
269
274
  - spec/support/fixtures/live_photos.json
275
+ - spec/support/fixtures/live_video.json
276
+ - spec/support/fixtures/live_videos.json
277
+ - spec/support/fixtures/not_scheduled_for_deletion_error.json
270
278
  - spec/support/fixtures/report.json
271
279
  - spec/support/fixtures/report_type_group.json
272
280
  - spec/support/fixtures/report_type_groups.json