cb-api 4.1.3 → 4.2.0

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.
@@ -1,5 +1,3 @@
1
- require 'nori'
2
-
3
1
  module Cb
4
2
  module Clients
5
3
  class JobBranding
@@ -1,5 +1,5 @@
1
1
  require 'json'
2
- require 'nokogiri'
2
+ require 'xmlsimple'
3
3
 
4
4
  module Cb
5
5
  module Clients
@@ -15,7 +15,6 @@ module Cb
15
15
  def retrieve external_id, test_mode = false
16
16
  my_api = Cb::Utils::Api.new
17
17
  json_hash = my_api.cb_post Cb.configuration.uri_user_retrieve, :body => build_retrieve_request(external_id, true)
18
-
19
18
  if json_hash.has_key? 'ResponseUserInfo'
20
19
  if json_hash['ResponseUserInfo'].has_key? 'UserInfo'
21
20
  user = Models::User.new json_hash['ResponseUserInfo']['UserInfo']
@@ -59,55 +58,44 @@ module Cb
59
58
  private
60
59
 
61
60
  def build_check_existing_request(email, password)
62
- builder = Nokogiri::XML::Builder.new do
63
- Request {
64
- DeveloperKey_ Cb.configuration.dev_key
65
- Email_ email
66
- Password_ password
67
- Test_ 'false' # Test flag. Ignored for this request.
68
- }
69
- end
70
-
71
- builder.to_xml
61
+ request = {
62
+ 'DeveloperKey' => Cb.configuration.dev_key,
63
+ 'Email' => email,
64
+ 'Password' => password,
65
+ 'Test' => 'false'
66
+ }
67
+ XmlSimple.xml_out request, {'KeepRoot' => true, 'RootName' => 'Request', 'AttrPrefix' => true}
72
68
  end
73
69
 
74
70
  def build_retrieve_request external_id, test_mode
75
- builder = Nokogiri::XML::Builder.new do
76
- Request {
77
- ExternalID_ external_id
78
- Test_ test_mode.to_s
79
- DeveloperKey_ Cb.configuration.dev_key
80
- }
81
- end
71
+ request = {
82
72
 
83
- builder.to_xml
73
+ 'DeveloperKey' => Cb.configuration.dev_key,
74
+ 'ExternalID' => external_id,
75
+ 'Test' => test_mode.to_s
76
+ }
77
+ XmlSimple.xml_out request, {'KeepRoot' => true, 'RootName' => 'Request', 'AttrPrefix' => true}
84
78
  end
85
79
 
86
80
  def build_change_password_request external_id, old_password, new_password, test_mode
87
- builder = Nokogiri::XML::Builder.new do
88
- Request {
89
- ExternalID_ external_id
90
- OldPassword_ old_password
91
- NewPassword_ new_password
92
- Test_ test_mode.to_s
93
- DeveloperKey_ Cb.configuration.dev_key
94
- }
95
- end
96
-
97
- builder.to_xml
81
+ request = {
82
+ 'DeveloperKey' => Cb.configuration.dev_key,
83
+ 'ExternalID' => external_id,
84
+ 'Test' => test_mode.to_s,
85
+ 'OldPassword' => old_password,
86
+ 'NewPassword' => new_password
87
+ }
88
+ XmlSimple.xml_out request, {'KeepRoot' => true, 'RootName' => 'Request', 'AttrPrefix' => true}
98
89
  end
99
90
 
100
91
  def build_delete_request external_id, password, test_mode
101
- builder = Nokogiri::XML::Builder.new do
102
- Request {
103
- ExternalID_ external_id
104
- Password_ password
105
- Test_ test_mode.to_s
106
- DeveloperKey_ Cb.configuration.dev_key
107
- }
108
- end
109
-
110
- builder.to_xml
92
+ request = {
93
+ 'DeveloperKey' => Cb.configuration.dev_key,
94
+ 'ExternalID' => external_id,
95
+ 'Test' => test_mode.to_s,
96
+ 'Password' => password
97
+ }
98
+ XmlSimple.xml_out request, {'KeepRoot' => true, 'RootName' => 'Request', 'AttrPrefix' => true}
111
99
  end
