smile-identity-core 1.2.1 → 2.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e90f488e56f0f23468d8ce70a6190d7f343b6f626f3383e5909b0f2bede5e89
4
- data.tar.gz: 2b53062431bd66ac011e1fde789c16fe501b565297b33324101153aa550da364
3
+ metadata.gz: 0256a5d5a35915153e433d6bef6c697a4e5670ed25014b21c184253f5b8cea31
4
+ data.tar.gz: 311bcb8052308ba0d543fa7d23f557b3e49555c31436b1cfe22833bf96d09c39
5
5
  SHA512:
6
- metadata.gz: 89338028a53553ddf63d7b004437b9305e6fc301578e7646888b6bf89557be2bbd5def9fce62cce7bbbc094c5e7bdc255a2ef9bf25f5a9732a06a7aa95ac3f44
7
- data.tar.gz: efb84f0d05c9ce9df6b47126389cdc8dfa4245909b14fc396537b350e71b41c2e134a38462968432fffc85cff9c9a5347799d1eca07fb7c49253c5006deed9b1
6
+ metadata.gz: 5892d83748e2c5a320e99dcfa639de14a0a701f3fe39192173600f264c7b0d466873b6752728b57e5cf83d06f1ab1ce3535cd511d6be9d1c148e18a50b7e75ca
7
+ data.tar.gz: 4876f4872cddb222bbf354dc050902d4c92d36c73a88f6b9ee40eadc41996aae72f7a5b844b269366dbbb514f586fbafbf28226f96efc9249451cf74567a670c
@@ -0,0 +1,18 @@
1
+ name: Publish to RubyGems
2
+ on:
3
+ push:
4
+ tags:
5
+ - v[0-9]+.[0-9]+.[0-9]+* # should only run when the tags matches sematic versioning
6
+ jobs:
7
+ test:
8
+ uses: ./.github/workflows/test.yml
9
+ build:
10
+ needs: test
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ - name: Release Gem
15
+ uses: cadwallion/publish-rubygems-action@master
16
+ env:
17
+ RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
18
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,36 @@
1
+ name: test
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ pull_request:
7
+ workflow_dispatch:
8
+ workflow_call:
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
16
+ # See https://www.ruby-lang.org/en/downloads/ for latest stable releases.
17
+ ruby: ['2.6', '2.7', '3.0', '3.1']
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{ matrix.ruby }}
23
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
24
+ - run: bundle exec rake
25
+ lint:
26
+ runs-on: ubuntu-latest
27
+ steps:
28
+ - uses: actions/checkout@v3
29
+ - name: Set up Ruby 3.1
30
+ uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: 3.1
33
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
34
+ # NOTE: || true should be removed as soon as all offenses are fixed.
35
+ - name: Run RuboCop
36
+ run: bundle exec rubocop --parallel || true
data/.gitignore CHANGED
@@ -7,6 +7,9 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /*.gem
10
+ /.idea/
11
+ .env
10
12
 
11
13
  # rspec failure tracking
12
14
  .rspec_status
15
+ .DS_Store
data/.rubocop.yml ADDED
@@ -0,0 +1,6 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 2.5
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.2
data/CHANGELOG.md CHANGED
@@ -1,37 +1,51 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [0.1.0] - 2019-07-19
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ # [2.1.0] - 2022-10-28
10
+ ## Changed
11
+ - Moved Business verification to IDApi
12
+
13
+ # [2.0.0] - 2022-10-24
5
14
  ### Added
6
- The first release version of Web Api.
15
+ - build: Adds support for ruby 3.1
16
+ - docs: adds "examples" folder
17
+ - Adds Business Verification product
7
18
 
8
- ## [0.1.1] - 2019-07-23
9
- ### Updated
10
- Some package configurations were added.
19
+ ### Changed
20
+ - ci: Move from TravisCI to Github Actions
21
+ - core: Enforces the use of signature on all API calls
22
+ - core: Adds helper constants SMILE_IDENTITY_CORE::ENV, SMILE_IDENTITY_CORE::ImageType, SMILE_IDENTITY_CORE::JobType
23
+ - Fixes invalid links in gemspec
11
24
 
12
- ## [0.2.0] - 2019-08-14
25
+ ### Removed
26
+ - build: Drops support for ruby 2.5.1
27
+ - core: Removes support for `sec_key` as an authentication method
28
+
29
+ ## [1.2.1] - 2021-12-02
30
+ ### Changed
31
+ - Revert changes to version SmileIdentityCore.version_as_hash
32
+ - Uses hard coded apiVersion
33
+
34
+ ## [1.2.0] - 2021-10-08
13
35
  ### Added
14
- Removed two parameters: optional_callback and return_job_status in the submit_job function in favour of an options hash.
15
- Introduced return_history and image_links
36
+ - Add Signature option for signing requests
16
37
 
17
- ## [0.2.1] - 2019-09-05
18
- ### Updated
19
- Updates to the readme
20
- Update some error messages
21
- Use the signature class in the Web API class
22
- Accept more formats as inputs
23
- Fix the loss of optional_callback
24
- Ensure that we allow nil inputs or empty hashes for options and id_info
25
- Confirm the signature when querying the job status
26
- Add a Utilities class with get_job_status that we use internally to expose a public get_job_status method on WebApi
38
+ ## [1.1.0] - 2021-09-29
39
+ Set version information from SmileIdentityCore.version_as_hash
40
+ - Change the urls for both test and prod aa55a72d10854f05a35db4dad3ea63930e8996f6
27
41
 
28
- ## [0.2.2] - 2019-09-17
29
- ### Updated
30
- Add the language to the package information
42
+ ## [1.0.2] - 2020-01-16
43
+ Add {"success":true,"smile_job_id":"job_id"} to the response when we poll job status too
31
44
 
32
- ## [0.2.3] - 2019-09-17
33
- ### Updated
34
- Lenient Decoding of the api key
45
+ ## [1.0.1] - 2019-10-24
46
+ ## Updated
47
+ Remove first_name and last_name validations from id information in Web Api
48
+ Add country, id_number and id_type validations for id information in ID Api
35
49
 
36
50
  ## [1.0.0] - 2019-10-11
37
51
  ## Updated
@@ -40,10 +54,41 @@ Add the ID API Class
40
54
  Add the ability to query ID Api from the Web API class
41
55
  Update the documentation
42
56
 
43
- ## [1.0.1] - 2019-10-24
44
- ## Updated
45
- Remove first_name and last_name validations from id information in Web Api
46
- Add country, id_number and id_type validations for id information in ID Api
57
+ ## [0.2.3] - 2019-09-17
58
+ ### Changed
59
+ - Lenient Decoding of the api key
47
60
 
48
- ## [1.0.2] - 2020-01-16
49
- Add {"success":true,"smile_job_id":"job_id"} to the response when we poll job status too
61
+ ## [0.2.2] - 2019-09-17
62
+ ### Added
63
+ - Add the language to the package information
64
+
65
+ ## [0.2.1] - 2019-09-05
66
+
67
+ ### Added
68
+ - Accept more formats as inputs
69
+ - Use the signature class in the Web API class
70
+ - Add a Utilities class with get_job_status that we use internally to expose a public get_job_status method on WebApi
71
+
72
+ ### Updated
73
+ - Updates to the readme
74
+ - Update some error messages
75
+
76
+ ### Fixed
77
+ - Fix the loss of optional_callback
78
+ - Ensure that we allow nil inputs or empty hashes for options and id_info
79
+ - Confirm the signature when querying the job status
80
+
81
+ ## [0.2.0] - 2019-08-14
82
+ ### Added
83
+ - Introduced return_history and image_links
84
+
85
+ ### Removed
86
+ - Removed two parameters: optional_callback and return_job_status in the submit_job function in favour of an options hash.
87
+
88
+ ## [0.1.1] - 2019-07-23
89
+ ### Added
90
+ - Some package configurations were added.
91
+
92
+ ## [0.1.0] - 2019-07-19
93
+ ### Added
94
+ - The first release version of Web Api.
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
- source "https://rubygems.org"
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in smile-identity-core.gemspec
4
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,20 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smile-identity-core (1.2.1)
4
+ smile-identity-core (2.1.0)
5
5
  rubyzip (~> 1.2, >= 1.2.3)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
+ ast (2.4.2)
11
12
  diff-lcs (1.3)
12
13
  docile (1.1.5)
13
- ethon (0.12.0)
14
- ffi (>= 1.3.0)
15
- ffi (1.13.1)
14
+ ethon (0.16.0)
15
+ ffi (>= 1.15.0)
16
+ ffi (1.15.5)
16
17
  json (2.5.1)
17
- rake (10.5.0)
18
+ parallel (1.22.1)
19
+ parser (3.1.2.1)
20
+ ast (~> 2.4.1)
21
+ rainbow (3.1.1)
22
+ rake (12.3.3)
23
+ regexp_parser (2.6.0)
24
+ rexml (3.2.5)
18
25
  rspec (3.8.0)
19
26
  rspec-core (~> 3.8.0)
20
27
  rspec-expectations (~> 3.8.0)
@@ -28,6 +35,23 @@ GEM
28
35
  diff-lcs (>= 1.2.0, < 2.0)
29
36
  rspec-support (~> 3.8.0)
30
37
  rspec-support (3.8.2)
38
+ rubocop (1.37.1)
39
+ json (~> 2.3)
40
+ parallel (~> 1.10)
41
+ parser (>= 3.1.2.1)
42
+ rainbow (>= 2.2.2, < 4.0)
43
+ regexp_parser (>= 1.8, < 3.0)
44
+ rexml (>= 3.2.5, < 4.0)
45
+ rubocop-ast (>= 1.23.0, < 2.0)
46
+ ruby-progressbar (~> 1.7)
47
+ unicode-display_width (>= 1.4.0, < 3.0)
48
+ rubocop-ast (1.23.0)
49
+ parser (>= 3.1.1.0)
50
+ rubocop-rake (0.6.0)
51
+ rubocop (~> 1.0)
52
+ rubocop-rspec (2.14.1)
53
+ rubocop (~> 1.33)
54
+ ruby-progressbar (1.11.0)
31
55
  rubyzip (1.3.0)
32
56
  simplecov (0.12.0)
33
57
  docile (~> 1.1.0)
@@ -36,16 +60,20 @@ GEM
36
60
  simplecov-html (0.10.2)
37
61
  typhoeus (1.4.0)
38
62
  ethon (>= 0.9.0)
63
+ unicode-display_width (2.3.0)
39
64
 
40
65
  PLATFORMS
41
66
  ruby
42
67
 
43
68
  DEPENDENCIES
44
69
  bundler (~> 2.0)
45
- rake (~> 10.0)
70
+ rake (~> 12.3)
46
71
  rspec (~> 3.0)
72
+ rubocop (~> 1.37.1)
73
+ rubocop-rake (~> 0.6.0)
74
+ rubocop-rspec (~> 2.14.1)
47
75
  simplecov (~> 0.12.0)
48
76
  smile-identity-core!
49
77
 
50
78
  BUNDLED WITH
51
- 2.2.6
79
+ 2.3.25