checkr-official 1.7.1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/tests.yml +27 -0
  3. data/Changelog.md +19 -14
  4. data/README.md +1 -1
  5. data/bin/release +2 -2
  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/version.rb +1 -1
  20. data/lib/checkr.rb +2 -1
  21. data/test/checkr/county_criminal_search_test.rb +32 -0
  22. data/test/checkr/education_verification_test.rb +16 -0
  23. data/test/checkr/employment_verification_test.rb +16 -0
  24. data/test/checkr/eviction_search_test.rb +12 -0
  25. data/test/checkr/federal_civil_search_test.rb +12 -0
  26. data/test/checkr/federal_criminal_search_test.rb +12 -0
  27. data/test/checkr/{global_watchlist_search.rb → global_watchlist_search_test.rb} +12 -0
  28. data/test/checkr/motor_vehicle_report_test.rb +12 -0
  29. data/test/checkr/national_criminal_search_test.rb +12 -0
  30. data/test/checkr/report_test.rb +8 -0
  31. data/test/checkr/sex_offender_search_test.rb +12 -0
  32. data/test/checkr/ssn_trace_test.rb +12 -0
  33. data/test/checkr/state_criminal_search_test.rb +12 -0
  34. data/test/test_data.rb +48 -12
  35. metadata +9 -9
  36. data/.travis.yml +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0ee6cb8b70cdb9316063b99aac65380b7e41d52a06d6a48c8843993c2570b9f
4
- data.tar.gz: c4d091feae1158ea8656a2119fe0833da5088663a3cc276f4b33765546bc291f
3
+ metadata.gz: cc49b8f6bcd08fcddbfd4fa6f10480735744c4a86a6a9badf8d6cac97b76bc1f
4
+ data.tar.gz: e36a071772e61e5f472290939ed523cd6b6070686d04821e02ace4b44e673885
5
5
  SHA512:
6
- metadata.gz: e0893885361a9e8e647e57c91cdb7861184af8aceb9eaeeaf721e96536d0f1a76240e0ed5d1fe39268298094ae37d6e4a2089de720bf1e448a034026e22328e8
7
- data.tar.gz: ca30bce1ec02e0f9c5dc0a0366c6bded136d48da334c5ff38e4e1f44cea2b6586a92fdcc068e14908cd9f7615624c1cc805d0ddef2faea2e63448c261ffee1d4
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,5 +1,10 @@
1
+ ## 1.8.0 (2023-01-24)
2
+
3
+ - Add support for the Report Lifecycle
4
+
1
5
  ## 1.7.1 (2021-08-31)
2
- * Remove usage of deprecated `URI.escape`
6
+
7
+ - Remove usage of deprecated `URI.escape`
3
8
 
4
9
  ## 1.6.1 (2019-07-16)
5
10
 
@@ -54,59 +59,59 @@ Features:
54
59
 
55
60
  Features:
56
61
 
57
- - Add Package
58
- - Add Program
62
+ - Add Package
63
+ - Add Program
59
64
 
60
65
  ## 1.2.1 (2017-10-25)
61
66
 
62
67
  Fixes:
63
68
 
64
- - Add `type` to Document (#33)
69
+ - Add `type` to Document (#33)
65
70
 
66
71
  ## 1.2.0 (2017-04-14)
67
72
 
68
73
  Features:
69
74
 
70
- - Add Invitation
75
+ - Add Invitation
71
76
 
72
77
  Fixes:
73
78
 
74
- - Add `document_ids` to Candidate
75
- - Doc links
79
+ - Add `document_ids` to Candidate
80
+ - Doc links
76
81
 
77
82
  ## 1.1.2 (2017-01-05)
78
83
 
79
84
  Fixes:
80
85
 
81
- - Gem dependencies version lock release
86
+ - Gem dependencies version lock release
82
87
 
83
88
  ## 1.1.1 (2016-03-25)
84
89
 
85
90
  Features:
86
91
 
87
- - Add support for `Candidate#no_middle_name` flag (#8)
88
- - Add Documents to Report (@sico, #12)
92
+ - Add support for `Candidate#no_middle_name` flag (#8)
93
+ - Add Documents to Report (@sico, #12)
89
94
 
90
95
  ## 1.1.0 (2016-03-03)
91
96
 
92
97
  Features:
93
98
 
94
- - Adds Candidate#save method (@squaresurf, #6)
99
+ - Adds Candidate#save method (@squaresurf, #6)
95
100
 
96
101
  ## 1.0.2 (2015-03-24)
97
102
 
98
103
  Fixes:
99
104
 
100
- - Fixed a bug - #4 - with Util.constantize
105
+ - Fixed a bug - #4 - with Util.constantize
101
106
 
102
107
  ## 1.0.1 (2015-03-24)
103
108
 
104
109
  Features:
105
110
 
106
- - Updated documents class to feel like other classes
111
+ - Updated documents class to feel like other classes
107
112
 
108
113
  ## 1.0 (2015-03-04)
109
114
 
110
115
  Features:
111
116
 
112
- - 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
data/bin/release CHANGED
@@ -13,6 +13,6 @@ version="$(gem build *.gemspec | grep Version: | awk '{print $2}')"
13
13
  [ -n "$version" ] || (echo "Version needs to be a number" && exit 1)
14
14
 
15
15
  echo $version
16
- #git tag "v$version"
17
- #git push origin "v$version"
16
+ git tag "v$version"
17
+ git push origin "v$version"
18
18
  gem push *-${version}.gem
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Checkr
2
- VERSION = '1.7.1'.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.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Checkr Engineering Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-31 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
@@ -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
@@ -238,7 +238,7 @@ homepage: https://checkr.com/
238
238
  licenses:
239
239
  - Apache-2.0
240
240
  metadata: {}
241
- post_install_message:
241
+ post_install_message:
242
242
  rdoc_options: []
243
243
  require_paths:
244
244
  - lib
@@ -253,8 +253,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  - !ruby/object:Gem::Version
254
254
  version: '0'
255
255
  requirements: []
256
- rubygems_version: 3.0.3
257
- signing_key:
256
+ rubygems_version: 3.0.3.1
257
+ signing_key:
258
258
  specification_version: 4
259
259
  summary: Ruby bindings for Checkr API
260
260
  test_files:
@@ -275,7 +275,7 @@ test_files:
275
275
  - test/checkr/federal_civil_search_test.rb
276
276
  - test/checkr/federal_criminal_search_test.rb
277
277
  - test/checkr/geo_test.rb
278
- - test/checkr/global_watchlist_search.rb
278
+ - test/checkr/global_watchlist_search_test.rb
279
279
  - test/checkr/invitation_test.rb
280
280
  - test/checkr/motor_vehicle_report_test.rb
281
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