112
100
 
113
101
  def api_client
@@ -37,7 +37,7 @@ module Cb
37
37
  # Job Skin Related
38
38
  @job_skin = args.has_key?("JobSkin") && !args["JobSkin"].nil? ? args['JobSkin']['#cdata-section'] : ''
39
39
  @job_skin_did = args['JobSkinDID'] || ''
40
- @job_branding = @job_skin_did.blank? ? '' : Cb.job_branding.find_by_id(job_skin_did)
40
+ @job_branding = @job_skin_did.empty? ? '' : Cb.job_branding.find_by_id(job_skin_did)
41
41
  @job_tracking_url = args['JobTrackingURL'] || ''
42
42
  @display_job_id = args['DisplayJobID'] || ''
43
43
 
@@ -1,3 +1,5 @@
1
+ require 'xmlsimple'
2
+
1
3
  module Cb
2
4
  module Models
3
5
  class SavedSearch
@@ -28,7 +30,7 @@ module Cb
28
30
  ret += "<HostSite>#{@hostsite}</HostSite>"
29
31
  ret += "<Cobrand>#{@cobrand}</Cobrand>"
30
32
  ret += "<SearchName>#{@search_name}</SearchName>"
31
- ret += search_parameters.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::NO_DECLARATION)
33
+ ret += search_parameters.to_xml
32
34
  ret += "<IsDailyEmail>#{@is_daily_email.to_s.upcase}</IsDailyEmail>"
33
35
  ret += "<ExternalUserID>#{@external_user_id}</ExternalUserID>"
34
36
  ret += "<DeveloperKey>#{Cb.configuration.dev_key}</DeveloperKey>"
@@ -44,7 +46,7 @@ module Cb
44
46
  ret += "<Test>#{false}</Test>"
45
47
  ret += "<EmailAddress>#{@email_address}</EmailAddress>"
46
48
  ret += "<SearchName>#{@search_name}</SearchName>"
47
- ret += search_parameters.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::NO_DECLARATION)
49
+ ret += search_parameters.to_xml
48
50
  ret += "<IsDailyEmail>#{@is_daily_email.to_s.upcase}</IsDailyEmail>"
49
51
  ret += "<DeveloperKey>#{Cb.configuration.dev_key}</DeveloperKey>"
50
52
  ret + "</Request>"
@@ -55,7 +57,7 @@ module Cb
55
57
  ret += "<HostSite>#{@hostsite}</HostSite>"
56
58
  ret += "<Cobrand>#{@cobrand}</Cobrand>"
57
59
  ret += "<SearchName>#{@search_name}</SearchName>"
58
- ret += search_parameters.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::NO_DECLARATION)
60
+ ret += search_parameters.to_xml
59
61
  ret += "<IsDailyEmail>#{@is_daily_email.to_s.upcase}</IsDailyEmail>"
60
62
  ret += "<ExternalID>#{@external_id}</ExternalID>"
61
63
  ret += "<ExternalUserID>#{@external_user_id}</ExternalUserID>"
@@ -64,26 +66,28 @@ module Cb
64
66
  end
65
67
 
66
68
  def delete_to_xml
67
- Nokogiri::XML::Builder.new do
68
- Request {
69
- ExternalID external_id
70
- ExternalUserID external_user_id
71
- HostSite host_site
72
- DeveloperKey Cb.configuration.dev_key
73
- }
74
- end.to_xml
69
+ request = {
70
+ 'Request' => {
71
+ 'DeveloperKey_' => Cb.configuration.dev_key,
72
+ 'ExternalID' => external_id,
73
+ 'ExternalUserID' => external_user_id,
74
+ 'HostSite' => host_site
75
+ }
76
+ }
77
+ XmlSimple.xml_out request
75
78
  end
