checkr-official 1.1.1 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05122b0f135beeaef36db1371f366ac6ba8ace4c
4
- data.tar.gz: 3708c77b5b78efecb89429907bbb372b452a950b
3
+ metadata.gz: e160c7bd357550623cb71709142c66b23920d645
4
+ data.tar.gz: 5be13eaea8677719e1932ae6fa0248cdbf3a3b33
5
5
  SHA512:
6
- metadata.gz: 1f23b4967c974ae7baa323da5c7b4bfb09f626b0af1502e17de06b2a743340b97bab49e4e93af2433fd127b234014df7d4604258051570327e19311ad103ebc7
7
- data.tar.gz: ecc289b6901be4739c8fab80050d79356f61f899507090c982371bd02e6c1f758e037e4e2185efe7f0953c59be1ed0d2fe88c19f7f044ca6f5d18ea5fe305181
6
+ metadata.gz: d13cfed1b9ae41f54f219b3f9be54599917369dd78a0a8f4763b33b8c14a5fdc13aa375015a4156be82d929f1372f74fc304dab015779d23d36c671aed433e0d
7
+ data.tar.gz: 3d3fca9ae636b4eaed8fc06334d20f282be60aeecd3c0b3c5020ae220c05d02ea00fb0caec979aa402d08befcbed7ad6923339a81d72d727a6aed89661e761ef
data/Changelog.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.1.2 (2017-01-05)
2
+
3
+ Fixes:
4
+
5
+ - Gem dependencies version lock release
6
+
1
7
  ## 1.1.1 (2016-03-25)
2
8
 
3
9
  Features:
data/Gemfile CHANGED
@@ -1,3 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
6
+ gem 'rest-client', '1.8.0'
7
+ end
@@ -13,12 +13,12 @@ Gem::Specification.new do |s|
13
13
 
14
14
  s.required_ruby_version = '>= 1.9.3'
15
15
 
16
- s.add_dependency('rest-client', '~> 1.4')
17
- s.add_dependency('mime-types', '>= 1.25', '< 3.0')
18
- s.add_dependency('json', '~> 1.8.1')
16
+ s.add_dependency('rest-client', '>= 1.4')
17
+ s.add_dependency('json', '>= 1.8.1')
19
18
 
20
19
  s.add_development_dependency('mocha', '~> 0.13.2')
21
20
  s.add_development_dependency('shoulda', '~> 3.4.0')
21
+ s.add_development_dependency('activesupport', '~> 4.2.6')
22
22
  s.add_development_dependency('bump', '0.5.2')
23
23
  s.add_development_dependency('rake', '10.4.2')
24
24
  s.add_development_dependency('test-unit')
@@ -28,4 +28,3 @@ Gem::Specification.new do |s|
28
28
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
29
29
  s.require_paths = ['lib']
30
30
  end
31
-
data/lib/checkr.rb CHANGED
@@ -30,7 +30,7 @@ require 'checkr/report_list'
30
30
  require 'checkr/sex_offender_search'
31
31
  require 'checkr/ssn_trace'
32
32
  require 'checkr/subscription'
33
- require 'checkr/terrorist_watchlist_search'
33
+ require 'checkr/global_watchlist_search'
34
34
  require 'checkr/eviction_search'
35
35
 
36
36
  # Errors
@@ -20,7 +20,6 @@ module Checkr
20
20
  attribute_writer_alias :report_ids, :reports
21
21
  attribute :geos, APIList.constructor(:Geo)
22
22
  attribute_writer_alias :geo_ids, :geos
23
- attribute :adjudication
24
23
  attribute :documents, :DocumentList, :nested => true, :default => {}
25
24
 
26
25
  api_class_method :all, :get, :constructor => APIList.constructor(:Candidate)
@@ -1,5 +1,5 @@
1
1
  module Checkr
2
- class TerroristWatchlistSearch < APIResource
2
+ class GlobalWatchlistSearch < APIResource
3
3
 
4
4
  attribute :status
5
5
  attribute :completed_at
@@ -9,9 +9,9 @@ module Checkr
9
9
  api_class_method :retrieve, :get, ":path/:id", :arguments => [:id]
10
10
 
11
11
  def self.path
12
- "/v1/terrorist_watchlist_searches"
12
+ "/v1/global_watchlist_searches"
13
13
  end
14
14
 
15
- APIClass.register_subclass(self, "terrorist_watchlist_search")
15
+ APIClass.register_subclass(self, "global_watchlist_search")
16
16
  end
17
17
  end
data/lib/checkr/report.rb CHANGED
@@ -2,6 +2,7 @@ module Checkr
2
2
  class Report < APIResource
3
3
 
4
4
  attribute :status
5
+ attribute :adjudication
5
6
  attribute :values
6
7
  attribute :completed_at
7
8
  attribute :turnaround_time
@@ -22,8 +23,8 @@ module Checkr
22
23
  attribute :national_criminal_search, :NationalCriminalSearch
23
24
  attribute_writer_alias :national_criminal_search_id, :national_criminal_search
24
25
 
25
- attribute :terrorist_watchlist_search, :TerroristWatchlistSearch
26
- attribute_writer_alias :terrorist_watchlist_search_id, :terrorist_watchlist_search
26
+ attribute :global_watchlist_search, :GlobalWatchlistSearch
27
+ attribute_writer_alias :global_watchlist_search_id, :global_watchlist_search
27
28
 
28
29
  attribute :county_criminal_searches, APIList.constructor(:CountyCriminalSearch)
29
30
  attribute_writer_alias :county_criminal_search_ids, :county_criminal_searches
@@ -1,3 +1,3 @@
1
1
  module Checkr
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  end
data/samples/candidate.md CHANGED
@@ -22,7 +22,6 @@
22
22
  "custom_id": null,
23
23
  "reports": {"object":"list","data":[{"id":"4722c07dd9a10c3985ae432a"}, ...]},
24
24
  "geos": {"object":"list","data":[]},
25
- "adjudication": null,
26
25
  "documents": {"object":"list","data":[]},
27
26
  "id": "e44aa283528e6fde7d542194",
28
27
  "object": "test_candidate",
@@ -81,7 +80,6 @@ candidate = Checkr::Candidate.create({
81
80
  "custom_id": null,
82
81
  "reports": {"object":"list","data":[]},
83
82
  "geos": {"object":"list","data":[]},
84
- "adjudication": null,
85
83
  "documents": {"object":"list","data":[]},
86
84
  "id": "25a317218b8c3254cec8ccfb",
87
85
  "object": "test_candidate",
@@ -129,7 +127,6 @@ candidate = Checkr::Candidate.retrieve("e44aa283528e6fde7d542194")
129
127
  "custom_id": null,
130
128
  "reports": {"object":"list","data":[{"id":"4722c07dd9a10c3985ae432a"}, ...]},
131
129
  "geos": {"object":"list","data":[]},
132
- "adjudication": null,
133
130
  "documents": {"object":"list","data":[]},
134
131
  "id": "e44aa283528e6fde7d542194",
135
132
  "object": "test_candidate",
@@ -180,7 +177,6 @@ candidate.save
180
177
  "custom_id": null,
181
178
  "reports": {"object":"list","data":[{"id":"4722c07dd9a10c3985ae432a"}, ...]},
182
179
  "geos": {"object":"list","data":[]},
183
- "adjudication": null,
184
180
  "documents": {"object":"list","data":[]},
185
181
  "id": "e44aa283528e6fde7d542194",
186
182
  "object": "test_candidate",
@@ -1,11 +1,11 @@
1
- # Terrorist Watchlist Search
1
+ # Global Watchlist Search
2
2
 
3
- ## The Terrorist Watchlist Search Object
3
+ ## The Global Watchlist Search Object
4
4
 
5
5
  ### Example Response
6
6
 
7
7
  ```ruby
8
- #<Checkr::TerroristWatchlistSearch:0x3fd909b9dc24 id=539fd88c101897f7cd000008> JSON: {
8
+ #<Checkr::GlobalWatchlistSearch:0x3fd909b9dc24 id=539fd88c101897f7cd000008> JSON: {
9
9
  "status": "consider",
10
10
  "completed_at": "2014-01-18T12:35:30Z",
11
11
  "turnaround_time": 90,
@@ -41,20 +41,20 @@
41
41
  }
42
42
  ],
43
43
  "id": "539fd88c101897f7cd000008",
44
- "object": "terrorist_watchlist_search",
45
- "uri": "/v1/terrorist_watchlist_searches/539fd88c101897f7cd000008",
44
+ "object": "global_watchlist_search",
45
+ "uri": "/v1/global_watchlist_searches/539fd88c101897f7cd000008",
46
46
  "created_at": "2014-01-18T12:34:00Z"
47
47
  }
48
48
  ```
49
49
 
50
50
 
51
51
 
52
- ## Retrieve an existing Terrorist Watchlist Search
52
+ ## Retrieve an existing Global Watchlist Search
53
53
 
54
54
  ### Definition
55
55
 
56
56
  ```ruby
57
- Checkr::TerroristWatchlistSearch.retrieve({TERRORIST_WATCHLIST_SEARCH_ID})
57
+ Checkr::GlobalWatchlistSearch.retrieve({GLOBAL_WATCHLIST_SEARCH_ID})
58
58
  ```
59
59
 
60
60
  ### Example Request
@@ -63,13 +63,13 @@ Checkr::TerroristWatchlistSearch.retrieve({TERRORIST_WATCHLIST_SEARCH_ID})
63
63
  require 'checkr' # Note the gem is named checkr-official
64
64
  Checkr.api_key = "83ebeabdec09f6670863766f792ead24d61fe3f9"
65
65
 
66
- tws = Checkr::TerroristWatchlistSearch.retrieve("539fd88c101897f7cd000008")
66
+ tws = Checkr::GlobalWatchlistSearch.retrieve("539fd88c101897f7cd000008")
67
67
  ```
68
68
 
69
69
  ### Example Response
70
70
 
71
71
  ```ruby
72
- #<Checkr::TerroristWatchlistSearch:0x3fd909b9dc24 id=539fd88c101897f7cd000008> JSON: {
72
+ #<Checkr::GlobalWatchlistSearch:0x3fd909b9dc24 id=539fd88c101897f7cd000008> JSON: {
73
73
  "status": "consider",
74
74
  "completed_at": "2014-01-18T12:35:30Z",
75
75
  "turnaround_time": 90,
@@ -105,8 +105,8 @@ tws = Checkr::TerroristWatchlistSearch.retrieve("539fd88c101897f7cd000008")
105
105
  }
106
106
  ],
