ssci_inc 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ssci_inc/configuration.rb +12 -4
- data/lib/ssci_inc/request.rb +11 -0
- data/lib/ssci_inc/screening/criminal_county.rb +1 -0
- data/lib/ssci_inc/screening/criminal_federal.rb +2 -1
- data/lib/ssci_inc/screening/criminal_state.rb +1 -0
- data/lib/ssci_inc/version.rb +1 -1
- data/ssci_inc.gemspec +2 -2
- data/test/unit/screening/criminal_federal_test.rb +1 -1
- metadata +2 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8689eb769baae5528bda3f01f4863eb6f5db39e
|
4
|
+
data.tar.gz: 58f95dab916b1eb83dcc0af5fdf33088609e2746
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01229581b8aa889683a959b4634d531fba1c2065ea962b16dd03fee245006331f7632e156205168a6afbd9df9df6ae8d3fa84875fb17742286a93f96eeea100d
|
7
|
+
data.tar.gz: d1384793ef94e70c9f05023feca00bd4b0e317770a606582aed460deaad177d5dff760dba774164f1f6d643e3daa05d5cd50f2e9e5f14b74a6766aad7be644f0
|
@@ -2,6 +2,9 @@ module SsciInc
|
|
2
2
|
class Configuration
|
3
3
|
|
4
4
|
attr_accessor :base_uri,
|
5
|
+
:report_uri,
|
6
|
+
:site_identifier,
|
7
|
+
:account_code,
|
5
8
|
:user_name,
|
6
9
|
:password,
|
7
10
|
:postback_url,
|
@@ -9,7 +12,11 @@ module SsciInc
|
|
9
12
|
:postback_password
|
10
13
|
|
11
14
|
def base_uri
|
12
|
-
@base_uri ||= '
|
15
|
+
@base_uri ||= 'https://linxml.com/bgcheck.asp'
|
16
|
+
end
|
17
|
+
|
18
|
+
def report__uri
|
19
|
+
@report_uri ||= 'https://linxml.com/get_bgreport.asp'
|
13
20
|
end
|
14
21
|
|
15
22
|
end
|
@@ -26,12 +33,13 @@ module SsciInc
|
|
26
33
|
#
|
27
34
|
# Examples
|
28
35
|
# SsciInc.configure do |config|
|
29
|
-
#
|
30
|
-
#
|
36
|
+
# base_uri: ********
|
37
|
+
# report_uri: ********
|
31
38
|
# site_identifier: ********
|
32
39
|
# account_code: ********
|
33
|
-
#
|
40
|
+
# user_name: ********
|
34
41
|
# password: ********
|
42
|
+
# postback_url: ********
|
35
43
|
# postback_username: ********
|
36
44
|
# postback_password: ********
|
37
45
|
# end
|
data/lib/ssci_inc/request.rb
CHANGED
@@ -85,6 +85,9 @@ module SsciInc
|
|
85
85
|
def as_xml
|
86
86
|
Nokogiri::XML::Builder.new do |xml|
|
87
87
|
xml.BackgroundCheck(:userId => user_name, :password => password) {
|
88
|
+
xml.DestinationSiteIdentifier "SOUTHEASTERN"
|
89
|
+
xml.SourceSiteIdentifier site_identifier
|
90
|
+
xml.AccountCode account_code
|
88
91
|
xml.BackgroundSearchPackage(:type => type, :action => action) {
|
89
92
|
xml.ReferenceId reference_id
|
90
93
|
xml.Reference reference
|
@@ -160,6 +163,14 @@ module SsciInc
|
|
160
163
|
@base_uri || config.base_uri
|
161
164
|
end
|
162
165
|
|
166
|
+
def site_identifier
|
167
|
+
@site_identifier || config.site_identifier
|
168
|
+
end
|
169
|
+
|
170
|
+
def account_code
|
171
|
+
@account_code || config.account_code
|
172
|
+
end
|
173
|
+
|
163
174
|
def user_name
|
164
175
|
@user_name || config.user_name
|
165
176
|
end
|
@@ -6,7 +6,8 @@ module SsciInc
|
|
6
6
|
attr_accessor :region, :district
|
7
7
|
|
8
8
|
def as_xml
|
9
|
-
builder(:type => "criminal", :qualifier => "
|
9
|
+
builder(:type => "criminal", :qualifier => "county") do |xml|
|
10
|
+
xml.CourtType "Federal"
|
10
11
|
xml.Region region unless region.nil?
|
11
12
|
xml.District district unless district.nil?
|
12
13
|
end
|
data/lib/ssci_inc/version.rb
CHANGED
data/ssci_inc.gemspec
CHANGED
@@ -5,8 +5,8 @@ require "ssci_inc/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "ssci_inc"
|
7
7
|
s.version = SsciInc::VERSION
|
8
|
-
s.authors = ["Jon
|
9
|
-
s.email = ["
|
8
|
+
s.authors = ["Jon Alme"]
|
9
|
+
s.email = ["jonathan.alme@sportsengine.com"]
|
10
10
|
s.homepage = ""
|
11
11
|
s.summary = %q{Submit background checks to SSCI, Inc}
|
12
12
|
s.description = %q{The ssci_inc gem is a ruby gem used for
|
@@ -5,7 +5,7 @@ module SsciInc
|
|
5
5
|
class CriminalFederalTest < Test::Unit::TestCase
|
6
6
|
|
7
7
|
should_have_attr_accessor :region, :district
|
8
|
-
should_call_builder_with(:type => "criminal", :qualifier => "
|
8
|
+
should_call_builder_with(:type => "criminal", :qualifier => "county")
|
9
9
|
|
10
10
|
end
|
11
11
|
end
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ssci_inc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Jon Karna
|
8
7
|
- Jon Alme
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-31 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: httparty
|
@@ -147,7 +146,6 @@ description: |-
|
|
147
146
|
The ssci_inc gem is a ruby gem used for
|
148
147
|
submitting background check requests to SSCI
|
149
148
|
email:
|
150
|
-
- jon.karna@sportsengine.com
|
151
149
|
- jonathan.alme@sportsengine.com
|
152
150
|
executables: []
|
153
151
|
extensions: []
|