76
79
 
77
80
 
78
81
 
79
82
  def delete_anon_to_xml
80
- Nokogiri::XML::Builder.new do
81
- Request {
82
- DeveloperKey Cb.configuration.dev_key
83
- ExternalID external_id
84
- Test false
85
- }
86
- end.to_xml
83
+ request = {
84
+ 'Request' => {
85
+ 'DeveloperKey_' => Cb.configuration.dev_key,
86
+ 'ExternalID' => external_id,
87
+ 'Test' => 'false'
88
+ }
89
+ }
90
+ XmlSimple.xml_out request
87
91
  end
88
92
 
89
93
  class Delete
@@ -126,31 +130,32 @@ module Cb
126
130
  end
127
131
 
128
132
  def to_xml(args = {})
129
- Nokogiri::XML::Builder.new do
130
- SearchParameters {
131
- BooleanOperator boolean_operator
132
- JobCategory category
133
- EducationCode education_code
134
- EmpType emp_type
135
- ExcludeCompanyNames exclude_company_names
136
- ExcludeJobTitles exclude_job_titles
137
- ExcludeKeywords exclude_keywords
138
- Country country
139
- IndustryCodes industry_codes
140
- JobTitle job_title
141
- Keywords keywords
142
- Location location
143
- OrderBy order_by
144
- OrderDirection order_direction
145
- PayHigh pay_high
146
- PayLow pay_low
147
- PostedWithin posted_within
148
- Radius radius
149
- SpecificEducation specific_education
150
- ExcludeNational exclude_national
151
- PayInfoOnly pay_info_only
152
- }
153
- end.to_xml(args)
133
+ request = {
134
+ 'SearchParameters' => {
135
+ 'BooleanOperator' => args[:boolean_operator],
136
+ 'JobCategory' => args[:category],
137
+ 'EducationCode' => args[:education_code],
138
+ 'EmpType' => args[:emp_type],
139
+ 'ExcludeCompanyNames'=> args[:exclude_company_names],
140
+ 'ExcludeJobTitles' => args[:exclude_job_titles],
141
+ 'ExcludeKeywords' => args[:exclude_keywords],
142
+ 'Country' => args[:country],
143
+ 'IndustryCodes' => args[:industry_codes],
144
+ 'JobTitle' => args[:job_title],
145
+ 'Keywords' => args[:keywords],
146
+ 'Location' => args[:location],
147
+ 'OrderBy' => args[:order_by],
148
+ 'OrderDirection' => args[:order_direction],
149
+ 'PayHigh' => args[:pay_high],
150
+ 'PayLow' => args[:pay_low],
151
+ 'PostedWithin' => args[:posted_within],
152
+ 'Radius' => args[:radius],
153
+ 'SpecificEducation' => args[:specific_education],
154
+ 'ExcludeNational' => args[:exclude_national],
155
+ 'PayInfoOnly' => args[:pay_info_only]
156
+ }
157
+ }
158
+ XmlSimple.xml_out([request], 'SuppressEmpty' => nil)
154
159
  end
155
160
  end
156
161
  end
@@ -13,7 +13,7 @@ module Cb
13
13
  :outputjson => Cb.configuration.use_json.to_s
14
14
 
15
15
  self.class.default_timeout Cb.configuration.time_out
16
- self.class.headers.merge! ({'accept-encoding' => 'deflate, gzip'})
16
+ self.class.headers.merge! ({'accept-encoding' => 'deflate, gzip'}) unless Cb.configuration.debug_api
17
17
  end
18
18
 
19
19
  def cb_get(*args, &block)
@@ -1,51 +1,51 @@
1
1
  require 'json'
2
+ require 'nori'
2
3
 
3
4
  module Cb
4
5
  module ResponseValidator
6
+
7
+ class << self
8
+ def validate(response)
9
+ if response.nil? || response.response.body.nil?
10
+ return get_empty_json_hash
11
+ end
5
12
 
6
- def self.validate(response)
7
- if response.blank? || response.response.body.blank?
8
- return self.get_empty_json_hash
9
- end
10
-
11
- if response.code != 200
12
- # we only handle json or xml responses - html means something bad happened
13
- is_html = response.response.body.include?('<!DOCTYPE html')
14
- return self.get_empty_json_hash if is_html
13
+ if response.code != 200
14
+ # we only handle json or xml responses - html means something bad happened
15
+ is_html = response.response.body.include?('<!DOCTYPE html')
16
+ return get_empty_json_hash if is_html
17
+ end
18
+
19
+ return get_empty_json_hash if response.response.body.nil?
20
+
21
+ # Try to parse response as JSON. Otherwise, return HTTParty-parsed XML
22
+ begin
23
+ json = JSON.parse(response.response.body)
24
+ json.keys.any? ? json : get_empty_json_hash
25
+ rescue JSON::ParserError
26
+ handle_parser_error(response.response.body)
27
+ end
15
28
  end
16
29
 
17
- begin
18
- json = JSON.parse(response.response.body)
19
- json.keys.any? ? json : self.get_empty_json_hash
20
- rescue JSON::ParserError
21
- self.handle_parser_error(response.response.body)
22
- end
23
- end
24
-
25
- def self.handle_parser_error(response)
26
- # if it's not JSON, try XML
27
- xml = Nokogiri::XML.parse(response).elements.to_s
28
- if xml.blank?
29
- # if i wasn't xml either, give up and return an empty json hash
30
- return self.get_empty_json_hash
31
- else
32
- # if it was, return a hash from the xml UNLESS it was a generic
33
- xml_hash = nori.parse(xml.to_s)
34
- if xml_hash.has_key?('Response') && xml_hash['Response'].has_key?('Errors')
35
- return self.get_empty_json_hash
36
- else
37
- return xml_hash
30
+ def handle_parser_error(response_body)
31
+ begin
32
+ response_hash = XmlSimple.xml_in(response_body)
33
+ # Unless there was an error, return a hash from the xml
34
+ if response_hash.respond_to?(:has_key?) && response_hash.has_key?('Errors')
35
+ return get_empty_json_hash
36
+ else
37
+ return response_hash
38
+ end
39
+ rescue ArgumentError, REXML::ParseException
40
+ get_empty_json_hash
38
41
  end
39
42
  end
40
- end
41
-
42
- def self.get_empty_json_hash
43
- Hash.new
44
- end
45
43
 
46
- def self.nori
47
- @nori ||= Nori.new
44
+ def get_empty_json_hash
45
+ Hash.new
46
+ end
48
47
  end
49
-
48
+
49
+ # private_class_method :handle_parser_error, :get_empty_json_hash
50
50
  end
51
51
  end
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '4.1.3'
2
+ VERSION = '4.2.0'
3
3
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.3
4
+ version: 4.2.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - The CareerBuilder.com Niche and Consumer Development teams
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-02-19 00:00:00.000000000 Z
12
+ date: 2014-03-03 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: httparty
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: json
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: nori
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,27 +54,31 @@ dependencies:
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
54
61
  version: 2.2.0
55
62
  - !ruby/object:Gem::Dependency
56
- name: nokogiri
63
+ name: xml-simple
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
61
- version: 1.6.0
69
+ version: 1.1.3
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
68
- version: 1.6.0
77
+ version: 1.1.3
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rake
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ! '>='
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ! '>='
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: webmock
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ~>
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ~>
95
108
  - !ruby/object:Gem::Version
@@ -97,6 +110,7 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: simplecov
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - ! '>='
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - ! '>='
109
124
  - !ruby/object:Gem::Version
@@ -111,6 +126,7 @@ dependencies:
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: rspec
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
131
  - - ! '>='
116
132
  - !ruby/object:Gem::Version
@@ -118,6 +134,7 @@ dependencies:
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
139
  - - ! '>='
123
140
  - !ruby/object:Gem::Version