107
107
  "id": "539fd88c101897f7cd000008",
108
- "object": "terrorist_watchlist_search",
109
- "uri": "/v1/terrorist_watchlist_searches/539fd88c101897f7cd000008",
108
+ "object": "global_watchlist_search",
109
+ "uri": "/v1/global_watchlist_searches/539fd88c101897f7cd000008",
110
110
  "created_at": "2014-01-18T12:34:00Z"
111
111
  }
112
112
  ```
data/samples/report.md CHANGED
@@ -15,7 +15,7 @@
15
15
  "ssn_trace": {"id":"53ab44eb0189e72f1500003b"},
16
16
  "sex_offender_search": {"id":"53ab44eb0189e72f15000046"},
17
17
  "national_criminal_search": {"id":"53ab44eb0189e72f15000044"},
18
- "terrorist_watchlist_search": {"id":"54aa27ef3662630006000000"},
18
+ "global_watchlist_search": {"id":"54aa27ef3662630006000000"},
19
19
  "county_criminal_searches": {"object":"list","data":[{"id":"539fdcf335644a0ef4000001"},{"id":"54aa27f1316231009c000000"},{"id":"5508ba3b66366305a2000000"}]},
20
20
  "motor_vehicle_report": {"id":"53ab44eb0189e72f15000045"},
21
21
  "id": "4722c07dd9a10c3985ae432a",
@@ -61,7 +61,8 @@ report = Checkr::Report.create({
61
61
  "ssn_trace": {"id":"5511cdbf613766000b840400"},
62
62
  "sex_offender_search": {"id":"5511cdbf613766000b8d0400"},
63
63
  "national_criminal_search": {"id":"5511cdbf613766000b8b0400"},
64
- "terrorist_watchlist_search": {"id":"5511cdbf613766000b8e0400"},
64
+ "global_watchlist_search": {"id":"5511cdbf613766000b8e0400"},
65
+ "global_watchlist_search": {"id":"5511cdbf613766000b8e0400"},
65
66
  "county_criminal_searches": {"object":"list","data":[]},
66
67
  "motor_vehicle_report": {"id":"5511cdbf613766000b8c0400"},
67
68
  "id": "3fe1e58b1697d6fed2c65c0e",
@@ -103,7 +104,8 @@ report = Checkr::Report.retrieve("4722c07dd9a10c3985ae432a")
103
104
  "ssn_trace": {"id":"53ab44eb0189e72f1500003b"},
104
105
  "sex_offender_search": {"id":"53ab44eb0189e72f15000046"},
105
106
  "national_criminal_search": {"id":"53ab44eb0189e72f15000044"},
106
- "terrorist_watchlist_search": {"id":"54aa27ef3662630006000000"},
107
+ "global_watchlist_search": {"id":"54aa27ef3662630006000000"},
108
+ "global_watchlist_search": {"id":"54aa27ef3662630006000000"},
107
109
  "county_criminal_searches": {"object":"list","data":[{"id":"539fdcf335644a0ef4000001"},{"id":"54aa27f1316231009c000000"},{"id":"5508ba3b66366305a2000000"}]},
108
110
  "motor_vehicle_report": {"id":"53ab44eb0189e72f15000045"},
109
111
  "id": "4722c07dd9a10c3985ae432a",
@@ -139,6 +141,7 @@ report.save
139
141
  ```ruby
