checkr-official 1.1.0 → 1.1.1
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/.travis.yml +2 -10
- data/Changelog.md +7 -0
- data/Gemfile +2 -7
- data/README.md +0 -15
- data/checkr-official.gemspec +3 -1
- data/lib/checkr.rb +1 -1
- data/lib/checkr/candidate.rb +1 -0
- data/lib/checkr/report.rb +2 -0
- data/lib/checkr/version.rb +1 -1
- data/test/checkr/report_test.rb +5 -0
- data/test/test_data.rb +3 -1
- metadata +22 -25
- data/gemfiles/default-with-activesupport.gemfile +0 -10
- data/gemfiles/json.gemfile +0 -12
- data/gemfiles/yajl.gemfile +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05122b0f135beeaef36db1371f366ac6ba8ace4c
|
|
4
|
+
data.tar.gz: 3708c77b5b78efecb89429907bbb372b452a950b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f23b4967c974ae7baa323da5c7b4bfb09f626b0af1502e17de06b2a743340b97bab49e4e93af2433fd127b234014df7d4604258051570327e19311ad103ebc7
|
|
7
|
+
data.tar.gz: ecc289b6901be4739c8fab80050d79356f61f899507090c982371bd02e6c1f758e037e4e2185efe7f0953c59be1ed0d2fe88c19f7f044ca6f5d18ea5fe305181
|
data/.travis.yml
CHANGED
data/Changelog.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -24,21 +24,6 @@ require 'checkr'
|
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
## Requirements
|
|
29
|
-
|
|
30
|
-
* Ruby 1.8.7 or above. (Ruby 1.8.6 may work if you load
|
|
31
|
-
ActiveSupport.) For Ruby versions before 1.9.2, you'll need to add this to your Gemfile:
|
|
32
|
-
|
|
33
|
-
```ruby
|
|
34
|
-
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.2')
|
|
35
|
-
gem 'rest-client', '~> 1.6.8'
|
|
36
|
-
end
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
* rest-client, json
|
|
40
|
-
|
|
41
|
-
|
|
42
27
|
## Bundler
|
|
43
28
|
|
|
44
29
|
If you are installing via bundler, you should be sure to use the https
|
data/checkr-official.gemspec
CHANGED
|
@@ -2,7 +2,7 @@ $:.unshift(File.join(File.dirname(__FILE__), 'lib'))
|
|
|
2
2
|
|
|
3
3
|
require 'checkr/version'
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Gem::Specification.new do |s|
|
|
6
6
|
s.name = 'checkr-official'
|
|
7
7
|
s.summary = 'Ruby bindings for Checkr API'
|
|
8
8
|
s.description = 'Checkr - Automated background screenings and driving records. See https://checkr.com/ for details.'
|
|
@@ -11,6 +11,8 @@ spec = Gem::Specification.new do |s|
|
|
|
11
11
|
s.email = ['joncalhoun@gmail.com']
|
|
12
12
|
s.version = Checkr::VERSION
|
|
13
13
|
|
|
14
|
+
s.required_ruby_version = '>= 1.9.3'
|
|
15
|
+
|
|
14
16
|
s.add_dependency('rest-client', '~> 1.4')
|
|
15
17
|
s.add_dependency('mime-types', '>= 1.25', '< 3.0')
|
|
16
18
|
s.add_dependency('json', '~> 1.8.1')
|
data/lib/checkr.rb
CHANGED
|
@@ -212,7 +212,7 @@ module Checkr
|
|
|
212
212
|
def self.connection_message
|
|
213
213
|
"Please check your internet connection and try again. " \
|
|
214
214
|
"If this problem persists, you should check Checkr's service status at " \
|
|
215
|
-
"https://twitter.com/
|
|
215
|
+
"https://twitter.com/checkrstatus, or let us know at hello@checkr.com."
|
|
216
216
|
end
|
|
217
217
|
|
|
218
218
|
def self.handle_api_error(rcode, rbody)
|
data/lib/checkr/candidate.rb
CHANGED
data/lib/checkr/report.rb
CHANGED
|
@@ -31,6 +31,8 @@ module Checkr
|
|
|
31
31
|
attribute :motor_vehicle_report, :MotorVehicleReport
|
|
32
32
|
attribute_writer_alias :motor_vehicle_report_id, :motor_vehicle_report
|
|
33
33
|
|
|
34
|
+
attribute :documents, APIList.constructor(:Document)
|
|
35
|
+
attribute_writer_alias :document_ids, :documents
|
|
34
36
|
|
|
35
37
|
api_class_method :retrieve, :get, ":path/:id", :arguments => [:id]
|
|
36
38
|
api_class_method :create, :post
|
data/lib/checkr/version.rb
CHANGED
data/test/checkr/report_test.rb
CHANGED
|
@@ -113,6 +113,11 @@ module Checkr
|
|
|
113
113
|
assert(@report.county_criminal_searches.is_a?(APIList))
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
+
should "have the documents attribute" do
|
|
117
|
+
assert_equal(test_report[:document_ids], @report.documents.json)
|
|
118
|
+
assert(@report.documents.is_a?(APIList))
|
|
119
|
+
end
|
|
120
|
+
|
|
116
121
|
should 'have the motor_vehicle_report_id attribute' do
|
|
117
122
|
assert_equal(test_report[:motor_vehicle_report_id], @report.motor_vehicle_report.id)
|
|
118
123
|
assert(@report.motor_vehicle_report.is_a?(MotorVehicleReport))
|
data/test/test_data.rb
CHANGED
|
@@ -88,7 +88,9 @@ module Checkr
|
|
|
88
88
|
:county_criminal_search_ids=>
|
|
89
89
|
["539fdcf335644a0ef4000001", "532e71cfe88a1d4e8d00000i"],
|
|
90
90
|
:motor_vehicle_report_id=>"539fd88c101897f7cd000007",
|
|
91
|
-
|
|
91
|
+
:eviction_search_id=>"539fd88c101897f7cd000008",
|
|
92
|
+
:document_ids => ["4722c07dd9a10c3985ae432a"]
|
|
93
|
+
}
|
|
92
94
|
end
|
|
93
95
|
|
|
94
96
|
def test_report_list
|
metadata
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: checkr-official
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
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-
|
|
11
|
+
date: 2016-03-26 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
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: mime-types
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - '>='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '1.25'
|
|
34
|
-
- -
|
|
34
|
+
- - <
|
|
35
35
|
- !ruby/object:Gem::Version
|
|
36
36
|
version: '3.0'
|
|
37
37
|
type: :runtime
|
|
38
38
|
prerelease: false
|
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
|
40
40
|
requirements:
|
|
41
|
-
- -
|
|
41
|
+
- - '>='
|
|
42
42
|
- !ruby/object:Gem::Version
|
|
43
43
|
version: '1.25'
|
|
44
|
-
- -
|
|
44
|
+
- - <
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: '3.0'
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: json
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
|
-
- -
|
|
51
|
+
- - ~>
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: 1.8.1
|
|
54
54
|
type: :runtime
|
|
55
55
|
prerelease: false
|
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
|
-
- -
|
|
58
|
+
- - ~>
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
60
|
version: 1.8.1
|
|
61
61
|
- !ruby/object:Gem::Dependency
|
|
62
62
|
name: mocha
|
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
|
-
- -
|
|
65
|
+
- - ~>
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
67
|
version: 0.13.2
|
|
68
68
|
type: :development
|
|
69
69
|
prerelease: false
|
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
|
-
- -
|
|
72
|
+
- - ~>
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
74
|
version: 0.13.2
|
|
75
75
|
- !ruby/object:Gem::Dependency
|
|
76
76
|
name: shoulda
|
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
|
79
|
-
- -
|
|
79
|
+
- - ~>
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
81
|
version: 3.4.0
|
|
82
82
|
type: :development
|
|
83
83
|
prerelease: false
|
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements:
|
|
86
|
-
- -
|
|
86
|
+
- - ~>
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
88
|
version: 3.4.0
|
|
89
89
|
- !ruby/object:Gem::Dependency
|
|
@@ -118,14 +118,14 @@ dependencies:
|
|
|
118
118
|
name: test-unit
|
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
|
120
120
|
requirements:
|
|
121
|
-
- -
|
|
121
|
+
- - '>='
|
|
122
122
|
- !ruby/object:Gem::Version
|
|
123
123
|
version: '0'
|
|
124
124
|
type: :development
|
|
125
125
|
prerelease: false
|
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
|
127
127
|
requirements:
|
|
128
|
-
- -
|
|
128
|
+
- - '>='
|
|
129
129
|
- !ruby/object:Gem::Version
|
|
130
130
|
version: '0'
|
|
131
131
|
description: Checkr - Automated background screenings and driving records. See https://checkr.com/
|
|
@@ -137,17 +137,14 @@ executables:
|
|
|
137
137
|
extensions: []
|
|
138
138
|
extra_rdoc_files: []
|
|
139
139
|
files:
|
|
140
|
-
-
|
|
141
|
-
-
|
|
140
|
+
- .gitignore
|
|
141
|
+
- .travis.yml
|
|
142
142
|
- Changelog.md
|
|
143
143
|
- Gemfile
|
|
144
144
|
- README.md
|
|
145
145
|
- Rakefile
|
|
146
146
|
- bin/checkr-console
|
|
147
147
|
- checkr-official.gemspec
|
|
148
|
-
- gemfiles/default-with-activesupport.gemfile
|
|
149
|
-
- gemfiles/json.gemfile
|
|
150
|
-
- gemfiles/yajl.gemfile
|
|
151
148
|
- lib/checkr.rb
|
|
152
149
|
- lib/checkr/api_class.rb
|
|
153
150
|
- lib/checkr/api_list.rb
|
|
@@ -219,17 +216,17 @@ require_paths:
|
|
|
219
216
|
- lib
|
|
220
217
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
221
218
|
requirements:
|
|
222
|
-
- -
|
|
219
|
+
- - '>='
|
|
223
220
|
- !ruby/object:Gem::Version
|
|
224
|
-
version:
|
|
221
|
+
version: 1.9.3
|
|
225
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
223
|
requirements:
|
|
227
|
-
- -
|
|
224
|
+
- - '>='
|
|
228
225
|
- !ruby/object:Gem::Version
|
|
229
226
|
version: '0'
|
|
230
227
|
requirements: []
|
|
231
228
|
rubyforge_project:
|
|
232
|
-
rubygems_version: 2.
|
|
229
|
+
rubygems_version: 2.0.14
|
|
233
230
|
signing_key:
|
|
234
231
|
specification_version: 4
|
|
235
232
|
summary: Ruby bindings for Checkr API
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
source "https://rubygems.org"
|
|
2
|
-
gemspec :path => File.join(File.dirname(__FILE__), "..")
|
|
3
|
-
|
|
4
|
-
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.3')
|
|
5
|
-
gem 'i18n', '< 0.7'
|
|
6
|
-
gem 'rest-client', '~> 1.6.8'
|
|
7
|
-
gem 'activesupport', '~> 3.2'
|
|
8
|
-
else
|
|
9
|
-
gem 'activesupport'
|
|
10
|
-
end
|
data/gemfiles/json.gemfile
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
source "https://rubygems.org"
|
|
2
|
-
gemspec :path => File.join(File.dirname(__FILE__), "..")
|
|
3
|
-
|
|
4
|
-
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.3')
|
|
5
|
-
gem 'i18n', '< 0.7'
|
|
6
|
-
gem 'rest-client', '~> 1.6.8'
|
|
7
|
-
gem 'activesupport', '~> 3.2'
|
|
8
|
-
else
|
|
9
|
-
gem 'activesupport'
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
gem 'json'
|
data/gemfiles/yajl.gemfile
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
source "https://rubygems.org"
|
|
2
|
-
gemspec :path => File.join(File.dirname(__FILE__), "..")
|
|
3
|
-
|
|
4
|
-
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.3')
|
|
5
|
-
gem 'i18n', '< 0.7'
|
|
6
|
-
gem 'rest-client', '~> 1.6.8'
|
|
7
|
-
gem 'activesupport', '~> 3.2'
|
|
8
|
-
else
|
|
9
|
-
gem 'activesupport'
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
gem 'yajl-ruby'
|