cb-api 5.3.1 → 5.3.2rc1

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.
Files changed (4) hide show
  1. checksums.yaml +15 -0
  2. data/lib/cb/utils/api.rb +9 -1
  3. data/lib/cb/version.rb +1 -1
  4. metadata +69 -95
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDBiZjBiMjNhYTI3MThkNjdiNGM0N2I3ODU0OWU5N2MwZGJhOTU2Mg==
5
+ data.tar.gz: !binary |-
6
+ NjRiNTlmOWJjZDJjMjVmOTAxODE2MmNiMjY4ZDA4MjYyN2Q4MTA1Mw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NWJlOTU0NTMwYWUwZDU3YjVjNGU2ZTEyNjgwYmI0NDY5NjZkY2E2ZDY1NjBi
10
+ NmVmY2Q1MWE5ZDM5OTU4NzJkM2IxYmM0NGU3YmE3MWFhZDBiYzUzY2YxNWY2
11
+ Mjk4Y2U1NTI1N2JiNGRlZmFmYTViNWY3ZTEyYTE0NjMxZGRlMjA=
12
+ data.tar.gz: !binary |-
13
+ NzMxMTU4M2EzODVmZjU1OTUxOTFkNjg2NTc1NTNlMDQ0ZmY2OTk1NDBiNjQ3
14
+ Njc0MTcyZTYwMmYzNjNmNTNiYTI1MjhmZTM1MWM0ZWEwYWM0OTU2NjA3NmY3
15
+ ZDYwZDA0OGU1M2U3YjhjZTZkYTVlMzQ4NGNkZTBkYzZmNjhiNjI=
@@ -41,7 +41,7 @@ module Cb
41
41
  end
42
42
 
43
43
  def append_api_responses(obj, resp)
44
- meta_class = obj.respond_to?('cb_response') ? obj.cb_response : Cb::Utils::MetaValues.new
44
+ meta_class = ensure_non_nil_metavalues(obj)
45
45
 
46
46
  resp.each do |api_key, api_value|
47
47
  meta_name = format_hash_key(api_key)
@@ -88,6 +88,14 @@ module Cb
88
88
 
89
89
  private
90
90
 
91
+ def ensure_non_nil_metavalues(obj)
92
+ if obj.respond_to?('cb_response') && !obj.cb_response.nil?
93
+ obj.cb_response
94
+ else
95
+ Cb::Utils::MetaValues.new
96
+ end
97
+ end
98
+
91
99
  def self.camelize(input)
92
100
  input.sub!(/^[a-z\d]*/) { $&.capitalize }
93
101
  input.gsub(/(?:_|(\/))([a-z\d]*)/) { "#{$2.capitalize}" }.gsub('/', '::')
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '5.3.1'
2
+ VERSION = '5.3.2rc1'
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.1
5
- prerelease:
4
+ version: 5.3.2rc1
6
5
  platform: ruby
7
6
  authors:
8
7
  - The CareerBuilder.com Niche and Consumer Development teams
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-03-07 00:00:00.000000000 Z
11
+ date: 2014-03-10 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: httparty
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -41,7 +37,6 @@ dependencies:
41
37
  type: :runtime
42
38
  prerelease: false
43
39
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
41
  - - ~>
47
42
  - !ruby/object:Gem::Version
@@ -52,7 +47,6 @@ dependencies:
52
47
  - !ruby/object:Gem::Dependency
53
48
  name: nori
54
49
  requirement: !ruby/object:Gem::Requirement
55
- none: false
56
50
  requirements:
57
51
  - - ~>
58
52
  - !ruby/object:Gem::Version
@@ -60,7 +54,6 @@ dependencies:
60
54
  type: :runtime
61
55
  prerelease: false
62
56
  version_requirements: !ruby/object:Gem::Requirement
63
- none: false
64
57
  requirements:
65
58
  - - ~>
66
59
  - !ruby/object:Gem::Version
@@ -68,7 +61,6 @@ dependencies:
68
61
  - !ruby/object:Gem::Dependency
69
62
  name: xml-simple
70
63
  requirement: !ruby/object:Gem::Requirement
71
- none: false
72
64
  requirements:
73
65
  - - ~>
74
66
  - !ruby/object:Gem::Version
@@ -76,7 +68,6 @@ dependencies:
76
68
  type: :runtime
77
69
  prerelease: false
78
70
  version_requirements: !ruby/object:Gem::Requirement
79
- none: false
80
71
  requirements:
81
72
  - - ~>
82
73
  - !ruby/object:Gem::Version
@@ -84,7 +75,6 @@ dependencies:
84
75
  - !ruby/object:Gem::Dependency
85
76
  name: rake
86
77
  requirement: !ruby/object:Gem::Requirement