140
142
  #<Checkr::Report:0x3fd909d21cf8 id=4722c07dd9a10c3985ae432a> JSON: {
141
143
  "status": "pending",
144
+ "adjudication": null,
142
145
  "values": null,
143
146
  "completed_at": null,
144
147
  "turnaround_time": null,
@@ -147,7 +150,8 @@ report.save
147
150
  "ssn_trace": {"id":"53ab44eb0189e72f1500003b"},
148
151
  "sex_offender_search": {"id":"53ab44eb0189e72f15000046"},
149
152
  "national_criminal_search": {"id":"53ab44eb0189e72f15000044"},
150
- "terrorist_watchlist_search": {"id":"54aa27ef3662630006000000"},
153
+ "global_watchlist_search": {"id":"54aa27ef3662630006000000"},
154
+ "global_watchlist_search": {"id":"54aa27ef3662630006000000"},
151
155
  "county_criminal_searches": {"object":"list","data":[{"id":"539fdcf335644a0ef4000001"},{"id":"54aa27f1316231009c000000"},{"id":"5508ba3b66366305a2000000"}]},
152
156
  "motor_vehicle_report": {"id":"53ab44eb0189e72f15000045"},
153
157
  "id": "4722c07dd9a10c3985ae432a",
data/tasks/api_test.rb CHANGED
@@ -13,7 +13,7 @@ class APITest
13
13
  run_ssn_trace_tests(consider, clear)
14
14
  run_sex_offender_search_tests(consider, clear)
15
15
  # TODO: Uncomment this when there isn't a forbidden bug with shared resources in test.
16
- # run_terrorist_watchlist_search_tests(consider, clear)
16
+ # run_global_watchlist_search_tests(consider, clear)
17
17
  run_national_criminal_search_tests(consider, clear)
18
18
  run_county_criminal_search_tests(consider, clear)
19
19
  run_motor_vehicle_report_tests(consider, clear)
@@ -139,16 +139,16 @@ class APITest
139
139
  sex_offender_search
140
140
  end
141
141
 
142
- def run_terrorist_watchlist_search_tests(consider, clear)
142
+ def run_global_watchlist_search_tests(consider, clear)
143
143
  puts "Retrieving using consider..."
144
- consider.terrorist_watchlist_search.refresh
145
- puts "Retrieved the terrorist_watchlist_search: #{consider.terrorist_watchlist_search.inspect}"
144
+ consider.global_watchlist_search.refresh
145
+ puts "Retrieved the global_watchlist_search: #{consider.global_watchlist_search.inspect}"
146
146
 
147
147
  puts "Retrieving using clear report..."
148
- terrorist_watchlist_search = Checkr::TerroristWatchlistSearch.retrieve(clear.terrorist_watchlist_search.id)
149
- puts "Retrieved the terrorist_watchlist_search: #{terrorist_watchlist_search.inspect}"
148
+ global_watchlist_search = Checkr::GlobalWatchlistSearch.retrieve(clear.global_watchlist_search.id)
149
+ puts "Retrieved the global_watchlist_search: #{global_watchlist_search.inspect}"
150
150
 
151
- terrorist_watchlist_search
151
+ global_watchlist_search
152
152
  end
153
153
 
154
154
  def run_national_criminal_search_tests(consider, clear)
@@ -143,10 +143,6 @@ module Checkr
143
143
  assert_equal(test_candidate[:copy_requested], @candidate.copy_requested)
144
144
  end
145
145
 
146
- should 'have the adjudication attribute' do
147
- assert_equal(test_candidate[:adjudication], @candidate.adjudication)
148
- end
149
-
150
146
  should 'have the custom_id attribute' do
151
147
  assert_equal(test_candidate[:custom_id], @candidate.custom_id)
152
148
  end
