blueline_services 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 30bafef0cbd9de3e8c250e837f4b3f1d70a1773d
4
- data.tar.gz: b3d5f7908e16bd62c709b3050b0a4cafa7d3e444
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDJjMTIxYWZjNTFiNTVlYTdkYzJmZTQ2ODlhNGJmYmI4MTE1OTIzYw==
5
+ data.tar.gz: !binary |-
6
+ NDNmZTAwOTkzZDg1OTg3MGI5NGIxOTkxMDZmMGFkZDAwNzkxZDNjYw==
5
7
  SHA512:
6
- metadata.gz: 21c2d368f3f6ba7edc1e162d15248d42d2175f776db536681a958c0598c1406b984137b9e81f338d5e21a77aeb7758eb3823c017aa6e3a1c69af14f62e7baf12
7
- data.tar.gz: 1f50827d2079ae3ab3068379284404f52b1b2520be2345ebb29c238c014266b9243806354aa48ba846fd91339537e377f3b909b80c65928850eb2375392d4833
8
+ metadata.gz: !binary |-
9
+ MzIwMmU1MjUzYzliMGE3OGM0MzYxNjg4N2Q4OWU4YzgwN2ViZjBjNjJmMjM3
10
+ NjAwMjgxOTViMWExOGQ4MDJkZWYxYjRkZmUzODIzMDE4N2Y4ZTQ0MjQ2Nzg4
11
+ Y2E2MjljZWVhNTE4Yjc4NWY3NjA1NTEzOGY4NjMwODY2ZjVjM2I=
12
+ data.tar.gz: !binary |-
13
+ NjkyM2VjOGExNDQ1ZWUwOTk4ZDI2MDY0OWM4OTg2NzA1N2M5OWQxMDkyMGE0
14
+ NjA3YTA0OWMxMjllZWQyNzVhNzIwNTJlZDc3MTJjMTM3MWY0NThhOTJhZjQ4
15
+ ZGI0YzNlZTE0NGNmYTQ3YWY4YWM3MmU1ZjAwNDA5ZTJiMWY4ZmM=
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  *.gem
2
2
  .bundle
