cb-api 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,8 +16,9 @@ module Cb
16
16
 
17
17
  jobs = Array.new
18
18
  if !json_hash['ResponseJobSearch'].nil? && !json_hash['ResponseJobSearch']['Results'].nil?
19
- json_hash['ResponseJobSearch']['Results']['JobSearchResult'].each { |job_hash| jobs.push(CbJob.new(job_hash)) }
20
-
19
+ job_results = json_hash['ResponseJobSearch']['Results']['JobSearchResult']
20
+ job_results = [job_results] if !job_results.is_a?(Array)
21
+ job_results.each { |job_hash| jobs.push(CbJob.new(job_hash)) }
21
22
  my_api.append_api_responses(jobs, json_hash['ResponseJobSearch'])
22
23
 
23
24
  if response_has_search_metadata?(json_hash['ResponseJobSearch'])
data/lib/cb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -19,7 +19,7 @@ authors:
19
19
  autorequire:
20
20
  bindir: bin
21
21
  cert_chain: []
22
- date: 2013-11-04 00:00:00.000000000 Z
22
+ date: 2013-11-06 00:00:00.000000000 Z
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
25
25
  name: httparty
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  requirements: []
250
250
  rubyforge_project:
251
- rubygems_version: 1.8.23
251
+ rubygems_version: 1.8.25
252
252
  signing_key:
253
253
  specification_version: 3
254
254
  summary: Ruby wrapper around Careerbuilder Public API.