@@ -125,6 +142,7 @@ dependencies:
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: rdoc
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
147
  - - ~>
130
148
  - !ruby/object:Gem::Version
@@ -132,6 +150,7 @@ dependencies:
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
155
  - - ~>
137
156
  - !ruby/object:Gem::Version
@@ -139,6 +158,7 @@ dependencies:
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: rspec-pride
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
163
  - - ~>
144
164
  - !ruby/object:Gem::Version
@@ -146,6 +166,7 @@ dependencies:
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
171
  - - ~>
151
172
  - !ruby/object:Gem::Version
@@ -153,6 +174,7 @@ dependencies:
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: pry
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
179
  - - '='
158
180
  - !ruby/object:Gem::Version
@@ -160,6 +182,7 @@ dependencies:
160
182
  type: :development
161
183
  prerelease: false
162
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
163
186
  requirements:
164
187
  - - '='
165
188
  - !ruby/object:Gem::Version
@@ -167,6 +190,7 @@ dependencies:
167
190
  - !ruby/object:Gem::Dependency
168
191
  name: rb-readline
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
195
  - - ~>
172
196
  - !ruby/object:Gem::Version
@@ -174,6 +198,7 @@ dependencies:
174
198
  type: :development
175
199
  prerelease: false
176
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
177
202
  requirements:
178
203
  - - ~>
179
204
  - !ruby/object:Gem::Version
@@ -184,107 +209,108 @@ executables: []
184
209
  extensions: []
185
210
  extra_rdoc_files: []
186
211
  files:
187
- - README.md
188
212
  - lib/cb.rb
189
- - lib/cb/clients/anon_saved_search.rb
190
- - lib/cb/clients/application.rb
191
- - lib/cb/clients/application_external.rb
192
- - lib/cb/clients/category.rb
193
- - lib/cb/clients/company.rb
194
- - lib/cb/clients/education.rb
195
- - lib/cb/clients/email_subscription.rb
196
- - lib/cb/clients/employee_types.rb
197
- - lib/cb/clients/job.rb
198
- - lib/cb/clients/job_branding.rb
199
- - lib/cb/clients/recommendation.rb
200
- - lib/cb/clients/saved_search.rb
201
- - lib/cb/clients/spot.rb
202
- - lib/cb/clients/talent_network.rb
203
- - lib/cb/clients/user.rb
204
- - lib/cb/config.rb
205
- - lib/cb/convenience.rb
206
- - lib/cb/criteria/application/cover_letter.rb
207
- - lib/cb/criteria/application/create.rb
208
- - lib/cb/criteria/application/get.rb
209
- - lib/cb/criteria/application/response.rb
213
+ - lib/cb/version.rb
214
+ - lib/cb/criteria/job/details.rb
210
215
  - lib/cb/criteria/application/resume.rb
211
216
  - lib/cb/criteria/application/update.rb
212
- - lib/cb/criteria/job/details.rb
217
+ - lib/cb/criteria/application/get.rb
218
+ - lib/cb/criteria/application/cover_letter.rb
219
+ - lib/cb/criteria/application/response.rb
220
+ - lib/cb/criteria/application/create.rb
213
221
  - lib/cb/criteria/spot/retrieve.rb
222
+ - lib/cb/responses/anonymous_saved_search/delete.rb
223
+ - lib/cb/responses/anonymous_saved_search/create.rb
224
+ - lib/cb/responses/application.rb
225
+ - lib/cb/responses/metadata.rb
226
+ - lib/cb/responses/job/singular.rb
227
+ - lib/cb/responses/spot/retrieve_response.rb
228
+ - lib/cb/responses/api_response.rb
229
+ - lib/cb/responses/user/check_existing.rb
230
+ - lib/cb/responses/timing.rb
231
+ - lib/cb/responses/saved_search/list.rb
232
+ - lib/cb/responses/saved_search/singular.rb
233
+ - lib/cb/responses/saved_search/delete.rb
234
+ - lib/cb/responses/employee_types/search.rb
235
+ - lib/cb/responses/errors.rb
214
236
  - lib/cb/exceptions.rb