87
- none: false
88
78
  requirements:
89
79
  - - ! '>='
90
80
  - !ruby/object:Gem::Version
@@ -92,7 +82,6 @@ dependencies:
92
82
  type: :development
93
83
  prerelease: false
94
84
  version_requirements: !ruby/object:Gem::Requirement
95
- none: false
96
85
  requirements:
97
86
  - - ! '>='
98
87
  - !ruby/object:Gem::Version
@@ -100,7 +89,6 @@ dependencies:
100
89
  - !ruby/object:Gem::Dependency
101
90
  name: webmock
102
91
  requirement: !ruby/object:Gem::Requirement
103
- none: false
104
92
  requirements:
105
93
  - - ~>
106
94
  - !ruby/object:Gem::Version
@@ -108,7 +96,6 @@ dependencies:
108
96
  type: :development
109
97
  prerelease: false
110
98
  version_requirements: !ruby/object:Gem::Requirement
111
- none: false
112
99
  requirements:
113
100
  - - ~>
114
101
  - !ruby/object:Gem::Version
@@ -116,7 +103,6 @@ dependencies:
116
103
  - !ruby/object:Gem::Dependency
117
104
  name: simplecov
118
105
  requirement: !ruby/object:Gem::Requirement
119
- none: false
120
106
  requirements:
121
107
  - - ! '>='
122
108
  - !ruby/object:Gem::Version
@@ -124,7 +110,6 @@ dependencies:
124
110
  type: :development
125
111
  prerelease: false
126
112
  version_requirements: !ruby/object:Gem::Requirement
127
- none: false
128
113
  requirements:
129
114
  - - ! '>='
130
115
  - !ruby/object:Gem::Version
@@ -132,7 +117,6 @@ dependencies:
132
117
  - !ruby/object:Gem::Dependency
133
118
  name: rspec
134
119
  requirement: !ruby/object:Gem::Requirement
135
- none: false
136
120
  requirements:
137
121
  - - ! '>='
138
122
  - !ruby/object:Gem::Version
@@ -140,7 +124,6 @@ dependencies:
140
124
  type: :development
141
125
  prerelease: false
142
126
  version_requirements: !ruby/object:Gem::Requirement
143
- none: false
144
127
  requirements:
145
128
  - - ! '>='
146
129
  - !ruby/object:Gem::Version
@@ -148,7 +131,6 @@ dependencies:
148
131
  - !ruby/object:Gem::Dependency
149
132
  name: rdoc
150
133
  requirement: !ruby/object:Gem::Requirement
151
- none: false
152
134
  requirements:
153
135
  - - ~>
154
136
  - !ruby/object:Gem::Version
@@ -156,7 +138,6 @@ dependencies:
156
138
  type: :development
157
139
  prerelease: false
158
140
  version_requirements: !ruby/object:Gem::Requirement
159
- none: false
160
141
  requirements:
161
142
  - - ~>
162
143
  - !ruby/object:Gem::Version
@@ -164,7 +145,6 @@ dependencies:
164
145
  - !ruby/object:Gem::Dependency
165
146
  name: rspec-pride
166
147
  requirement: !ruby/object:Gem::Requirement
167
- none: false
168
148
  requirements:
169
149
  - - ~>
170
150
  - !ruby/object:Gem::Version
@@ -172,7 +152,6 @@ dependencies:
172
152
  type: :development
173
153
  prerelease: false
174
154
  version_requirements: !ruby/object:Gem::Requirement
175
- none: false
176
155
  requirements:
177
156
  - - ~>
178
157
  - !ruby/object:Gem::Version
@@ -180,7 +159,6 @@ dependencies:
180
159
  - !ruby/object:Gem::Dependency
181
160
  name: pry
182
161
  requirement: !ruby/object:Gem::Requirement
183
- none: false
184
162
  requirements:
185
163
  - - '='
186
164
  - !ruby/object:Gem::Version
@@ -188,7 +166,6 @@ dependencies:
188
166
  type: :development
189
167
  prerelease: false
190
168
  version_requirements: !ruby/object:Gem::Requirement
191
- none: false
192
169
  requirements:
193
170
  - - '='
194
171
  - !ruby/object:Gem::Version
@@ -196,7 +173,6 @@ dependencies:
196
173
  - !ruby/object:Gem::Dependency
197
174
  name: rb-readline
198
175
  requirement: !ruby/object:Gem::Requirement
199
- none: false
200
176
  requirements:
201
177
  - - ~>
202
178
  - !ruby/object:Gem::Version
@@ -204,7 +180,6 @@ dependencies:
204
180
  type: :development
205
181
  prerelease: false
206
182
  version_requirements: !ruby/object:Gem::Requirement
207
- none: false
208
183
  requirements:
