cb-api 18.5.0 → 18.5.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: 7a528b3ab30440eccd01a070105898be492bdba0
4
- data.tar.gz: 40b8622dcf684443ccd1fb8a0cf9af96757be970
3
+ metadata.gz: 9fa80520b6cfb92844ed4e821b2a4e39437a2e01
4
+ data.tar.gz: 262e8228b029d3c33b29574c26478cd70a87bb4c
5
5
  SHA512:
6
- metadata.gz: bde953029280007924d3d3cd52ff1a5e39205461cf68fdc42a8db6aa19a8c41f8d42def51dee2e3decaa91a72c8464e852eed358b2b244cde837daeaf6884667
7
- data.tar.gz: cf7e3f2eca41c415c0dbd35282803d6112b03dc1c4e8aab8a8629165dd2dc5c51582ced8606e87a4cc24d86181db8d6a48893b267f22285e469b35d405a15d11
6
+ metadata.gz: 81c57726c4a640302087408a8f2091d9280b30687494302f8c361f4da162d3f26ac0408e391288a12bdd6d50038826521aec8db9400dcabd41bca2b606d3c31d
7
+ data.tar.gz: e2b1892f03c4b62747543a2d342e2bb9a4e7aeee81b33ab99de7dca88995d852f99fdca3bafa26e0e5139f6984751d0d83b71d28c6ae1e501f51b4f03320cd3e
data/CHANGELOG.md CHANGED
@@ -3,6 +3,7 @@ Version History
3
3
  * All Version bumps are required to update this file as well!!
4
4
  ----
5
5
 
6
+ * 18.5.1 Fixed the deserialization of the response from job recs for a company did.
6
7
  * 18.5.0 Adding support for Cover Letter Update.
7
8
  * 18.4.0 Adding support for Cover Letter APIs - Retrieve, List, and Delete.
8
9
  * 18.3.0 Correcting report a job to use xml request and correctly map model from response.
@@ -65,12 +65,15 @@ module Cb
65
65
  def self.for_company(company_did)
66
66
  my_api = Cb::Utils::Api.instance
67
67
  json_hash = my_api.cb_get(Cb.configuration.uri_recommendation_for_company, query: { CompanyDID: company_did })
68
-
69
68
  jobs = []
70
69
  if json_hash.key?('Results')
71
70
  if json_hash['Results'].key?('JobRecommendation')
72
- json_hash['Results']['JobRecommendation']['Jobs'].each do |cur_job|
73
- jobs << Models::Job.new(cur_job)
71
+ if json_hash['Results']['JobRecommendation'].key?('Jobs')
72
+ if json_hash['Results']['JobRecommendation']['Jobs'].key?('CompanyJob')
73
+ json_hash['Results']['JobRecommendation']['Jobs']['CompanyJob'].each do |cur_job|
74
+ jobs << Models::Job.new(cur_job)
75
+ end
76
+ end
74
77
  end
75
78
  my_api.append_api_responses(jobs, json_hash['Results']['JobRecommendation'])
76
79
  end
data/lib/cb/version.rb CHANGED
@@ -9,5 +9,5 @@
9
9
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
10
  # See the License for the specific language governing permissions and limitations under the License.
11
11
  module Cb
12
- VERSION = '18.5.0'
12
+ VERSION = '18.5.1'
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 18.5.0
4
+ version: 18.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The CareerBuilder.com Niche and Consumer Development teams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-13 00:00:00.000000000 Z
11
+ date: 2015-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty