smile-identity-core 1.0.1 → 1.0.2
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/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +14 -4
- data/lib/smile-identity-core/version.rb +1 -1
- data/lib/smile-identity-core/web_api.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4632631c9d5d1180a47ba34c74c5fd759d888d4f2bee913a002fd011f30e2354
|
|
4
|
+
data.tar.gz: 4e8a6febb9f7ebf199650c79db18f4d9c65fed6a6246cbd03bf17bfc78eae50f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 816929a769bc1ceb3dde1afc9957885dccf3ebb73c901b7d119277dedc64e3c59e14f2a7f1aa8304521314c262e4fa1393b3c74e562224c0b3f90ee7bcafc8a9
|
|
7
|
+
data.tar.gz: d6c20e2a4947ecdf24fc0eabd2d24820277c60a4dd857b3ce74bff2b465cbbbea3b9530a8380069437b5309aa8fecaa0f461e822b4d21b8656234a7739e840d1
|
data/CHANGELOG.md
CHANGED
|
@@ -44,3 +44,6 @@ Update the documentation
|
|
|
44
44
|
## Updated
|
|
45
45
|
Remove first_name and last_name validations from id information in Web Api
|
|
46
46
|
Add country, id_number and id_type validations for id information in ID Api
|
|
47
|
+
|
|
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
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# SmileIdentityCore
|
|
2
2
|
|
|
3
|
-
The official Smile Identity gem exposes
|
|
3
|
+
The official Smile Identity gem exposes four classes namely; the Web Api class, the ID Api class, the Signature class and the Utilities class.
|
|
4
4
|
|
|
5
|
-
The **Web
|
|
5
|
+
The **Web Api Class** allows you as the Partner to validate a user’s identity against the relevant Identity Authorities/Third Party databases that Smile Identity has access to using ID information provided by your customer/user (including photo for compare). It has the following public methods:
|
|
6
6
|
- submit_job
|
|
7
7
|
- get_job_status
|
|
8
8
|
|
|
9
|
-
The **ID Class** lets you performs basic KYC Services including verifying an ID number as well as retrieve a user's Personal Information. It has the following public methods:
|
|
9
|
+
The **ID Api Class** lets you performs basic KYC Services including verifying an ID number as well as retrieve a user's Personal Information. It has the following public methods:
|
|
10
10
|
- submit_job
|
|
11
11
|
|
|
12
12
|
The **Signature Class** allows you as the Partner to generate a sec key to interact with our servers. It has the following public methods:
|
|
@@ -443,13 +443,23 @@ After checking out the repo, run `bundle install` to install dependencies. Then,
|
|
|
443
443
|
|
|
444
444
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
|
445
445
|
|
|
446
|
+
You can use `bundle console` and then call the necessary classes with their parameters.
|
|
447
|
+
|
|
448
|
+
## Testing
|
|
449
|
+
|
|
450
|
+
Run `bundle exec rspec` to run the tests.
|
|
451
|
+
After running your tests open the coverage/index.html to view the test coverage
|
|
452
|
+
|
|
453
|
+
## Deployment
|
|
454
|
+
|
|
446
455
|
To release a new version:
|
|
447
456
|
- Update the version number in `version.rb`
|
|
448
457
|
- Run `gem build smile-identity-core.gemspec`
|
|
449
|
-
- Thereafter `gem push smile-identity-core
|
|
458
|
+
- Thereafter `gem push smile-identity-core-<version>.gem`.
|
|
450
459
|
|
|
451
460
|
Make sure to git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
452
461
|
|
|
462
|
+
|
|
453
463
|
## Contributing
|
|
454
464
|
|
|
455
465
|
Bug reports and pull requests are welcome on GitHub at https://github.com/smileidentity/smile-identity-core
|
|
@@ -329,7 +329,10 @@ module SmileIdentityCore
|
|
|
329
329
|
if response.success?
|
|
330
330
|
if @options[:return_job_status]
|
|
331
331
|
@utilies_connection = SmileIdentityCore::Utilities.new(@partner_id, @api_key, @sid_server)
|
|
332
|
-
|
|
332
|
+
job_response = query_job_status
|
|
333
|
+
job_response["success"] = true
|
|
334
|
+
job_response["smile_job_id"] = smile_job_id
|
|
335
|
+
return job_response
|
|
333
336
|
else
|
|
334
337
|
return {success: true, smile_job_id: smile_job_id}.to_json
|
|
335
338
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smile-identity-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ridhwana
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-01-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|