cb-api 18.5.1 → 18.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/lib/cb/clients/recommendation.rb +4 -13
- data/lib/cb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7d7da2ae7e57a340dc07d413f33ce7c956ccae5
|
4
|
+
data.tar.gz: 86f391f1615866db32c06c54378ef46c58caddcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 596344bab423d89cb7281497467c39756751a0d3a2abfa4295a56c4f934e728ac4a1be6cc8a043e15cd79d1fa5f56a316ea23337a051caacb3aee48d7689dfdb
|
7
|
+
data.tar.gz: c6b90d686e8c6d5b670401d23291d9064c7ca2442c39580d84e851c6e5e3b499cbd016624edcdb58092793e2567a580d8392c4875b329888f986aa6519f2d3e4
|
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.2 Use fetch instead of nested if statements around company recommendations.
|
6
7
|
* 18.5.1 Fixed the deserialization of the response from job recs for a company did.
|
7
8
|
* 18.5.0 Adding support for Cover Letter Update.
|
8
9
|
* 18.4.0 Adding support for Cover Letter APIs - Retrieve, List, and Delete.
|
@@ -66,21 +66,12 @@ module Cb
|
|
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
68
|
jobs = []
|
69
|
-
|
70
|
-
|
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
|
77
|
-
end
|
78
|
-
my_api.append_api_responses(jobs, json_hash['Results']['JobRecommendation'])
|
79
|
-
end
|
80
|
-
|
81
|
-
my_api.append_api_responses(jobs, json_hash['Results'])
|
69
|
+
json_hash.fetch('Results', {}).fetch('JobRecommendation', {}).fetch('Jobs', {}).fetch('CompanyJob', []).each do |cur_job|
|
70
|
+
jobs << Models::Job.new(cur_job)
|
82
71
|
end
|
83
72
|
|
73
|
+
my_api.append_api_responses(jobs, json_hash.fetch('Results', {}).fetch('JobRecommendation', {}))
|
74
|
+
my_api.append_api_responses(jobs, json_hash.fetch('Results', {}))
|
84
75
|
my_api.append_api_responses(jobs, json_hash)
|
85
76
|
end
|
86
77
|
|
data/lib/cb/version.rb
CHANGED
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.
|
4
|
+
version: 18.5.2
|
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-
|
11
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|