cb-api 18.5.3 → 18.5.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/lib/cb/clients/recommendation.rb +5 -3
- data/lib/cb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8b1c1527e3df5bb0775e208d51a3afd47e9bd6c
|
4
|
+
data.tar.gz: 6bc8dd6b1484e1d4441e10fefd31573669608ffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8505fa7373c42609f90f2111878b4bd60b25a0b6b60c5adbdf48fd1d0b11e82948aa44ec4ce8930988d1dd3c44d45fe159bb8433ed38ccada9749a408006c334
|
7
|
+
data.tar.gz: 71320e93fa21709f9fb1499dff365d46c2106815e76e0967791191df076fa0e93547608f482dad177db8b431ba34433717e4407ed027c0989a54032f8290b4ce
|
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.4 Catch nil Jobs for company recs.
|
6
7
|
* 18.5.3 Catch nil case before even fetching.
|
7
8
|
* 18.5.2 Use fetch instead of nested if statements around company recommendations.
|
8
9
|
* 18.5.1 Fixed the deserialization of the response from job recs for a company did.
|
@@ -67,10 +67,12 @@ module Cb
|
|
67
67
|
json_hash = my_api.cb_get(Cb.configuration.uri_recommendation_for_company, query: { CompanyDID: company_did })
|
68
68
|
jobs = []
|
69
69
|
if json_hash
|
70
|
-
json_hash.fetch('Results', {}).fetch('JobRecommendation', {}).fetch('Jobs', {})
|
71
|
-
|
70
|
+
api_jobs = json_hash.fetch('Results', {}).fetch('JobRecommendation', {}).fetch('Jobs', {})
|
71
|
+
if api_jobs
|
72
|
+
api_jobs.fetch('CompanyJob', []).each do |cur_job|
|
73
|
+
jobs << Models::Job.new(cur_job)
|
74
|
+
end
|
72
75
|
end
|
73
|
-
|
74
76
|
my_api.append_api_responses(jobs, json_hash.fetch('Results', {}).fetch('JobRecommendation', {}))
|
75
77
|
my_api.append_api_responses(jobs, json_hash.fetch('Results', {}))
|
76
78
|
my_api.append_api_responses(jobs, json_hash)
|
data/lib/cb/version.rb
CHANGED