3
3
  pkg/*
4
+ Gemfile.lock
4
5
 
5
6
  # Mac
6
7
  .DS_Store
data/.octopolo.yml ADDED
@@ -0,0 +1,2 @@
1
+ deploy_branch: master
2
+ github_repo: sportngin/blueline_services
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ blueline_services
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 1.9.3
data/.travis.yml ADDED
@@ -0,0 +1,22 @@
1
+ sudo: false
2
+ branches:
3
+ only:
4
+ - master
5
+
6
+ notifications:
7
+ slack: sportngin:Yr24DXJUvIOegSPwKMG099D1
8
+
9
+ after_script:
10
+ - uptime && vmstat -S M
11
+
12
+ language: ruby
13
+ rvm:
14
+ - 1.9.3
15
+ - 2.0.0
16
+ - 2.1
17
+ - 2.2
18
+
19
+ cache: bundler
20
+
21
+ script:
22
+ - bundle exec rake test
@@ -0,0 +1,4 @@
1
+ * TOURNEY-3465-add-reference-field
2
+
3
+ > Phia Vang: Emrah Ozmen: https://github.com/sportngin/blueline_services/pull/5
4
+
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # BluelineServices
2
2
 
3
- The blueline_services gem is a ruby gem used for submitted background check requests to
3
+ The blueline_services gem is a ruby gem used for submitted background check requests to
4
4
  [Blueline Services](http://www.blueline-services.com/)
5
5
 
6
6
  Using this API requires that you have an existing account with Blueline Services,
@@ -30,6 +30,7 @@ request = BluelineServices::Request.new do |r|
30
30
  r.password = "ScROLL447breaK",
31
31
  r.type = "TST Media",
32
32
  r.reference_id = 112233,
33
+ r.reference = "ABC Company Inc.",
33
34
  r.given_name = "HANK",
34
35
  r.family_name = "MESS",
35
36
  r.ssn = "333-22-1111",
@@ -21,11 +21,12 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.add_runtime_dependency "httparty"
23
23
  s.add_runtime_dependency "nokogiri"
24
- s.add_runtime_dependency "activesupport"
24
+ s.add_runtime_dependency "activesupport", "~> 3.0"
25
25
  s.add_runtime_dependency "i18n"
26
26
 
27
27
  s.add_development_dependency "pry"
28
28
  s.add_development_dependency "rake"
29
- s.add_development_dependency "shoulda"
30
- s.add_development_dependency "mocha"
29
+ s.add_development_dependency "shoulda", "~> 3.0"
30
+ s.add_development_dependency "mocha", "~> 0.10"
31
+ s.add_development_dependency "test-unit"
31
32
  end
@@ -15,7 +15,8 @@ module BluelineServices
15
15
  # BackgroundSearchPackage
16
16
  attr_accessor :action,
17
17
  :type,
18
- :reference_id
18
+ :reference_id,
19
+ :reference
19
20
 
20
21
  # PersonalData
21
22
  attr_accessor :email_address,
@@ -86,6 +87,7 @@ module BluelineServices
86
87
  xml.BackgroundCheck(:userId => user_name, :password => password) {
87
88
  xml.BackgroundSearchPackage(:type => type, :action => action) {
88
89
  xml.ReferenceId reference_id
90
+ xml.Reference reference
89
91
  xml.PersonalData {
90
92
  xml.EmailAddress email_address
91
93
  xml.Telephone telephone
@@ -1,7 +1,7 @@
1
1
  module BluelineServices
2
2
  class Response
3
3
 
4
- attr_reader :user_id, :password, :reference_id, :order_id, :order_status
4
+ attr_reader :user_id, :password, :reference_id, :reference, :order_id, :order_status
5
5
  attr_reader :result_status
6
6
 
7
7
  # ErrorReport
@@ -23,6 +23,7 @@ module BluelineServices
23
23
  @user_id = document.at("//@userId").try(:value)
24
24
  @password = document.at("//@password").try(:value)
25
25
  @reference_id = document.at("//ReferenceId").try(:text)
26
+ @reference = document.at("//Reference").try(:text)
26
27
  @order_id = document.at("//OrderId").try(:text)
27
28
  @order_status = document.at("//OrderStatus").try(:text)
28
29
 
@@ -1,3 +1,3 @@
1
1
  module BluelineServices
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
@@ -2,6 +2,7 @@
2
2
  <BackgroundCheck password="" userId="">
3
3
  <BackgroundSearchPackage action="submit" type="TST Media">
4
4
  <ReferenceId>112233</ReferenceId>
5
+ <Reference>ABC Company Inc.</Reference>
5
6
  <PersonalData>
6
7
  <EmailAddresss></EmailAddresss>
7
8
  <Telephone></Telephone>
data/test/test_helper.rb CHANGED
@@ -50,6 +50,7 @@ class Test::Unit::TestCase
50
50
  :password => "password",
51
51
  :type => "My Package",
52
52
  :reference_id => 112233,
53
+ :reference => "ABC Company Inc.",
53
54
  :given_name => "HANK",
54
55
  :family_name => "MESS",
55
56
  :ssn => "333-22-1111",
@@ -70,6 +71,7 @@ class Test::Unit::TestCase
70
71
  <BackgroundReports>
71
72
  <BackgroundReportPackage>
72
73
  <ReferenceId>some_id_value</ReferenceId>
74
+ <Reference>ABC Company Inc.</Reference>
73
75
  <ScreeningStatus>
74
76
  <OrderStatus>x:error</OrderStatus>
75
77
  </ScreeningStatus>
@@ -85,6 +87,7 @@ class Test::Unit::TestCase
85
87
  <BackgroundReports>
86
88
  <BackgroundReportPackage>
87
89
  <ReferenceId>some_id_value</ReferenceId>
90
+ <Reference>ABC Company Inc.</Reference>
88
91
  <OrderId>12358</OrderId>
89
92
  <ScreeningStatus>
90
93
  <OrderStatus>x:pending</OrderStatus>
@@ -97,6 +100,7 @@ class Test::Unit::TestCase
97
100
  <BackgroundReports userId="username" password="password">
98
101
  <BackgroundReportPackage>
99
102
  <ReferenceId>some_id_value</ReferenceId>
103
+ <Reference>ABC Company Inc.</Reference>
100
104
  <OrderId>12358</OrderId>
101
105
  <ScreeningStatus>
102
106
  <OrderStatus flag="FALSE">x:ready</OrderStatus>
@@ -30,6 +30,7 @@ module BluelineServices
30
30
  assert_equal "yes", root_node.at("//@useConfigurationDefaults").value
31
31
 
32
32
  assert_xml_text_equal root_node, :reference_id
33
+ assert_xml_text_equal root_node, :reference
33
34
  assert_xml_text_equal root_node, :email_address
34
35
  assert_xml_text_equal root_node, :telephone
35
36
  assert_xml_text_equal root_node, :given_name
@@ -79,7 +80,7 @@ module BluelineServices
79
80
  end
80
81
 
81
82
  should_have_attr_accessor :config, :base_uri, :user_name, :password
82
- should_have_attr_accessor :action, :type, :reference_id
83
+ should_have_attr_accessor :action, :type, :reference_id, :reference
83
84
  should_have_attr_accessor :email_address, :telephone
84
85
  should_have_attr_accessor :given_name, :middle_name, :family_name
85
86
  should_have_attr_accessor :government_id, :ssn_country_code,
@@ -5,7 +5,7 @@ module BluelineServices
5
5
  subject { Response.new(TEST_ERROR_RESPONSE) }
6
6
 
7
7
  should_have_attr_reader :user_id, :password, :reference_id,
8
- :order_id, :order_status
8
+ :reference, :order_id, :order_status
9
9
  should_have_attr_reader :error_code, :error_description
10
10
  should_have_attr_reader :result_status,
11
11
  :order_status_flag,
@@ -26,6 +26,7 @@ module BluelineServices
26
26
  subject.error_description
27
27
 
28
28
  assert_equal "some_id_value", subject.reference_id
29
+ assert_equal "ABC Company Inc.", subject.reference
29
30
  end
30
31
  end
31
32
 
@@ -37,6 +38,7 @@ module BluelineServices
37
38
  assert_equal "12358", subject.order_id
38
39
 
39
40
  assert_equal "some_id_value", subject.reference_id
41
+ assert_equal "ABC Company Inc.", subject.reference
40
42
  end
41
43
  end
42
44
 
@@ -57,6 +59,7 @@ module BluelineServices
57
59
 
58
60
  assert_equal "12358", subject.order_id
59
61
  assert_equal "some_id_value", subject.reference_id
62
+ assert_equal "ABC Company Inc.", subject.reference
60
63
  end
61
64
  end
62
65
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blueline_services
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Karna
@@ -9,123 +9,136 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-13 00:00:00.000000000 Z
12
+ date: 2016-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ! '>='
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ! '>='
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: nokogiri
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ! '>='
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ! '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: activesupport
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ~>
47
47
  - !ruby/object:Gem::Version
48
- version: '0'
48
+ version: '3.0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ~>
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: '3.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: i18n
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ! '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: pry
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - '>='
74
+ - - ! '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '>='
81
+ - - ! '>='
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: rake
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - '>='
88
+ - - ! '>='
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - '>='
95
+ - - ! '>='
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: shoulda
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - '>='
102
+ - - ~>
103
103
  - !ruby/object:Gem::Version
104
- version: '0'
104
+ version: '3.0'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - '>='
109
+ - - ~>
110
110
  - !ruby/object:Gem::Version
111
- version: '0'
111
+ version: '3.0'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: mocha
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - '>='
116
+ - - ~>
117
+ - !ruby/object:Gem::Version
118
+ version: '0.10'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '0.10'
126
+ - !ruby/object:Gem::Dependency
127
+ name: test-unit
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ! '>='
117
131
  - !ruby/object:Gem::Version
118
132
  version: '0'
119
133
  type: :development
120
134
  prerelease: false
121
135
  version_requirements: !ruby/object:Gem::Requirement
122
136
  requirements:
123
- - - '>='
137
+ - - ! '>='
124
138
  - !ruby/object:Gem::Version
125
139
  version: '0'
126
- description: |-
127
- The blueline_services gem is a ruby gem used for
128
- submitting background check requests to Blueline Services
140
+ description: ! "The blueline_services gem is a ruby gem used for\n submitting
141
+ background check requests to Blueline Services"
129
142
  email:
130
143
  - jon.karna@tstmedia.com
131
144
  - ed.lebert@tstmedia.com
@@ -134,8 +147,12 @@ extensions: []
134
147
  extra_rdoc_files: []
135
148
  files:
136
149
  - .gitignore
150
+ - .octopolo.yml
151
+ - .ruby-gemset
152
+ - .ruby-version
153
+ - .travis.yml
154
+ - CHANGELOG.markdown
137
155
  - Gemfile
138
- - Gemfile.lock
139
156
  - README.md
140
157
  - Rakefile
141
158
  - blueline_services.gemspec
@@ -178,17 +195,17 @@ require_paths:
178
195
  - lib
179
196
  required_ruby_version: !ruby/object:Gem::Requirement
180
197
  requirements:
181
- - - '>='
198
+ - - ! '>='
182
199
  - !ruby/object:Gem::Version
183
200
  version: '0'
184
201
  required_rubygems_version: !ruby/object:Gem::Requirement
185
202
  requirements:
186
- - - '>='
203
+ - - ! '>='
187
204
  - !ruby/object:Gem::Version
188
205
  version: '0'
189
206
  requirements: []
190
207
  rubyforge_project: blueline_services
191
- rubygems_version: 2.2.2
208
+ rubygems_version: 2.4.6
192
209
  signing_key:
193
210
  specification_version: 4
194
211
  summary: Submit background checks to Blueline Services
data/Gemfile.lock DELETED
@@ -1,46 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- blueline_services (0.4.0)
5
- activesupport
6
- httparty
7
- i18n
8
- nokogiri
9
-
10
- GEM
11
- remote: http://rubygems.org/
12
- specs:
13
- activesupport (3.0.10)
14
- coderay (1.0.5)
15
- httparty (0.8.1)
16
- multi_json
17
- multi_xml
18
- i18n (0.5.0)
19
- metaclass (0.0.1)
20
- method_source (0.7.1)
21
- mocha (0.10.4)
22
- metaclass (~> 0.0.1)
23
- multi_json (1.7.2)
24
- multi_xml (0.4.2)
25
- nokogiri (1.5.9)
26
- pry (0.9.8.4)
27
- coderay (~> 1.0.5)
28
- method_source (~> 0.7.1)
29
- slop (>= 2.4.4, < 3)
30
- rake (0.9.2.2)
31
- shoulda (3.0.1)
32
- shoulda-context (~> 1.0.0)
33
- shoulda-matchers (~> 1.0.0)
34
- shoulda-context (1.0.0)
35
- shoulda-matchers (1.0.0)
36
- slop (2.4.4)
37
-
38
- PLATFORMS
39
- ruby
40
-
41
- DEPENDENCIES
42
- blueline_services!
43
- mocha
44
- pry
45
- rake
46
- shoulda