checkr-official 1.5.2 → 1.5.3
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 +21 -0
- data/lib/checkr/eviction_search.rb +1 -1
- data/lib/checkr/report.rb +3 -0
- data/lib/checkr/subscription.rb +1 -0
- data/lib/checkr/version.rb +1 -1
- data/test/checkr/eviction_search_test.rb +1 -1
- data/test/checkr/report_test.rb +5 -0
- data/test/checkr/subscription_test.rb +11 -0
- data/test/test_data.rb +9 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11baecc2701fe8183773014e0e0ca9f742927b18
|
4
|
+
data.tar.gz: 37d162612fedee47d704685bd1ffbba10687bc73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 719b7d97e082cf7ef6c3c1e5eee60effacd1ccbd4443c315ff5818f8db5d842e419cdec1fc18dd13ef6e5000bf650ee92e79654513b18fd3d4c8e949a91b7363
|
7
|
+
data.tar.gz: f3cb6255a0affca7bd97668a636b138a13ad1327a7711149c49787b00d90e118d1c9bd05a6275209c79d52e2d4a0dc764ece24aa841e71331f8a64bd701c1e68
|
data/Changelog.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
## v1.5.3 (2018-11-28)
|
2
|
+
|
3
|
+
- Add geos to Report
|
4
|
+
|
5
|
+
## v1.5.2 (2018-09-25)
|
6
|
+
|
7
|
+
Features:
|
8
|
+
|
9
|
+
- Add Subscription List
|
10
|
+
|
11
|
+
Fixes:
|
12
|
+
|
13
|
+
- Fix API endpoint for Eviction Search
|
14
|
+
|
15
|
+
## v1.5.1 (2018-04-27)
|
16
|
+
|
17
|
+
Features:
|
18
|
+
|
19
|
+
- Add FederalCivilSearch
|
20
|
+
- Add FederalCriminalSearch
|
21
|
+
|
1
22
|
## v1.5.0 (2018-02-2)
|
2
23
|
|
3
24
|
Features:
|
data/lib/checkr/report.rb
CHANGED
@@ -41,6 +41,9 @@ module Checkr
|
|
41
41
|
attribute :documents, APIList.constructor(:Document)
|
42
42
|
attribute_writer_alias :document_ids, :documents
|
43
43
|
|
44
|
+
attribute :geos, APIList.constructor(:Geo), :default => {}
|
45
|
+
attribute_writer_alias :geo_ids, :geos
|
46
|
+
|
44
47
|
attribute :verifications, :VerificationList, :nested => true, :default => {}
|
45
48
|
attribute_writer_alias :verification_ids, :verifications
|
46
49
|
|
data/lib/checkr/subscription.rb
CHANGED
@@ -13,6 +13,7 @@ module Checkr
|
|
13
13
|
attribute :candidate, :Candidate
|
14
14
|
attribute_writer_alias :candidate_id, :candidate
|
15
15
|
|
16
|
+
api_class_method :all, :get, :constructor => APIList.constructor(:Subscription)
|
16
17
|
api_class_method :retrieve, :get, ":path/:id", :arguments => [:id]
|
17
18
|
api_class_method :create, :post
|
18
19
|
|
data/lib/checkr/version.rb
CHANGED
@@ -3,7 +3,7 @@ require File.expand_path('../../test_helper', __FILE__)
|
|
3
3
|
module Checkr
|
4
4
|
class EvictionSearchTest < Test::Unit::TestCase
|
5
5
|
setup do
|
6
|
-
@eviction_search_url = "#{Checkr.api_base}/v1/
|
6
|
+
@eviction_search_url = "#{Checkr.api_base}/v1/eviction_searches"
|
7
7
|
end
|
8
8
|
|
9
9
|
context 'EvictionSearch class' do
|
data/test/checkr/report_test.rb
CHANGED
@@ -122,6 +122,11 @@ module Checkr
|
|
122
122
|
assert(@report.documents.is_a?(APIList))
|
123
123
|
end
|
124
124
|
|
125
|
+
should "have the geos attribute" do
|
126
|
+
assert_equal(test_report[:geo_ids], @report.geos.json)
|
127
|
+
assert(@report.geos.is_a?(APIList))
|
128
|
+
end
|
129
|
+
|
125
130
|
should 'have the motor_vehicle_report_id attribute' do
|
126
131
|
assert_equal(test_report[:motor_vehicle_report_id], @report.motor_vehicle_report.id)
|
127
132
|
assert(@report.motor_vehicle_report.is_a?(MotorVehicleReport))
|
@@ -20,6 +20,17 @@ module Checkr
|
|
20
20
|
assert(subscription.is_a?(Subscription))
|
21
21
|
assert_equal(test_subscription[:id], subscription.id)
|
22
22
|
end
|
23
|
+
|
24
|
+
should 'be listable' do
|
25
|
+
@mock.expects(:get).once.returns(test_response(test_subscription_list))
|
26
|
+
|
27
|
+
subscriptions = Subscription.all
|
28
|
+
|
29
|
+
assert(subscriptions.is_a?(APIList))
|
30
|
+
subscriptions.each do |subscription|
|
31
|
+
assert(subscription.is_a?(Subscription))
|
32
|
+
end
|
33
|
+
end
|
23
34
|
end
|
24
35
|
|
25
36
|
context 'Subscription instance' do
|
data/test/test_data.rb
CHANGED
@@ -91,7 +91,8 @@ module Checkr
|
|
91
91
|
["539fdcf335644a0ef4000001", "532e71cfe88a1d4e8d00000i"],
|
92
92
|
:motor_vehicle_report_id=>"539fd88c101897f7cd000007",
|
93
93
|
:eviction_search_id=>"539fd88c101897f7cd000008",
|
94
|
-
:document_ids => ["4722c07dd9a10c3985ae432a"]
|
94
|
+
:document_ids => ["4722c07dd9a10c3985ae432a"],
|
95
|
+
:geo_ids => ["e44aa283528e6fde7d542194"]
|
95
96
|
}
|
96
97
|
end
|
97
98
|
|
@@ -116,6 +117,13 @@ module Checkr
|
|
116
117
|
:candidate_id=>"e44aa283528e6fde7d542194"}
|
117
118
|
end
|
118
119
|
|
120
|
+
def test_subscription_list
|
121
|
+
{
|
122
|
+
:object => 'list',
|
123
|
+
:data => [test_subscription, test_subscription, test_subscription]
|
124
|
+
}
|
125
|
+
end
|
126
|
+
|
119
127
|
def test_geo
|
120
128
|
{:id=>"e44aa283528e6fde7d542194",
|
121
129
|
:object=>"geo",
|
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.5.
|
4
|
+
version: 1.5.3
|
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: 2018-
|
11
|
+
date: 2018-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
241
|
version: '0'
|
242
242
|
requirements: []
|
243
243
|
rubyforge_project:
|
244
|
-
rubygems_version: 2.
|
244
|
+
rubygems_version: 2.5.2.3
|
245
245
|
signing_key:
|
246
246
|
specification_version: 4
|
247
247
|
summary: Ruby bindings for Checkr API
|