237
+ - lib/cb/config.rb
215
238
  - lib/cb/models/api_response_model.rb
239
+ - lib/cb/models/implementations/job_branding.rb
216
240
  - lib/cb/models/implementations/application.rb
241
+ - lib/cb/models/implementations/application/resume.rb
217
242
  - lib/cb/models/implementations/application/cover_letter.rb
218
243
  - lib/cb/models/implementations/application/response.rb
219
- - lib/cb/models/implementations/application/resume.rb
244
+ - lib/cb/models/implementations/job.rb
245
+ - lib/cb/models/implementations/user.rb
246
+ - lib/cb/models/implementations/education.rb
220
247
  - lib/cb/models/implementations/application_external.rb
221
- - lib/cb/models/implementations/branding/media.rb
248
+ - lib/cb/models/implementations/saved_search.rb
249
+ - lib/cb/models/implementations/employee_type.rb
222
250
  - lib/cb/models/implementations/branding/section.rb
223
- - lib/cb/models/implementations/branding/style.rb
224
- - lib/cb/models/implementations/branding/styles/base.rb
225
- - lib/cb/models/implementations/branding/styles/buttons.rb
226
- - lib/cb/models/implementations/branding/styles/company_info.rb
227
- - lib/cb/models/implementations/branding/styles/container.rb
251
+ - lib/cb/models/implementations/branding/styles/job_details.rb
228
252
  - lib/cb/models/implementations/branding/styles/content.rb
229
- - lib/cb/models/implementations/branding/styles/css_adapter.rb
230
253
  - lib/cb/models/implementations/branding/styles/headings.rb
231
- - lib/cb/models/implementations/branding/styles/job_details.rb
232
254
  - lib/cb/models/implementations/branding/styles/page.rb
255
+ - lib/cb/models/implementations/branding/styles/container.rb
256
+ - lib/cb/models/implementations/branding/styles/base.rb
257
+ - lib/cb/models/implementations/branding/styles/css_adapter.rb
258
+ - lib/cb/models/implementations/branding/styles/buttons.rb
259
+ - lib/cb/models/implementations/branding/styles/company_info.rb
260
+ - lib/cb/models/implementations/branding/style.rb
261
+ - lib/cb/models/implementations/branding/media.rb
233
262
  - lib/cb/models/implementations/branding/widget.rb
234
- - lib/cb/models/implementations/category.rb
235
263
  - lib/cb/models/implementations/company.rb
236
- - lib/cb/models/implementations/education.rb
237
- - lib/cb/models/implementations/email_subscription.rb
238
- - lib/cb/models/implementations/employee_type.rb
239
- - lib/cb/models/implementations/job.rb
240
- - lib/cb/models/implementations/job_branding.rb
241
- - lib/cb/models/implementations/saved_search.rb
242
- - lib/cb/models/implementations/spot.rb
264
+ - lib/cb/models/implementations/category.rb
243
265
  - lib/cb/models/implementations/talent_network.rb
