smile-identity-core 1.0.1 → 1.0.2

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: edcf68a6d2595ffaaace47ea75b7a7ef4829072f02ef7095564472261563649a
4
- data.tar.gz: e6657acf87f95de20366f5a559118bfcea6a58757bfa77a88984b083d44c2fe1
3
+ metadata.gz: 4632631c9d5d1180a47ba34c74c5fd759d888d4f2bee913a002fd011f30e2354
4
+ data.tar.gz: 4e8a6febb9f7ebf199650c79db18f4d9c65fed6a6246cbd03bf17bfc78eae50f
5
5
  SHA512:
6
- metadata.gz: bc0a67955105b33ca0cd3a287772ec3666a6fc22f1f5ae3c1a0d47f1fc2b70838b830748d7f29d14dde39bc84ce230d4d45028cd40b9c06ae8d419a39ff29654
7
- data.tar.gz: 7b4afa3dafab637388ffead740accaea4d1ba43327297ca7567a80ad180d60bbf39507e7865071275305b4e781bce1540ec484a4f5c576f3c73293283d175ef1
6
+ metadata.gz: 816929a769bc1ceb3dde1afc9957885dccf3ebb73c901b7d119277dedc64e3c59e14f2a7f1aa8304521314c262e4fa1393b3c74e562224c0b3f90ee7bcafc8a9
7
+ data.tar.gz: d6c20e2a4947ecdf24fc0eabd2d24820277c60a4dd857b3ce74bff2b465cbbbea3b9530a8380069437b5309aa8fecaa0f461e822b4d21b8656234a7739e840d1
@@ -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
@@ -12,7 +12,7 @@ GEM
12
12
  docile (1.1.5)
13
13
  ethon (0.12.0)
14
14
  ffi (>= 1.3.0)
15
- ffi (1.11.1)
15
+ ffi (1.11.3)
16
16
  json (2.2.0)
17
17
  rake (10.5.0)
18
18
  rspec (3.8.0)
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # SmileIdentityCore
2
2
 
3
- The official Smile Identity gem exposes three classes namely, the Web API and Signature class.
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 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:
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-version.gem`.
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
@@ -1,3 +1,3 @@
1
1
  module SmileIdentityCore
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -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
- return query_job_status
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.1
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: 2019-10-25 00:00:00.000000000 Z
11
+ date: 2020-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler