checkr-official 1.7 → 1.8.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.
Files changed (37) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/tests.yml +27 -0
  3. data/Changelog.md +21 -13
  4. data/README.md +1 -1
  5. data/checkr-official.gemspec +1 -1
  6. data/lib/checkr/county_criminal_search.rb +3 -0
  7. data/lib/checkr/education_verification.rb +4 -0
  8. data/lib/checkr/employment_verification.rb +4 -0
  9. data/lib/checkr/eviction_search.rb +3 -0
  10. data/lib/checkr/federal_civil_search.rb +3 -0
  11. data/lib/checkr/federal_criminal_search.rb +3 -0
  12. data/lib/checkr/global_watchlist_search.rb +3 -0
  13. data/lib/checkr/motor_vehicle_report.rb +3 -0
  14. data/lib/checkr/national_criminal_search.rb +3 -0
  15. data/lib/checkr/report.rb +10 -7
  16. data/lib/checkr/sex_offender_search.rb +3 -0
  17. data/lib/checkr/ssn_trace.rb +3 -0
  18. data/lib/checkr/state_criminal_search.rb +3 -0
  19. data/lib/checkr/util.rb +3 -1
  20. data/lib/checkr/version.rb +1 -1
  21. data/lib/checkr.rb +2 -1
  22. data/test/checkr/county_criminal_search_test.rb +32 -0
  23. data/test/checkr/education_verification_test.rb +16 -0
  24. data/test/checkr/employment_verification_test.rb +16 -0
  25. data/test/checkr/eviction_search_test.rb +12 -0
  26. data/test/checkr/federal_civil_search_test.rb +12 -0
  27. data/test/checkr/federal_criminal_search_test.rb +12 -0
  28. data/test/checkr/{global_watchlist_search.rb → global_watchlist_search_test.rb} +12 -0
  29. data/test/checkr/motor_vehicle_report_test.rb +12 -0
  30. data/test/checkr/national_criminal_search_test.rb +12 -0
  31. data/test/checkr/report_test.rb +8 -0
  32. data/test/checkr/sex_offender_search_test.rb +12 -0
  33. data/test/checkr/ssn_trace_test.rb +12 -0
  34. data/test/checkr/state_criminal_search_test.rb +12 -0
  35. data/test/test_data.rb +48 -12
  36. metadata +8 -9
  37. data/.travis.yml +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 419e5c8590cb5750264886e813b59c9ff657822c
4
- data.tar.gz: 39e5119e18ee5fae44a5860e6a1047478fd02107
2
+ SHA256:
3
+ metadata.gz: cc49b8f6bcd08fcddbfd4fa6f10480735744c4a86a6a9badf8d6cac97b76bc1f
4
+ data.tar.gz: e36a071772e61e5f472290939ed523cd6b6070686d04821e02ace4b44e673885
5
5
  SHA512:
6
- metadata.gz: de81030f52a846f734c189af6e67b158345fc9e868e0e57e47b25feeb0e5972e268062048723790a73edddb3d139fff80428a892e9aa1a10e21f33ac70bc53fa
7
- data.tar.gz: 48c1a067f7eb082670ff9d4ffcf036bc35c1f61bab9103b2a5b96c056f862ad6fbd6ed116af0f718644ad87d9f124460bcef098a06fa00db5aed5197300323e8
6
+ metadata.gz: 228cdd94c94246e58b8d2c1a9369afccafb5ed1ddb9a1d1a3b539ed513d8371e6e267b3bb65155afff75b55ab11b6d530bc80a9d3421cf72f585364e88be7afd
7
+ data.tar.gz: a096b3890d6124a9de5440baa2b292bab3422132d70f709a0f72962207b126fa7267dc4c3e52d8291cc55ea54ca0fac200e2d422438b6d8b7ea208a31b7f7516
@@ -0,0 +1,27 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - "*"
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ ruby-version: [jruby, 2.7, 2.6]
17
+
18
+ steps:
19
+ - uses: actions/checkout@v2
20
+ - name: Set up Ruby ${{ matrix.ruby-version }}
21
+ uses: ruby/setup-ruby@03b78bdda287ae04217ee12e4b64996630a03542
22
+ with:
23
+ ruby-version: ${{ matrix.ruby-version }}
24
+ - name: Install dependencies
25
+ run: bundle install
26
+ - name: Run tests
27
+ run: bundle exec rake
data/Changelog.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 1.8.0 (2023-01-24)
2
+
3
+ - Add support for the Report Lifecycle
4
+
5
+ ## 1.7.1 (2021-08-31)
6
+
7
+ - Remove usage of deprecated `URI.escape`
8
+
1
9
  ## 1.6.1 (2019-07-16)
2
10
 
3
11
  Features:
@@ -51,59 +59,59 @@ Features:
51
59
 
52
60
  Features:
53
61
 
54
- - Add Package
55
- - Add Program
62
+ - Add Package
63
+ - Add Program
56
64
 
57
65
  ## 1.2.1 (2017-10-25)
58
66
 
59
67
  Fixes:
60
68
 
61
- - Add `type` to Document (#33)
69
+ - Add `type` to Document (#33)
62
70
 
63
71
  ## 1.2.0 (2017-04-14)
64
72
 
65
73
  Features:
66
74
 
67
- - Add Invitation
75
+ - Add Invitation
68
76
 
69
77
  Fixes:
70
78
 
71
- - Add `document_ids` to Candidate
72
- - Doc links
79
+ - Add `document_ids` to Candidate
80
+ - Doc links
73
81
 
74
82
  ## 1.1.2 (2017-01-05)
75
83
 
76
84
  Fixes:
77
85
 
78
- - Gem dependencies version lock release
86
+ - Gem dependencies version lock release
79
87
 
80
88
  ## 1.1.1 (2016-03-25)
81
89
 
82
90
  Features:
83
91
 
84
- - Add support for `Candidate#no_middle_name` flag (#8)
85
- - Add Documents to Report (@sico, #12)
92
+ - Add support for `Candidate#no_middle_name` flag (#8)
93
+ - Add Documents to Report (@sico, #12)
86
94
 
87
95
  ## 1.1.0 (2016-03-03)
88
96
 
89
97
  Features:
90
98
 
91
- - Adds Candidate#save method (@squaresurf, #6)
99
+ - Adds Candidate#save method (@squaresurf, #6)
92
100
 
93
101
  ## 1.0.2 (2015-03-24)
94
102
 
95
103
  Fixes:
96
104
 
97
- - Fixed a bug - #4 - with Util.constantize
105
+ - Fixed a bug - #4 - with Util.constantize
98
106
 
99
107
  ## 1.0.1 (2015-03-24)
100
108
 
101
109
  Features:
102
110
 
103
- - Updated documents class to feel like other classes
111
+ - Updated documents class to feel like other classes
104
112
 
105
113
  ## 1.0 (2015-03-04)
106
114
 
107
115
  Features:
108
116
 
109
- - Initial release
117
+ - Initial release
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Checkr Ruby bindings [![Build Status](https://travis-ci.org/checkr/checkr-ruby.svg?branch=master)](https://travis-ci.org/checkr/checkr-ruby) [![Code Climate](https://codeclimate.com/github/checkr/checkr-ruby/badges/gpa.svg)](https://codeclimate.com/github/checkr/checkr-ruby)
1
+ # Checkr Ruby bindings [![Build Status](https://github.com/checkr/checkr-ruby/actions/workflows/tests.yml/badge.svg)](https://github.com/checkr/checkr-ruby/actions) [![Code Climate](https://codeclimate.com/github/checkr/checkr-ruby/badges/gpa.svg)](https://codeclimate.com/github/checkr/checkr-ruby)
2
2
 
3
3
 
4
4
  ## Installation
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.add_development_dependency('shoulda', '~> 3.4.0')
22
22
  s.add_development_dependency('activesupport', '~> 4.2.6')
23
23
  s.add_development_dependency('bump', '0.5.2')
24
- s.add_development_dependency('rake', '10.4.2')
24
+ s.add_development_dependency('rake', '12.3.3')
25
25
  s.add_development_dependency('test-unit')
26
26
 
27
27
  s.files = `git ls-files`.split("\n")
@@ -2,6 +2,9 @@ module Checkr
2
2
  class CountyCriminalSearch < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :cancellation_reason
7
+ attribute :cancellation_reason_description
5
8
  attribute :completed_at
6
9
  attribute :turnaround_time
7
10
  attribute :county
@@ -2,6 +2,10 @@ module Checkr
2
2
  class EducationVerification < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :cancellation_reason
7
+ attribute :cancellation_reason_description
8
+ attribute :includes_canceled
5
9
  attribute :completed_at
6
10
  attribute :turnaround_time
7
11
  attribute :records
@@ -2,6 +2,10 @@ module Checkr
2
2
  class EmploymentVerification < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :cancellation_reason
7
+ attribute :cancellation_reason_description
8
+ attribute :includes_canceled
5
9
  attribute :completed_at
6
10
  attribute :turnaround_time
7
11
  attribute :records
@@ -2,6 +2,9 @@ module Checkr
2
2
  class EvictionSearch < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :cancellation_reason
7
+ attribute :cancellation_reason_description
5
8
  attribute :completed_at
6
9
  attribute :turnaround_time
7
10
  attribute :records
@@ -2,6 +2,9 @@ module Checkr
2
2
  class FederalCivilSearch < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :cancellation_reason
7
+ attribute :cancellation_reason_description
5
8
  attribute :completed_at
6
9
  attribute :turnaround_time
7
10
  attribute :records
@@ -2,6 +2,9 @@ module Checkr
2
2
  class FederalCriminalSearch < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :cancellation_reason
7
+ attribute :cancellation_reason_description
5
8
  attribute :completed_at
6
9
  attribute :turnaround_time
7
10
  attribute :records
@@ -2,6 +2,9 @@ module Checkr
2
2
  class GlobalWatchlistSearch < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :cancellation_reason
7
+ attribute :cancellation_reason_description
5
8
  attribute :completed_at
6
9
  attribute :turnaround_time
7
10
  attribute :records
@@ -2,6 +2,9 @@ module Checkr
2
2
  class MotorVehicleReport < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :cancellation_reason
7
+ attribute :cancellation_reason_description
5
8
  attribute :completed_at
6
9
  attribute :turnaround_time
7
10
  attribute :full_name
@@ -2,6 +2,9 @@ module Checkr
2
2
  class NationalCriminalSearch < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :cancellation_reason
7
+ attribute :cancellation_reason_description
5
8
  attribute :completed_at
6
9
  attribute :turnaround_time
7
10
  attribute :records
data/lib/checkr/report.rb CHANGED
@@ -2,6 +2,8 @@ module Checkr
2
2
  class Report < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :includes_canceled
5
7
  attribute :adjudication
6
8
  attribute :values
7
9
  attribute :completed_at
@@ -11,7 +13,7 @@ module Checkr
11
13
  attribute :candidate, :Candidate
12
14
  attribute_writer_alias :candidate_id, :candidate
13
15
 
14
- attribute :adverse_items, :AdverseItemList, :nested => true, :default => {}
16
+ attribute :adverse_items, :AdverseItemList, nested: true, default: {}
15
17
  attribute_writer_alias :adverse_item_ids, :adverse_items
16
18
 
17
19
  attribute :ssn_trace, :SSNTrace
@@ -47,10 +49,10 @@ module Checkr
47
49
  attribute :documents, APIList.constructor(:Document)
48
50
  attribute_writer_alias :document_ids, :documents
49
51
 
50
- attribute :geos, APIList.constructor(:Geo), :default => {}
52
+ attribute :geos, APIList.constructor(:Geo), default: {}
51
53
  attribute_writer_alias :geo_ids, :geos
52
54
 
53
- attribute :verifications, :VerificationList, :nested => true, :default => {}
55
+ attribute :verifications, :VerificationList, nested: true, default: {}
54
56
  attribute_writer_alias :verification_ids, :verifications
55
57
 
56
58
  attribute :education_verification, :EducationVerification
@@ -59,15 +61,16 @@ module Checkr
59
61
  attribute :employment_verification, :EmploymentVerification
60
62
  attribute_writer_alias :employment_verification_id, :employment_verification
61
63
 
62
- api_class_method :retrieve, :get, ":path/:id", :arguments => [:id]
64
+ api_class_method :retrieve, :get, ':path/:id', arguments: [:id]
63
65
  api_class_method :create, :post
64
66
 
65
- api_instance_method :save, :post, :default_params => :changed_attributes
67
+ api_instance_method :save, :post, default_params: :changed_attributes
66
68
 
67
69
  def self.path
68
- "/v1/reports"
70
+ '/v1/reports'
69
71
  end
70
72
 
71
- APIClass.register_subclass(self, "report")
73
+ APIClass.register_subclass(self, 'report')
74
+
72
75
  end
73
76
  end
@@ -2,6 +2,9 @@ module Checkr
2
2
  class SexOffenderSearch < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :cancellation_reason
7
+ attribute :cancellation_reason_description
5
8
  attribute :values
6
9
  attribute :completed_at
7
10
  attribute :turnaround_time
@@ -2,6 +2,9 @@ module Checkr
2
2
  class SSNTrace < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :cancellation_reason
7
+ attribute :cancellation_reason_description
5
8
  attribute :completed_at
6
9
  attribute :turnaround_time
7
10
  attribute :ssn
@@ -2,6 +2,9 @@ module Checkr
2
2
  class StateCriminalSearch < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :result
6
+ attribute :cancellation_reason
7
+ attribute :cancellation_reason_description
5
8
  attribute :completed_at
6
9
  attribute :turnaround_time
7
10
  attribute :state
data/lib/checkr/util.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'erb'
2
+
1
3
  module Checkr
2
4
  module Util
3
5
 
@@ -38,7 +40,7 @@ module Checkr
38
40
  end
39
41
 
40
42
  def self.escape(val)
41
- URI.escape(val.to_s, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))
43
+ ERB::Util.url_encode(val.to_s)
42
44
  end
43
45
 
44
46
  def self.symbolize_keys(obj)
@@ -1,3 +1,3 @@
1
1
  module Checkr
2
- VERSION = '1.7'.freeze
2
+ VERSION = '1.8.0'.freeze
3
3
  end
data/lib/checkr.rb CHANGED
@@ -77,7 +77,8 @@ module Checkr
77
77
 
78
78
  if [:get, :head, :delete].include?(method.to_s.downcase.to_sym)
79
79
  unless params.empty?
80
- url += URI.parse(url).query ? '&' : '?' + Util.query_string(params)
80
+ url += URI.parse(url).query ? '&' : '?'
81
+ url += Util.query_string(params)
81
82
  end
82
83
  params = nil
83
84
  end
@@ -47,6 +47,18 @@ module Checkr
47
47
  assert_equal(test_county_criminal_search[:status], @county_criminal_search.status)
48
48
  end
49
49
 
50
+ should 'have the result attribute' do
51
+ assert_equal(test_county_criminal_search[:result], @county_criminal_search.result)
52
+ end
53
+
54
+ should 'have the cancellation_reason attribute' do
55
+ assert_equal(test_county_criminal_search[:cancellation_reason], @county_criminal_search.cancellation_reason)
56
+ end
57
+
58
+ should 'have the cancellation_reason_description attribute' do
59
+ assert_equal(test_county_criminal_search[:cancellation_reason_description], @county_criminal_search.cancellation_reason_description)
60
+ end
61
+
50
62
  should 'have the created_at attribute' do
51
63
  assert_equal(test_county_criminal_search[:created_at], @county_criminal_search.created_at)
52
64
  end
@@ -73,6 +85,26 @@ module Checkr
73
85
 
74
86
  end
75
87
 
88
+ context 'have cancellation reasons' do
89
+ setup do
90
+ @mock.expects(:get).once.returns(test_response(test_county_criminal_search.merge(
91
+ {
92
+ status: 'canceled',
93
+ result: nil,
94
+ cancellation_reason: 'complete_now_customer_requested',
95
+ cancellation_reason_description: 'Customer requested Complete Now prior to screening completion',
96
+ })))
97
+ @county_criminal_search = CountyCriminalSearch.retrieve('county_criminal_search_id')
98
+ end
99
+
100
+ should 'have the correct attribute' do
101
+ assert_equal(@county_criminal_search.status, 'canceled')
102
+ assert_equal(@county_criminal_search.result, nil)
103
+ assert_equal(@county_criminal_search.cancellation_reason, 'complete_now_customer_requested')
104
+ assert_equal(@county_criminal_search.cancellation_reason_description, 'Customer requested Complete Now prior to screening completion')
105
+ end
106
+ end
107
+
76
108
  should 'be registered' do
77
109
  assert(APIClass.subclasses.include?(CountyCriminalSearch))
78
110
  assert_equal(CountyCriminalSearch, APIClass.subclass_fetch("county_criminal_search"))
@@ -51,6 +51,22 @@ module Checkr
51
51
  assert_equal(test_education_verification[:status], @education_verification.status)
52
52
  end
53
53
 
54
+ should 'have the result attribute' do
55
+ assert_equal(test_education_verification[:result], @education_verification.result)
56
+ end
57
+
58
+ should 'have the cancellation_reason attribute' do
59
+ assert_equal(test_education_verification[:cancellation_reason], @education_verification.cancellation_reason)
60
+ end
61
+
62
+ should 'have the cancellation_reason_description attribute' do
63
+ assert_equal(test_education_verification[:cancellation_reason_description], @education_verification.cancellation_reason_description)
64
+ end
65
+
66
+ should 'have the includes_canceled attribute' do
67
+ assert_equal(test_education_verification[:includes_canceled], @education_verification.includes_canceled)
68
+ end
69
+
54
70
  should 'have the created_at attribute' do
55
71
  assert_equal(test_education_verification[:created_at],
56
72
  @education_verification.created_at)
@@ -51,6 +51,22 @@ module Checkr
51
51
  assert_equal(test_employment_verification[:status], @employment_verification.status)
52
52
  end
53
53
 
54
+ should 'have the result attribute' do
55
+ assert_equal(test_employment_verification[:result], @employment_verification.result)
56
+ end
57
+
58
+ should 'have the cancellation_reason attribute' do
59
+ assert_equal(test_employment_verification[:cancellation_reason], @employment_verification.cancellation_reason)
60
+ end
61
+
62
+ should 'have the cancellation_reason_description attribute' do
63
+ assert_equal(test_employment_verification[:cancellation_reason_description], @employment_verification.cancellation_reason_description)
64
+ end
65
+
66
+ should 'have the includes_canceled attribute' do
67
+ assert_equal(test_employment_verification[:includes_canceled], @employment_verification.includes_canceled)
68
+ end
69
+
54
70
  should 'have the created_at attribute' do
55
71
  assert_equal(test_employment_verification[:created_at],
56
72
  @employment_verification.created_at)
@@ -47,6 +47,18 @@ module Checkr
47
47
  assert_equal(test_eviction_search[:status], @eviction_search.status)
48
48
  end
49
49
 
50
+ should 'have the result attribute' do
51
+ assert_equal(test_eviction_search[:result], @eviction_search.result)
52
+ end
53
+
54
+ should 'have the cancellation_reason attribute' do
55
+ assert_equal(test_eviction_search[:cancellation_reason], @eviction_search.cancellation_reason)
56
+ end
57
+
58
+ should 'have the cancellation_reason_description attribute' do
59
+ assert_equal(test_eviction_search[:cancellation_reason_description], @eviction_search.cancellation_reason_description)
60
+ end
61
+
50
62
  should 'have the created_at attribute' do
51
63
  assert_equal(test_eviction_search[:created_at], @eviction_search.created_at)
52
64
  end
@@ -47,6 +47,18 @@ module Checkr
47
47
  assert_equal(test_federal_civil_search[:status], @federal_civil_search.status)
48
48
  end
49
49
 
50
+ should 'have the result attribute' do
51
+ assert_equal(test_federal_civil_search[:result], @federal_civil_search.result)
52
+ end
53
+
54
+ should 'have the cancellation_reason attribute' do
55
+ assert_equal(test_federal_civil_search[:cancellation_reason], @federal_civil_search.cancellation_reason)
56
+ end
57
+
58
+ should 'have the cancellation_reason_description attribute' do
59
+ assert_equal(test_federal_civil_search[:cancellation_reason_description], @federal_civil_search.cancellation_reason_description)
60
+ end
61
+
50
62
  should 'have the created_at attribute' do
51
63
  assert_equal(test_federal_civil_search[:created_at], @federal_civil_search.created_at)
52
64
  end
@@ -47,6 +47,18 @@ module Checkr
47
47
  assert_equal(test_federal_criminal_search[:status], @federal_criminal_search.status)
48
48
  end
49
49
 
50
+ should 'have the result attribute' do
51
+ assert_equal(test_federal_criminal_search[:result], @federal_criminal_search.result)
52
+ end
53
+
54
+ should 'have the cancellation_reason attribute' do
55
+ assert_equal(test_federal_criminal_search[:cancellation_reason], @federal_criminal_search.cancellation_reason)
56
+ end
57
+
58
+ should 'have the cancellation_reason_description attribute' do
59
+ assert_equal(test_federal_criminal_search[:cancellation_reason_description], @federal_criminal_search.cancellation_reason_description)
60
+ end
61
+
50
62
  should 'have the created_at attribute' do
51
63
  assert_equal(test_federal_criminal_search[:created_at], @federal_criminal_search.created_at)
52
64
  end
@@ -47,6 +47,18 @@ module Checkr
47
47
  assert_equal(test_global_watchlist_search[:status], @global_watchlist_search.status)
48
48
  end
49
49
 
50
+ should 'have the result attribute' do
51
+ assert_equal(test_global_watchlist_search[:result], @global_watchlist_search.result)
52
+ end
53
+
54
+ should 'have the cancellation_reason attribute' do
55
+ assert_equal(test_global_watchlist_search[:cancellation_reason], @global_watchlist_search.cancellation_reason)
56
+ end
57
+
58
+ should 'have the cancellation_reason_description attribute' do
59
+ assert_equal(test_global_watchlist_search[:cancellation_reason_description], @global_watchlist_search.cancellation_reason_description)
60
+ end
61
+
50
62
  should 'have the created_at attribute' do
51
63
  assert_equal(test_global_watchlist_search[:created_at], @global_watchlist_search.created_at)
52
64
  end
@@ -47,6 +47,18 @@ module Checkr
47
47
  assert_equal(test_motor_vehicle_report[:status], @motor_vehicle_report.status)
48
48
  end
49
49
 
50
+ should 'have the result attribute' do
51
+ assert_equal(test_motor_vehicle_report[:result], @motor_vehicle_report.result)
52
+ end
53
+
54
+ should 'have the cancellation_reason attribute' do
55
+ assert_equal(test_motor_vehicle_report[:cancellation_reason], @motor_vehicle_report.cancellation_reason)
56
+ end
57
+
58
+ should 'have the cancellation_reason_description attribute' do
59
+ assert_equal(test_motor_vehicle_report[:cancellation_reason_description], @motor_vehicle_report.cancellation_reason_description)
60
+ end
61
+
50
62
  should 'have the created_at attribute' do
51
63
  assert_equal(test_motor_vehicle_report[:created_at], @motor_vehicle_report.created_at)
52
64
  end
@@ -47,6 +47,18 @@ module Checkr
47
47
  assert_equal(test_national_criminal_search[:status], @national_criminal_search.status)
48
48
  end
49
49
 
50
+ should 'have the result attribute' do
51
+ assert_equal(test_national_criminal_search[:result], @national_criminal_search.result)
52
+ end
53
+
54
+ should 'have the cancellation_reason attribute' do
55
+ assert_equal(test_national_criminal_search[:cancellation_reason], @national_criminal_search.cancellation_reason)
56
+ end
57
+
58
+ should 'have the cancellation_reason_description attribute' do
59
+ assert_equal(test_national_criminal_search[:cancellation_reason_description], @national_criminal_search.cancellation_reason_description)
60
+ end
61
+
50
62
  should 'have the created_at attribute' do
51
63
  assert_equal(test_national_criminal_search[:created_at], @national_criminal_search.created_at)
52
64
  end
@@ -67,6 +67,14 @@ module Checkr
67
67
  assert_equal(test_report[:status], @report.status)
68
68
  end
69
69
 
70
+ should 'have the result attribute' do
71
+ assert_equal(test_report[:result], @report.result)
72
+ end
73
+
74
+ should 'have the includes_canceled attribute' do
75
+ assert_equal(test_report[:includes_canceled], @report.includes_canceled)
76
+ end
77
+
70
78
  should 'have the adjudication attribute' do
71
79
  assert_equal(test_report[:adjudication], @report.adjudication)
72
80
  end
@@ -47,6 +47,18 @@ module Checkr
47
47
  assert_equal(test_sex_offender_search[:status], @sex_offender_search.status)
48
48
  end
49
49
 
50
+ should 'have the result attribute' do
51
+ assert_equal(test_sex_offender_search[:result], @sex_offender_search.result)
52
+ end
53
+
54
+ should 'have the cancellation_reason attribute' do
55
+ assert_equal(test_sex_offender_search[:cancellation_reason], @sex_offender_search.cancellation_reason)
56
+ end
57
+
58
+ should 'have the cancellation_reason_description attribute' do
59
+ assert_equal(test_sex_offender_search[:cancellation_reason_description], @sex_offender_search.cancellation_reason_description)
60
+ end
61
+
50
62
  should 'have the created_at attribute' do
51
63
  assert_equal(test_sex_offender_search[:created_at], @sex_offender_search.created_at)
52
64
  end
@@ -47,6 +47,18 @@ module Checkr
47
47
  assert_equal(test_ssn_trace[:status], @ssn_trace.status)
48
48
  end
49
49
 
50
+ should 'have the result attribute' do
51
+ assert_equal(test_ssn_trace[:result], @ssn_trace.result)
52
+ end
53
+
54
+ should 'have the cancellation_reason attribute' do
55
+ assert_equal(test_ssn_trace[:cancellation_reason], @ssn_trace.cancellation_reason)
56
+ end
57
+
58
+ should 'have the cancellation_reason_description attribute' do
59
+ assert_equal(test_ssn_trace[:cancellation_reason_description], @ssn_trace.cancellation_reason_description)
60
+ end
61
+
50
62
  should 'have the created_at attribute' do
51
63
  assert_equal(test_ssn_trace[:created_at], @ssn_trace.created_at)
52
64
  end
@@ -51,6 +51,18 @@ module Checkr
51
51
  assert_equal(test_state_criminal_search[:status], @state_criminal_search.status)
52
52
  end
53
53
 
54
+ should 'have the result attribute' do
55
+ assert_equal(test_state_criminal_search[:result], @state_criminal_search.result)
56
+ end
57
+
58
+ should 'have the cancellation_reason attribute' do
59
+ assert_equal(test_state_criminal_search[:cancellation_reason], @state_criminal_search.cancellation_reason)
60
+ end
61
+
62
+ should 'have the cancellation_reason_description attribute' do
63
+ assert_equal(test_state_criminal_search[:cancellation_reason_description], @state_criminal_search.cancellation_reason_description)
64
+ end
65
+
54
66
  should 'have the created_at attribute' do
55
67
  assert_equal(test_state_criminal_search[:created_at], @state_criminal_search.created_at)
56
68
  end
data/test/test_data.rb CHANGED
@@ -76,7 +76,8 @@ module Checkr
76
76
  {:id=>"4722c07dd9a10c3985ae432a",
77
77
  :object=>"report",
78
78
  :uri=>"/v1/reports/4722c07dd9a10c3985ae432a",
79
- :status=>"clear",
79
+ :status=>"complete",
80
+ :result=>"clear",
80
81
  :adjudication=>nil,
81
82
  :created_at=>"2014-01-18T12:34:00Z",
82
83
  :completed_at=>"2014-01-18T12:35:30Z",
@@ -176,7 +177,10 @@ module Checkr
176
177
  {:id=>"539fd88c101897f7cd000001",
177
178
  :object=>"ssn_trace",
178
179
  :uri=>"/v1/ssn_traces/539fd88c101897f7cd000001",
179
- :status=>"clear",
180
+ :status=>"complete",
181
+ :result=>nil,
182
+ :cancellation_reason=>nil,
183
+ :cancellation_reason_description=>nil,
180
184
  :created_at=>"2014-01-18T12:34:00Z",
181
185
  :completed_at=>"2014-01-18T12:35:30Z",
182
186
  :turnaround_time=>90,
@@ -204,7 +208,10 @@ module Checkr
204
208
  {:id=>"539fd88c101897f7cd000008",
205
209
  :object=>"sex_offender_search",
206
210
  :uri=>"/v1/sex_offender_searches/539fd88c101897f7cd000008",
207
- :status=>"consider",
211
+ :status=>"complete",
212
+ :result=>"consider",
213
+ :cancellation_reason=>nil,
214
+ :cancellation_reason_description=>nil,
208
215
  :created_at=>"2014-01-18T12:34:00Z",
209
216
  :completed_at=>"2014-01-18T12:35:30Z",
210
217
  :turnaround_time=>90,
@@ -238,7 +245,10 @@ module Checkr
238
245
  {:id=>"539fd88c101897f7cd000008",
239
246
  :object=>"global_watchlist_search",
240
247
  :uri=>"/v1/global_watchlist_searches/539fd88c101897f7cd000008",
241
- :status=>"consider",
248
+ :status=>"complete",
249
+ :result=>"consider",
250
+ :cancellation_reason=>nil,
251
+ :cancellation_reason_description=>nil,
242
252
  :created_at=>"2014-01-18T12:34:00Z",
243
253
  :completed_at=>"2014-01-18T12:35:30Z",
244
254
  :turnaround_time=>90,
@@ -271,7 +281,10 @@ module Checkr
271
281
 
272
282
  def test_federal_criminal_search
273
283
  {
274
- :status=>"clear",
284
+ :status=>"complete",
285
+ :result=>"clear",
286
+ :cancellation_reason=>nil,
287
+ :cancellation_reason_description=>nil,
275
288
  :completed_at=>"2018-04-27T05:21:18Z",
276
289
  :turnaround_time=>144.912,
277
290
  :records=>[],
@@ -284,7 +297,10 @@ module Checkr
284
297
 
285
298
  def test_federal_civil_search
286
299
  {
287
- :status=>"consider",
300
+ :status=>"complete",
301
+ :result=>"consider",
302
+ :cancellation_reason=>nil,
303
+ :cancellation_reason_description=>nil,
288
304
  :completed_at=>"2018-04-27T05:23:12Z",
289
305
  :turnaround_time=>271.332,
290
306
  :records=>[
@@ -312,7 +328,10 @@ module Checkr
312
328
  {:id=>"539fd88c101897f7cd000006",
313
329
  :object=>"national_criminal_search",
314
330
  :uri=>"/v1/national_criminal_searches/539fd88c101897f7cd000006",
315
- :status=>"consider",
331
+ :status=>"complete",
332
+ :result=>"consider",
333
+ :cancellation_reason=>nil,
334
+ :cancellation_reason_description=>nil,
316
335
  :created_at=>"2014-01-18T12:34:00Z",
317
336
  :completed_at=>"2014-01-18T12:35:30Z",
318
337
  :turnaround_time=>90,
@@ -347,7 +366,10 @@ module Checkr
347
366
  {:id=>"539fdcf335644a0ef4000001",
348
367
  :object=>"county_criminal_search",
349
368
  :uri=>"/v1/county_criminal_searches/539fdcf335644a0ef4000001",
350
- :status=>"consider",
369
+ :status=>"complete",
370
+ :result=>"consider",
371
+ :cancellation_reason=>"complete_now_customer_requested",
372
+ :cancellation_reason_description=>" Customer requested Complete Now prior to screening completion",
351
373
  :created_at=>"2014-01-18T12:34:00Z",
352
374
  :completed_at=>"2014-01-18T12:35:30Z",
353
375
  :turnaround_time=>100800,
@@ -415,7 +437,10 @@ module Checkr
415
437
  {:id=>"539fd88c101897f7cd000007",
416
438
  :object=>"motor_vehicle_report",
417
439
  :uri=>"/v1/motor_vehicle_reports/539fd88c101897f7cd000007",
418
- :status=>"consider",
440
+ :status=>"complete",
441
+ :result => "consider",
442
+ :cancellation_reason => nil,
443
+ :cancellation_reason_description => nil,
419
444
  :created_at=>"2014-01-18T12:34:00Z",
420
445
  :completed_at=>"2014-01-18T12:35:30Z",
421
446
  :turnaround_time=>90,
@@ -480,7 +505,10 @@ module Checkr
480
505
  { :id => "539fd88c101897f7cd000008",
481
506
  :object => "eviction",
482
507
  :uri => "/v1/evictions/539fd88c101897f7cd000008",
483
- :status => "consider",
508
+ :status => "complete",
509
+ :result=>"consider",
510
+ :cancellation_reason=>nil,
511
+ :cancellation_reason_description=>nil,
484
512
  :created_at => "2014-01-18T12:34:00Z",
485
513
  :completed_at => "2014-01-18T12:35:30Z",
486
514
  :turnaround_time => 90,
@@ -581,7 +609,11 @@ module Checkr
581
609
  {:id => "5af5e030d24297006cce1e06",
582
610
  :object => "education_verification",
583
611
  :uri => "/v1/education_verifications/5af5e030d24297006cce1e06",
584
- :status => "consider",
612
+ :status => "complete",
613
+ :result=>"consider",
614
+ :cancellation_reason=>nil,
615
+ :cancellation_reason_description=>nil,
616
+ :includes_canceled=>false,
585
617
  :created_at => "2018-05-11T18:25:52Z",
586
618
  :completed_at => "2018-05-11T18:26:04Z",
587
619
  :turnaround_time => 12,
@@ -592,7 +624,11 @@ module Checkr
592
624
  { id: "5cd42657682ee80028cece4c",
593
625
  object: "employment_verification",
594
626
  uri: "/v1/employment_verifications/5cd42657682ee80028cece4c",
595
- status: "clear",
627
+ status: "complete",
628
+ result: "clear",
629
+ cancellation_reason: nil,
630
+ cancellation_reason_description: nil,
631
+ includes_canceled: false,
596
632
  created_at: "2019-05-09T13:08:39Z",
597
633
  completed_at: "2019-05-13T12:50:47Z",
598
634
  turnaround_time: 344528,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkr-official
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.7'
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Checkr Engineering Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-16 00:00:00.000000000 Z
11
+ date: 2023-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 10.4.2
103
+ version: 12.3.3
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 10.4.2
110
+ version: 12.3.3
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: test-unit
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -132,9 +132,9 @@ executables:
132
132
  extensions: []
133
133
  extra_rdoc_files: []
134
134
  files:
135
+ - ".github/workflows/tests.yml"
135
136
  - ".gitignore"
136
137
  - ".rubocop.yml"
137
- - ".travis.yml"
138
138
  - Changelog.md
139
139
  - Gemfile
140
140
  - LICENSE
@@ -216,7 +216,7 @@ files:
216
216
  - test/checkr/federal_civil_search_test.rb
217
217
  - test/checkr/federal_criminal_search_test.rb
218
218
  - test/checkr/geo_test.rb
219
- - test/checkr/global_watchlist_search.rb
219
+ - test/checkr/global_watchlist_search_test.rb
220
220
  - test/checkr/invitation_test.rb
221
221
  - test/checkr/motor_vehicle_report_test.rb
222
222
  - test/checkr/national_criminal_search_test.rb
@@ -253,8 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  - !ruby/object:Gem::Version
254
254
  version: '0'
255
255
  requirements: []
256
- rubyforge_project:
257
- rubygems_version: 2.5.2.3
256
+ rubygems_version: 3.0.3.1
258
257
  signing_key:
259
258
  specification_version: 4
260
259
  summary: Ruby bindings for Checkr API
@@ -276,7 +275,7 @@ test_files:
276
275
  - test/checkr/federal_civil_search_test.rb
277
276
  - test/checkr/federal_criminal_search_test.rb
278
277
  - test/checkr/geo_test.rb
279
- - test/checkr/global_watchlist_search.rb
278
+ - test/checkr/global_watchlist_search_test.rb
280
279
  - test/checkr/invitation_test.rb
281
280
  - test/checkr/motor_vehicle_report_test.rb
282
281
  - test/checkr/national_criminal_search_test.rb
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2
4
- - 2.3
5
- - 2.4
6
- - 2.5
7
- - jruby