244
- - lib/cb/models/implementations/user.rb
245
- - lib/cb/responses/anonymous_saved_search/create.rb
246
- - lib/cb/responses/anonymous_saved_search/delete.rb
247
- - lib/cb/responses/api_response.rb
248
- - lib/cb/responses/application.rb
249
- - lib/cb/responses/employee_types/search.rb
250
- - lib/cb/responses/errors.rb
251
- - lib/cb/responses/job/singular.rb
252
- - lib/cb/responses/metadata.rb
253
- - lib/cb/responses/saved_search/delete.rb
254
- - lib/cb/responses/saved_search/list.rb
255
- - lib/cb/responses/saved_search/singular.rb
256
- - lib/cb/responses/spot/retrieve_response.rb
257
- - lib/cb/responses/timing.rb
258
- - lib/cb/responses/user/check_existing.rb
259
- - lib/cb/utils/api.rb
260
- - lib/cb/utils/country.rb
261
- - lib/cb/utils/fluid_attributes.rb
262
- - lib/cb/utils/meta_values.rb
266
+ - lib/cb/models/implementations/spot.rb
267
+ - lib/cb/models/implementations/email_subscription.rb
268
+ - lib/cb/convenience.rb
269
+ - lib/cb/clients/job_branding.rb
270
+ - lib/cb/clients/recommendation.rb
271
+ - lib/cb/clients/application.rb
272
+ - lib/cb/clients/employee_types.rb
273
+ - lib/cb/clients/job.rb
274
+ - lib/cb/clients/user.rb
275
+ - lib/cb/clients/education.rb
276
+ - lib/cb/clients/application_external.rb
277
+ - lib/cb/clients/saved_search.rb
278
+ - lib/cb/clients/company.rb
279
+ - lib/cb/clients/category.rb
280
+ - lib/cb/clients/talent_network.rb
281
+ - lib/cb/clients/anon_saved_search.rb
282
+ - lib/cb/clients/spot.rb
283
+ - lib/cb/clients/email_subscription.rb
263
284
  - lib/cb/utils/response_array_extractor.rb
285
+ - lib/cb/utils/country.rb
264
286
  - lib/cb/utils/validator.rb
265
- - lib/cb/version.rb
287
+ - lib/cb/utils/meta_values.rb
288
+ - lib/cb/utils/api.rb
289
+ - lib/cb/utils/fluid_attributes.rb
290
+ - README.md
266
291
  homepage: http://api.careerbuilder.com
267
292
  licenses:
268
293
  - MIT
269
- metadata: {}
270
294
  post_install_message:
271
295
  rdoc_options: []
272
296
  require_paths:
273
297
  - lib
274
298
  required_ruby_version: !ruby/object:Gem::Requirement
299
+ none: false
275
300
  requirements:
276
301
  - - ! '>='
277
302
  - !ruby/object:Gem::Version
278
303
  version: '0'
279
304
  required_rubygems_version: !ruby/object:Gem::Requirement
305
+ none: false
280
306
  requirements:
281
307
  - - ! '>='
282
308
  - !ruby/object:Gem::Version
283
309
  version: '0'
284
310
  requirements: []
285
311
  rubyforge_project:
286
- rubygems_version: 2.2.1
312
+ rubygems_version: 1.8.25
287
313
  signing_key:
288
- specification_version: 4
314
+ specification_version: 3
289
315
  summary: Ruby wrapper around Careerbuilder Public API.
290
316
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWVmMjQyMmEzMDA0YzhhYWIwNGQ5MTYwYjcyNjMxYmI2OGUwNTNjNw==
5
- data.tar.gz: !binary |-
6
- NWRiNzAzNTEzOWVjMmUzZjM5ZDI1Yjg0ZTlkNmEyODA1OWI0MzgxOQ==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- ZWFiYWNmZGY1ZWYzZTQxODZjYWZhNzkyM2NkZGQzYWZkYmQ5ZjcyMDRlYzVm
10
- YjVjYTMxMmUwOGQ0ZGFiODM5ZTQxYmQxMDEwYjk3ZTI0MTYyZDczNjcyOTRi
11
- M2Q2NWI3ODQxODM0YTE2MzQxNmRhNzY0MWM4ZGY2NmE4MDQyNzU=
12
- data.tar.gz: !binary |-
13
- MmE0MjE3NDMxODcyNjA3ZDAyMTJjMDFhMmI0YjI1ZWY3M2UyODc0YzQ0MTky
14
- MmYzMmIzZjVjOGNkMWExOWQ4MWU5MTVhYWE4M2JkYjFmOTkwODA2NTMzODQ5
15
- MTRkNzU4OTUyZDMwMzQ0OTY5NTUzMDU5NWYwZmRiOWUzMzBlZjU=