@@ -0,0 +1,74 @@
1
+ require File.expand_path('../../test_helper', __FILE__)
2
+
3
+ module Checkr
4
+ class GlobalWatchlistSearchTest < Test::Unit::TestCase
5
+ setup do
6
+ @global_watchlist_search_url = "#{Checkr.api_base}/v1/global_watchlist_searches"
7
+ end
8
+
9
+ context 'GlobalWatchlistSearch class' do
10
+ should 'be retrieveable' do
11
+ id = "global_watchlist_search_id"
12
+ @mock.expects(:get).once.with("#{@global_watchlist_search_url}/#{id}", anything, anything).returns(test_response(test_global_watchlist_search))
13
+ global_watchlist_search = GlobalWatchlistSearch.retrieve(id)
14
+ assert(global_watchlist_search.is_a?(GlobalWatchlistSearch))
15
+ end
16
+ end
17
+
18
+ context 'GlobalWatchlistSearch instance' do
19
+ should 'be refreshable' do
20
+ @mock.expects(:get).once.with("#{@global_watchlist_search_url}/#{test_global_watchlist_search[:id]}", anything, anything).returns(test_response(test_global_watchlist_search))
21
+ global_watchlist_search = GlobalWatchlistSearch.new(test_global_watchlist_search[:id])
22
+ global_watchlist_search.refresh
23
+ assert_equal(test_global_watchlist_search[:status], global_watchlist_search.status)
24
+ end
25
+ end
26
+
27
+
28
+ context 'Retrieved GlobalWatchlistSearch instance' do
29
+ setup do
30
+ @mock.expects(:get).once.returns(test_response(test_global_watchlist_search))
31
+ @global_watchlist_search = GlobalWatchlistSearch.retrieve('global_watchlist_search_id')
32
+ end
33
+
34
+ should 'have the id attribute' do
35
+ assert_equal(test_global_watchlist_search[:id], @global_watchlist_search.id)
36
+ end
37
+
38
+ should 'have the object attribute' do
39
+ assert_equal(test_global_watchlist_search[:object], @global_watchlist_search.object)
40
+ end
41
+
42
+ should 'have the uri attribute' do
43
+ assert_equal(test_global_watchlist_search[:uri], @global_watchlist_search.uri)
44
+ end
45
+
46
+ should 'have the status attribute' do
47
+ assert_equal(test_global_watchlist_search[:status], @global_watchlist_search.status)
48
+ end
49
+
50
+ should 'have the created_at attribute' do
51
+ assert_equal(test_global_watchlist_search[:created_at], @global_watchlist_search.created_at)
52
+ end
53
+
54
+ should 'have the completed_at attribute' do
55
+ assert_equal(test_global_watchlist_search[:completed_at], @global_watchlist_search.completed_at)
56
+ end
57
+
58
+ should 'have the turnaround_time attribute' do
59
+ assert_equal(test_global_watchlist_search[:turnaround_time], @global_watchlist_search.turnaround_time)
60
+ end
61
+
62
+ should 'have the records attribute' do
63
+ assert_equal(test_global_watchlist_search[:records], @global_watchlist_search.records)
64
+ end
65
+
66
+ end
67
+
68
+ should 'be registered' do
69
+ assert(APIClass.subclasses.include?(GlobalWatchlistSearch))
70
+ assert_equal(GlobalWatchlistSearch, APIClass.subclass_fetch("global_watchlist_search"))
71
+ end
72
+
73
+ end
74
+ end
@@ -67,6 +67,10 @@ module Checkr
67
67
  assert_equal(test_report[:status], @report.status)
68
68
  end
69
69
 
70
+ should 'have the adjudication attribute' do
71
+ assert_equal(test_report[:adjudication], @report.adjudication)
72
+ end
73
+
70
74
  should 'have the created_at attribute' do
71
75
  assert_equal(test_report[:created_at], @report.created_at)
72
76
  end
@@ -103,9 +107,9 @@ module Checkr
103
107
  assert(@report.national_criminal_search.is_a?(NationalCriminalSearch))
104
108
  end
105
109
 
106
- should 'have the terrorist_watchlist_search_id attribute' do
107
- assert_equal(test_report[:terrorist_watchlist_search_id], @report.terrorist_watchlist_search.id)
108
- assert(@report.terrorist_watchlist_search.is_a?(TerroristWatchlistSearch))
110
+ should 'have the global_watchlist_search_id attribute' do
111
+ assert_equal(test_report[:global_watchlist_search_id], @report.global_watchlist_search.id)
112
+ assert(@report.global_watchlist_search.is_a?(GlobalWatchlistSearch))
109
113
  end
110
114
 
111
115
  should 'have the county_criminal_search_ids attribute' do
data/test/test_data.rb CHANGED
@@ -58,7 +58,6 @@ module Checkr
58
58
  :previous_driver_license_number=>"F1501739",