209
184
  - - ~>
210
185
  - !ruby/object:Gem::Version
@@ -215,110 +190,109 @@ executables: []
215
190
  extensions: []
216
191
  extra_rdoc_files: []
217
192
  files:
193
+ - README.md
218
194
  - lib/cb.rb
219
- - lib/cb/version.rb
220
- - lib/cb/criteria/job/details.rb
221
- - lib/cb/criteria/application/resume.rb
222
- - lib/cb/criteria/application/update.rb
223
- - lib/cb/criteria/application/get.rb
195
+ - lib/cb/clients/anon_saved_search.rb
196
+ - lib/cb/clients/application.rb
197
+ - lib/cb/clients/application_external.rb
198
+ - lib/cb/clients/category.rb
199
+ - lib/cb/clients/company.rb
200
+ - lib/cb/clients/education.rb
201
+ - lib/cb/clients/email_subscription.rb
202
+ - lib/cb/clients/employee_types.rb
203
+ - lib/cb/clients/job.rb
204
+ - lib/cb/clients/job_branding.rb
205
+ - lib/cb/clients/recommendation.rb
206
+ - lib/cb/clients/saved_search.rb
207
+ - lib/cb/clients/spot.rb
208
+ - lib/cb/clients/talent_network.rb
209
+ - lib/cb/clients/user.rb
210
+ - lib/cb/config.rb
211
+ - lib/cb/convenience.rb
224
212
  - lib/cb/criteria/application/cover_letter.rb
225
- - lib/cb/criteria/application/response.rb
226
213
  - lib/cb/criteria/application/create.rb
214
+ - lib/cb/criteria/application/get.rb
215
+ - lib/cb/criteria/application/response.rb
216
+ - lib/cb/criteria/application/resume.rb
217
+ - lib/cb/criteria/application/update.rb
218
+ - lib/cb/criteria/job/details.rb
227
219
  - lib/cb/criteria/spot/retrieve.rb
228
- - lib/cb/responses/anonymous_saved_search/delete.rb
229
- - lib/cb/responses/anonymous_saved_search/create.rb
230
- - lib/cb/responses/application.rb
231
- - lib/cb/responses/metadata.rb
232
- - lib/cb/responses/job/singular.rb
233
- - lib/cb/responses/job/search.rb
234
- - lib/cb/responses/spot/retrieve_response.rb
235
- - lib/cb/responses/api_response.rb
236
- - lib/cb/responses/user/check_existing.rb
237
- - lib/cb/responses/timing.rb
238
- - lib/cb/responses/saved_search/list.rb
239
- - lib/cb/responses/saved_search/singular.rb
240
- - lib/cb/responses/saved_search/delete.rb
241
- - lib/cb/responses/employee_types/search.rb
242
- - lib/cb/responses/errors.rb
243
220
  - lib/cb/exceptions.rb
244
- - lib/cb/config.rb
245
221
  - lib/cb/models/api_response_model.rb
246
- - lib/cb/models/implementations/job_branding.rb
247
222
  - lib/cb/models/implementations/application.rb
248
- - lib/cb/models/implementations/application/resume.rb
249
223
  - lib/cb/models/implementations/application/cover_letter.rb
250
224
  - lib/cb/models/implementations/application/response.rb
251
- - lib/cb/models/implementations/job.rb
252
- - lib/cb/models/implementations/user.rb
253
- - lib/cb/models/implementations/job_results.rb
254
- - lib/cb/models/implementations/education.rb
225
+ - lib/cb/models/implementations/application/resume.rb
255
226
  - lib/cb/models/implementations/application_external.rb
256
- - lib/cb/models/implementations/saved_search.rb
257
- - lib/cb/models/implementations/employee_type.rb
227
+ - lib/cb/models/implementations/branding/media.rb
258
228
  - lib/cb/models/implementations/branding/section.rb
259
- - lib/cb/models/implementations/branding/styles/job_details.rb
260
- - lib/cb/models/implementations/branding/styles/content.rb
261
- - lib/cb/models/implementations/branding/styles/headings.rb
262
- - lib/cb/models/implementations/branding/styles/page.rb
263
- - lib/cb/models/implementations/branding/styles/container.rb
229
+ - lib/cb/models/implementations/branding/style.rb
264
230
  - lib/cb/models/implementations/branding/styles/base.rb
265
- - lib/cb/models/implementations/branding/styles/css_adapter.rb
266
231
  - lib/cb/models/implementations/branding/styles/buttons.rb
267
232
  - lib/cb/models/implementations/branding/styles/company_info.rb
