yoti_sandbox 1.0.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +8 -1
- data/lib/yoti_sandbox.rb +1 -0
- data/lib/yoti_sandbox/doc_scan.rb +25 -0
- data/lib/yoti_sandbox/doc_scan/client.rb +59 -0
- data/lib/yoti_sandbox/doc_scan/errors.rb +83 -0
- data/lib/yoti_sandbox/doc_scan/request/check/check.rb +115 -0
- data/lib/yoti_sandbox/doc_scan/request/check/document_authenticity_check.rb +29 -0
- data/lib/yoti_sandbox/doc_scan/request/check/document_check.rb +48 -0
- data/lib/yoti_sandbox/doc_scan/request/check/document_face_match_check.rb +29 -0
- data/lib/yoti_sandbox/doc_scan/request/check/document_text_data_check.rb +78 -0
- data/lib/yoti_sandbox/doc_scan/request/check/id_document_comparison_check.rb +56 -0
- data/lib/yoti_sandbox/doc_scan/request/check/liveness_check.rb +34 -0
- data/lib/yoti_sandbox/doc_scan/request/check/report/breakdown.rb +97 -0
- data/lib/yoti_sandbox/doc_scan/request/check/report/detail.rb +34 -0
- data/lib/yoti_sandbox/doc_scan/request/check/report/recommendation.rb +88 -0
- data/lib/yoti_sandbox/doc_scan/request/check/supplementary_document_text_data_check.rb +78 -0
- data/lib/yoti_sandbox/doc_scan/request/check/zoom_liveness_check.rb +36 -0
- data/lib/yoti_sandbox/doc_scan/request/check_reports.rb +182 -0
- data/lib/yoti_sandbox/doc_scan/request/document_filter.rb +77 -0
- data/lib/yoti_sandbox/doc_scan/request/response_config.rb +75 -0
- data/lib/yoti_sandbox/doc_scan/request/task/document_id_photo.rb +35 -0
- data/lib/yoti_sandbox/doc_scan/request/task/document_text_data_extraction_task.rb +170 -0
- data/lib/yoti_sandbox/doc_scan/request/task/supplementary_document_text_data_extraction_task.rb +152 -0
- data/lib/yoti_sandbox/doc_scan/request/task/text_data_extraction_reason.rb +78 -0
- data/lib/yoti_sandbox/doc_scan/request/task/text_data_extraction_recommendation.rb +86 -0
- data/lib/yoti_sandbox/doc_scan/request/task_results.rb +96 -0
- data/lib/yoti_sandbox/profile.rb +5 -0
- data/lib/yoti_sandbox/profile/age_verification.rb +7 -0
- data/lib/yoti_sandbox/profile/client.rb +8 -26
- data/lib/yoti_sandbox/profile/document_images.rb +69 -0
- data/lib/yoti_sandbox/profile/extra_data.rb +92 -0
- data/lib/yoti_sandbox/profile/third_party.rb +158 -0
- data/lib/yoti_sandbox/profile/token_request.rb +47 -6
- data/yoti_sandbox.gemspec +18 -5
- metadata +38 -18
- data/.github/ISSUE_TEMPLATE.md +0 -17
- data/.gitignore +0 -56
- data/CONTRIBUTING.md +0 -30
- data/Guardfile +0 -11
- data/Rakefile +0 -41
- data/rubocop.yml +0 -44
- data/yardstick.yml +0 -9
data/CONTRIBUTING.md
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# Contributing
|
2
|
-
|
3
|
-
After checking out the repo, run `bundle install` to install dependencies. Then, run `bundle exec rake spec` to run the tests. To install this gem onto your local machine, run `bundle exec rake install`.
|
4
|
-
|
5
|
-
You can use [Guard][] to automatically run the tests every time a file in the `lib` or `spec` folder changes.
|
6
|
-
|
7
|
-
Run Guard through Bundler with:
|
8
|
-
|
9
|
-
```shell
|
10
|
-
bundle exec guard
|
11
|
-
```
|
12
|
-
|
13
|
-
[Guard]: https://github.com/guard/guard
|
14
|
-
|
15
|
-
## Code coverage
|
16
|
-
|
17
|
-
The 100% code coverage requirement must be met before submitting new code.
|
18
|
-
This can be checked by opening the generated [SimpleCov][] files:
|
19
|
-
|
20
|
-
```shell
|
21
|
-
open coverage/index.html
|
22
|
-
```
|
23
|
-
|
24
|
-
## Style guide
|
25
|
-
|
26
|
-
The Ruby style guide is configured in the [rubocop.yml](rubocop.yml) file and can be checked by running:
|
27
|
-
|
28
|
-
```shell
|
29
|
-
bundle exec rake rubocop
|
30
|
-
```
|
data/Guardfile
DELETED
data/Rakefile
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
2
|
-
require 'rspec/core/rake_task'
|
3
|
-
require 'yaml'
|
4
|
-
|
5
|
-
################################
|
6
|
-
# Tests #
|
7
|
-
################################
|
8
|
-
|
9
|
-
RSpec::Core::RakeTask.new
|
10
|
-
task test: :spec
|
11
|
-
|
12
|
-
################################
|
13
|
-
# Rubocop #
|
14
|
-
################################
|
15
|
-
|
16
|
-
require 'rubocop/rake_task'
|
17
|
-
RuboCop::RakeTask.new(:rubocop) do |t|
|
18
|
-
t.options = ['--config', 'rubocop.yml']
|
19
|
-
end
|
20
|
-
|
21
|
-
################################
|
22
|
-
# Documentation #
|
23
|
-
################################
|
24
|
-
|
25
|
-
require 'yard'
|
26
|
-
YARD::Rake::YardocTask.new do |t|
|
27
|
-
t.stats_options = ['--list-undoc']
|
28
|
-
end
|
29
|
-
|
30
|
-
yardstick_options = YAML.load_file('yardstick.yml')
|
31
|
-
|
32
|
-
require 'yardstick/rake/measurement'
|
33
|
-
Yardstick::Rake::Measurement.new(:measurement, yardstick_options) do |measurement|
|
34
|
-
measurement.output = 'measurement/report.txt'
|
35
|
-
end
|
36
|
-
|
37
|
-
################################
|
38
|
-
# Defaults #
|
39
|
-
################################
|
40
|
-
|
41
|
-
task default: %i[spec rubocop]
|
data/rubocop.yml
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
DisplayCopNames: true
|
3
|
-
DisplayStyleGuide: true
|
4
|
-
TargetRubyVersion: 2.4
|
5
|
-
|
6
|
-
Metrics/AbcSize:
|
7
|
-
Enabled: false
|
8
|
-
Max: 23
|
9
|
-
|
10
|
-
Metrics/BlockLength:
|
11
|
-
Exclude:
|
12
|
-
- spec/**/**/*.rb
|
13
|
-
- examples/**/*.rb
|
14
|
-
|
15
|
-
Metrics/ClassLength:
|
16
|
-
Enabled: false
|
17
|
-
Max: 115
|
18
|
-
|
19
|
-
Metrics/CyclomaticComplexity:
|
20
|
-
Max: 9
|
21
|
-
|
22
|
-
Metrics/LineLength:
|
23
|
-
Enabled: false
|
24
|
-
|
25
|
-
Metrics/MethodLength:
|
26
|
-
Enabled: false
|
27
|
-
CountComments: false
|
28
|
-
Max: 19
|
29
|
-
|
30
|
-
Style/Documentation:
|
31
|
-
Enabled: false
|
32
|
-
|
33
|
-
Style/FrozenStringLiteralComment:
|
34
|
-
Enabled: false
|
35
|
-
|
36
|
-
Style/NumericLiterals:
|
37
|
-
Enabled: false
|
38
|
-
|
39
|
-
Style/MutableConstant:
|
40
|
-
Enabled: false
|
41
|
-
|
42
|
-
Layout/MultilineMethodCallIndentation:
|
43
|
-
Exclude:
|
44
|
-
- examples/**/*.rb
|