59
59
  :previous_driver_license_state=>"CA",
60
60
  :copy_requested=>false,
61
- :adjudication=>nil,
62
61
  :custom_id=>nil,
63
62
  :report_ids=>["532e71cfe88a1d4e8d00000d"],
64
63
  :geo_ids=>["79f943e212cce7de21c054a8", "7299c2c22ebb19abb0688a6c"]}
@@ -76,6 +75,7 @@ module Checkr
76
75
  :object=>"report",
77
76
  :uri=>"/v1/reports/4722c07dd9a10c3985ae432a",
78
77
  :status=>"clear",
78
+ :adjudication=>nil,
79
79
  :created_at=>"2014-01-18T12:34:00Z",
80
80
  :completed_at=>"2014-01-18T12:35:30Z",
81
81
  :turnaround_time=>90,
@@ -84,7 +84,7 @@ module Checkr
84
84
  :ssn_trace_id=>"539fd88c101897f7cd000001",
85
85
  :sex_offender_search_id=>"539fd88c101897f7cd000008",
86
86
  :national_criminal_search_id=>"539fd88c101897f7cd000006",
87
- :terrorist_watchlist_search_id=>"53f11ec23934620002010000",
87
+ :global_watchlist_search_id=>"53f11ec23934620002010000",
88
88
  :county_criminal_search_ids=>
89
89
  ["539fdcf335644a0ef4000001", "532e71cfe88a1d4e8d00000i"],
90
90
  :motor_vehicle_report_id=>"539fd88c101897f7cd000007",
@@ -185,10 +185,10 @@ module Checkr
185
185
  :deposition_date=>"2010-12-22"}]}]}
186
186
  end
187
187
 
