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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df8f76de6d18ea79119204dc67e777553af6a989
4
- data.tar.gz: ae34bd28ec63ec2ae9a83a0ce39c61cef50a604a
3
+ metadata.gz: b8689eb769baae5528bda3f01f4863eb6f5db39e
4
+ data.tar.gz: 58f95dab916b1eb83dcc0af5fdf33088609e2746
5
5
  SHA512:
6
- metadata.gz: 47c824840d70d4a2a8372e83d530cd4b4627c1da2acc2382c81a95c16adbf120f7bdd69e0fa83fcea5b5e5299b2ff29b0a5a98ff088aefd23cbeea7668d26a5e
7
- data.tar.gz: 5f8b1beddc9cf92735058638c64cdd39abc3147023707c64928124a316922b262c0ff6e40d29f4ab499841fec8382f4e579d4add252381d732848775c3d20489
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 ||= 'http://localhost'
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
- # bg_create_uri: ********
30
- # bg_index_uri: ********
36
+ # base_uri: ********
37
+ # report_uri: ********
31
38
  # site_identifier: ********
32
39
  # account_code: ********
33
- # username: ********
40
+ # user_name: ********
34
41
  # password: ********
42
+ # postback_url: ********
35
43
  # postback_username: ********
36
44
  # postback_password: ********
37
45
  # end
@@ -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
@@ -7,6 +7,7 @@ module SsciInc
7
7
 
8
8
  def as_xml
9
9
  builder(:type => "criminal", :qualifier => "county") do |xml|
10
+ xml.CourtType "Felony Misdemeanor"
10
11
  xml.Region region unless region.nil?
11
12
  xml.County county unless county.nil?
12
13
  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 => "federal") do |xml|
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
@@ -7,6 +7,7 @@ module SsciInc
7
7
 
8
8
  def as_xml
9
9
  builder(:type => "criminal", :qualifier => "statewide") do |xml|
10
+ xml.CourtType "Felony Misdemeanor"
10
11
  xml.Region region unless region.nil?
11
12
  end
12
13
  end
@@ -1,3 +1,3 @@
1
1
  module SsciInc
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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 Karna", "Jon Alme"]
9
- s.email = ["jon.karna@sportsengine.com", "jonathan.alme@sportsengine.com"]
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 => "federal")
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.0
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-30 00:00:00.000000000 Z
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: []