268
- - lib/cb/models/implementations/branding/style.rb
269
- - lib/cb/models/implementations/branding/media.rb
233
+ - lib/cb/models/implementations/branding/styles/container.rb
234
+ - lib/cb/models/implementations/branding/styles/content.rb
235
+ - lib/cb/models/implementations/branding/styles/css_adapter.rb
236
+ - lib/cb/models/implementations/branding/styles/headings.rb
237
+ - lib/cb/models/implementations/branding/styles/job_details.rb
238
+ - lib/cb/models/implementations/branding/styles/page.rb
270
239
  - lib/cb/models/implementations/branding/widget.rb
271
- - lib/cb/models/implementations/company.rb
272
240
  - lib/cb/models/implementations/category.rb
273
- - lib/cb/models/implementations/talent_network.rb
274
- - lib/cb/models/implementations/spot.rb
241
+ - lib/cb/models/implementations/company.rb
242
+ - lib/cb/models/implementations/education.rb
275
243
  - lib/cb/models/implementations/email_subscription.rb
276
- - lib/cb/convenience.rb
277
- - lib/cb/clients/job_branding.rb
278
- - lib/cb/clients/recommendation.rb
279
- - lib/cb/clients/application.rb
280
- - lib/cb/clients/employee_types.rb
281
- - lib/cb/clients/job.rb
282
- - lib/cb/clients/user.rb
283
- - lib/cb/clients/education.rb
284
- - lib/cb/clients/application_external.rb
285
- - lib/cb/clients/saved_search.rb
286
- - lib/cb/clients/company.rb
287
- - lib/cb/clients/category.rb
288
- - lib/cb/clients/talent_network.rb
289
- - lib/cb/clients/anon_saved_search.rb
290
- - lib/cb/clients/spot.rb
291
- - lib/cb/clients/email_subscription.rb
292
- - lib/cb/utils/response_array_extractor.rb
293
- - lib/cb/utils/country.rb
294
- - lib/cb/utils/validator.rb
295
- - lib/cb/utils/meta_values.rb
244
+ - lib/cb/models/implementations/employee_type.rb
245
+ - lib/cb/models/implementations/job.rb
246
+ - lib/cb/models/implementations/job_branding.rb
247
+ - lib/cb/models/implementations/job_results.rb
248
+ - lib/cb/models/implementations/saved_search.rb
249
+ - lib/cb/models/implementations/spot.rb
250
+ - lib/cb/models/implementations/talent_network.rb
251
+ - lib/cb/models/implementations/user.rb
252
+ - lib/cb/responses/anonymous_saved_search/create.rb
253
+ - lib/cb/responses/anonymous_saved_search/delete.rb
254
+ - lib/cb/responses/api_response.rb
255
+ - lib/cb/responses/application.rb
256
+ - lib/cb/responses/employee_types/search.rb
257
+ - lib/cb/responses/errors.rb
258
+ - lib/cb/responses/job/search.rb
259
+ - lib/cb/responses/job/singular.rb
260
+ - lib/cb/responses/metadata.rb
261
+ - lib/cb/responses/saved_search/delete.rb
262
+ - lib/cb/responses/saved_search/list.rb
263
+ - lib/cb/responses/saved_search/singular.rb
264
+ - lib/cb/responses/spot/retrieve_response.rb
265
+ - lib/cb/responses/timing.rb
266
+ - lib/cb/responses/user/check_existing.rb
296
267
  - lib/cb/utils/api.rb
268
+ - lib/cb/utils/country.rb
297
269
  - lib/cb/utils/fluid_attributes.rb
298
- - README.md
270
+ - lib/cb/utils/meta_values.rb
271
+ - lib/cb/utils/response_array_extractor.rb
272
+ - lib/cb/utils/validator.rb
273
+ - lib/cb/version.rb
299
274
  homepage: http://api.careerbuilder.com
300
275
  licenses:
301
276
  - MIT
277
+ metadata: {}
302
278
  post_install_message:
303
279
  rdoc_options: []
304
280
  require_paths:
305
281
  - lib
306
282
  required_ruby_version: !ruby/object:Gem::Requirement
307
- none: false
308
283
  requirements:
309
284
  - - ! '>='
310
285
  - !ruby/object:Gem::Version
311
286
  version: '0'
312
287
  required_rubygems_version: !ruby/object:Gem::Requirement
313
- none: false
314
288
  requirements:
315
- - - ! '>='
289
+ - - ! '>'
316
290
  - !ruby/object:Gem::Version
317
- version: '0'
291
+ version: 1.3.1
318
292
  requirements: []
319
293
  rubyforge_project:
320
- rubygems_version: 1.8.25
294
+ rubygems_version: 2.2.1
321
295
  signing_key:
322
- specification_version: 3
296
+ specification_version: 4
323
297
  summary: Ruby wrapper around Careerbuilder Public API.
324
298
  test_files: []