188
- def test_terrorist_watchlist_search
188
+ def test_global_watchlist_search
189
189
  {:id=>"539fd88c101897f7cd000008",
190
- :object=>"terrorist_watchlist_search",
191
- :uri=>"/v1/terrorist_watchlist_searches/539fd88c101897f7cd000008",
190
+ :object=>"global_watchlist_search",
191
+ :uri=>"/v1/global_watchlist_searches/539fd88c101897f7cd000008",
192
192
  :status=>"consider",
193
193
  :created_at=>"2014-01-18T12:34:00Z",
194
194
  :completed_at=>"2014-01-18T12:35:30Z",
metadata CHANGED
@@ -1,91 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkr-official
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Calhoun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-26 00:00:00.000000000 Z
11
+ date: 2017-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.4'
27
- - !ruby/object:Gem::Dependency
28
- name: mime-types
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '>='
32
- - !ruby/object:Gem::Version
33
- version: '1.25'
34
- - - <
35
- - !ruby/object:Gem::Version
36
- version: '3.0'
37
- type: :runtime
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - '>='
42
- - !ruby/object:Gem::Version
43
- version: '1.25'
44
- - - <
45
- - !ruby/object:Gem::Version
46
- version: '3.0'
47
27
  - !ruby/object:Gem::Dependency
48
28
  name: json
49
29
  requirement: !ruby/object:Gem::Requirement
50
30
  requirements:
51
- - - ~>
31
+ - - ">="
52
32
  - !ruby/object:Gem::Version
53
33
  version: 1.8.1
54
34
  type: :runtime
55
35
  prerelease: false
56
36
  version_requirements: !ruby/object:Gem::Requirement
57
37
  requirements:
58
- - - ~>
38
+ - - ">="
59
39
  - !ruby/object:Gem::Version
60
40
  version: 1.8.1
61
41
  - !ruby/object:Gem::Dependency
62
42
  name: mocha
63
43
  requirement: !ruby/object:Gem::Requirement
64
44
  requirements:
65
- - - ~>
45
+ - - "~>"
66
46
  - !ruby/object:Gem::Version
67
47
  version: 0.13.2
68
48
  type: :development
69
49
  prerelease: false
70
50
  version_requirements: !ruby/object:Gem::Requirement
71
51
  requirements:
72
- - - ~>
52
+ - - "~>"
73
53
  - !ruby/object:Gem::Version
74
54
  version: 0.13.2
75
55
  - !ruby/object:Gem::Dependency
76
56
  name: shoulda
77
57
  requirement: !ruby/object:Gem::Requirement
78
58
  requirements:
79
- - - ~>
59
+ - - "~>"
80
60
  - !ruby/object:Gem::Version
81
61
  version: 3.4.0
82
62
  type: :development
83
63
  prerelease: false
84
64
  version_requirements: !ruby/object:Gem::Requirement
85
65
  requirements:
86
- - - ~>
66
+ - - "~>"
87
67
  - !ruby/object:Gem::Version
88
68
  version: 3.4.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: activesupport
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 4.2.6
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 4.2.6
89
83
  - !ruby/object:Gem::Dependency
90
84
  name: bump
91
85
  requirement: !ruby/object:Gem::Requirement
@@ -118,14 +112,14 @@ dependencies:
118
112
  name: test-unit
119
113
  requirement: !ruby/object:Gem::Requirement
120
114
  requirements:
121
- - - '>='
115
+ - - ">="
122
116
  - !ruby/object:Gem::Version
123
117
  version: '0'
124
118
  type: :development
125
119
  prerelease: false
126
120
  version_requirements: !ruby/object:Gem::Requirement
127
121
  requirements:
128
- - - '>='
122
+ - - ">="
129
123
  - !ruby/object:Gem::Version
130
124
  version: '0'
131
125
  description: Checkr - Automated background screenings and driving records. See https://checkr.com/
@@ -137,8 +131,8 @@ executables:
137
131
  extensions: []
138
132
  extra_rdoc_files: []
139
133
  files:
140
- - .gitignore
141
- - .travis.yml
134
+ - ".gitignore"
135
+ - ".travis.yml"
142
136
  - Changelog.md
143
137
  - Gemfile
144
138
  - README.md
@@ -161,6 +155,7 @@ files:
161
155
  - lib/checkr/errors/invalid_request_error.rb
162
156
  - lib/checkr/eviction_search.rb
163
157
  - lib/checkr/geo.rb
158
+ - lib/checkr/global_watchlist_search.rb
164
159
  - lib/checkr/motor_vehicle_report.rb
165
160
  - lib/checkr/national_criminal_search.rb
166
161
  - lib/checkr/report.rb
@@ -168,7 +163,6 @@ files:
168
163
  - lib/checkr/sex_offender_search.rb
169
164
  - lib/checkr/ssn_trace.rb
170
165
  - lib/checkr/subscription.rb
171
- - lib/checkr/terrorist_watchlist_search.rb
172
166
  - lib/checkr/util.rb
173
167
  - lib/checkr/version.rb
174
168
  - mclovin.jpg
@@ -176,13 +170,13 @@ files:
176
170
  - samples/country_criminal_search.md
177
171
  - samples/document.md
178
172
  - samples/geo.md
173
+ - samples/global_watchlist_search.md
179
174
  - samples/motor_vehicle_report.md
180
175
  - samples/national_criminal_search.md
181
176
  - samples/report.md
182
177
  - samples/sex_offender_search.md
183
178
  - samples/ssn_trace.md
184
179
  - samples/subscription.md
185
- - samples/terrorist_watchlist_search.md
186
180
  - tasks/api_test.rb
187
181
  - test/checkr/api_class_test.rb
188
182
  - test/checkr/api_list_test.rb
@@ -195,6 +189,7 @@ files:
195
189
  - test/checkr/document_test.rb
196
190
  - test/checkr/eviction_search_test.rb
197
191
  - test/checkr/geo_test.rb
192
+ - test/checkr/global_watchlist_search.rb
198
193
  - test/checkr/motor_vehicle_report_test.rb
199
194
  - test/checkr/national_criminal_search_test.rb
200
195
  - test/checkr/report_test.rb
@@ -202,7 +197,6 @@ files:
202
197
  - test/checkr/ssn_trace_test.rb
203
198
  - test/checkr/status_codes_test.rb
204
199
  - test/checkr/subscription_test.rb
205
- - test/checkr/terrorist_watchlist_search_test.rb
206
200
  - test/checkr/util_test.rb
207
201
  - test/mock_resource.rb
208
202
  - test/test_data.rb
@@ -216,17 +210,17 @@ require_paths:
216
210
  - lib
217
211
  required_ruby_version: !ruby/object:Gem::Requirement
218
212
  requirements:
219
- - - '>='
213
+ - - ">="
220
214
  - !ruby/object:Gem::Version
221
215
  version: 1.9.3
222
216
  required_rubygems_version: !ruby/object:Gem::Requirement
223
217
  requirements:
224
- - - '>='
218
+ - - ">="
225
219
  - !ruby/object:Gem::Version
226
220
  version: '0'
227
221
  requirements: []
228
222
  rubyforge_project:
229
- rubygems_version: 2.0.14
223
+ rubygems_version: 2.4.5.1
230
224
  signing_key:
231
225
  specification_version: 4
232
226
  summary: Ruby bindings for Checkr API
@@ -242,6 +236,7 @@ test_files:
242
236
  - test/checkr/document_test.rb
243
237
  - test/checkr/eviction_search_test.rb
244
238
  - test/checkr/geo_test.rb
239
+ - test/checkr/global_watchlist_search.rb
245
240
  - test/checkr/motor_vehicle_report_test.rb
246
241
  - test/checkr/national_criminal_search_test.rb
247
242
  - test/checkr/report_test.rb
@@ -249,7 +244,6 @@ test_files:
249
244
  - test/checkr/ssn_trace_test.rb
250
245
  - test/checkr/status_codes_test.rb
251
246
  - test/checkr/subscription_test.rb
252
- - test/checkr/terrorist_watchlist_search_test.rb
253
247
  - test/checkr/util_test.rb
254
248
  - test/mock_resource.rb
255
249
  - test/test_data.rb
@@ -1,74 +0,0 @@
1
- require File.expand_path('../../test_helper', __FILE__)
2
-
3
- module Checkr
4
- class TerroristWatchlistSearchTest < Test::Unit::TestCase
5
- setup do
6
- @terrorist_watchlist_search_url = "#{Checkr.api_base}/v1/terrorist_watchlist_searches"
7
- end
8
-
9
- context 'TerroristWatchlistSearch class' do
10
- should 'be retrieveable' do
11
- id = "terrorist_watchlist_search_id"
12
- @mock.expects(:get).once.with("#{@terrorist_watchlist_search_url}/#{id}", anything, anything).returns(test_response(test_terrorist_watchlist_search))
13
- terrorist_watchlist_search = TerroristWatchlistSearch.retrieve(id)
14
- assert(terrorist_watchlist_search.is_a?(TerroristWatchlistSearch))
15
- end
16
- end
17
-
18
- context 'TerroristWatchlistSearch instance' do
19
- should 'be refreshable' do
20
- @mock.expects(:get).once.with("#{@terrorist_watchlist_search_url}/#{test_terrorist_watchlist_search[:id]}", anything, anything).returns(test_response(test_terrorist_watchlist_search))
21
- terrorist_watchlist_search = TerroristWatchlistSearch.new(test_terrorist_watchlist_search[:id])
22
- terrorist_watchlist_search.refresh
23
- assert_equal(test_terrorist_watchlist_search[:status], terrorist_watchlist_search.status)
24
- end
25
- end
26
-
27
-
28
- context 'Retrieved TerroristWatchlistSearch instance' do
29
- setup do
30
- @mock.expects(:get).once.returns(test_response(test_terrorist_watchlist_search))
31
- @terrorist_watchlist_search = TerroristWatchlistSearch.retrieve('terrorist_watchlist_search_id')
32
- end
33
-
34
- should 'have the id attribute' do
35
- assert_equal(test_terrorist_watchlist_search[:id], @terrorist_watchlist_search.id)
36
- end
37
-
38
- should 'have the object attribute' do
39
- assert_equal(test_terrorist_watchlist_search[:object], @terrorist_watchlist_search.object)
40
- end
41
-
42
- should 'have the uri attribute' do
43
- assert_equal(test_terrorist_watchlist_search[:uri], @terrorist_watchlist_search.uri)
44
- end
45
-
46
- should 'have the status attribute' do
47
- assert_equal(test_terrorist_watchlist_search[:status], @terrorist_watchlist_search.status)
48
- end
49
-
50
- should 'have the created_at attribute' do
51
- assert_equal(test_terrorist_watchlist_search[:created_at], @terrorist_watchlist_search.created_at)
52
- end
53
-
54
- should 'have the completed_at attribute' do
55
- assert_equal(test_terrorist_watchlist_search[:completed_at], @terrorist_watchlist_search.completed_at)
56
- end
57
-
58
- should 'have the turnaround_time attribute' do
59
- assert_equal(test_terrorist_watchlist_search[:turnaround_time], @terrorist_watchlist_search.turnaround_time)
60
- end
61
-
62
- should 'have the records attribute' do
63
- assert_equal(test_terrorist_watchlist_search[:records], @terrorist_watchlist_search.records)
64
- end
65
-
66
- end
67
-
68
- should 'be registered' do
69
- assert(APIClass.subclasses.include?(TerroristWatchlistSearch))
70
- assert_equal(TerroristWatchlistSearch, APIClass.subclass_fetch("terrorist_watchlist_search"))
71
- end
72
-
73
- end
74
- end