cb-api 18.5.2 → 18.5.3
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 +8 -6
- 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: efb7d6140ee83ba89ffd9a2b598f9841f7e06fdb
|
4
|
+
data.tar.gz: ee92ef3353fddb6ff8a077eb9797801e5332f9ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17d1446ba7c84b00f5190bb4e6fce4d172f41fc0dda712ab0d2973d5413ca6a5407f646c8ac2c52b2352b87934fe09a41b273f1cda898af15683857c4ea7b3e6
|
7
|
+
data.tar.gz: f6657b07f1f94b93806f35a86305028626fbde5d3f2f18c52d415c916f5b1321d78c5eaf7d8105af2853cb64d54cfa1666b0e78be32d2834bbea94feef29f572
|
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.3 Catch nil case before even fetching.
|
6
7
|
* 18.5.2 Use fetch instead of nested if statements around company recommendations.
|
7
8
|
* 18.5.1 Fixed the deserialization of the response from job recs for a company did.
|
8
9
|
* 18.5.0 Adding support for Cover Letter Update.
|
@@ -66,13 +66,15 @@ 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
|
-
json_hash
|
70
|
-
|
71
|
-
|
69
|
+
if json_hash
|
70
|
+
json_hash.fetch('Results', {}).fetch('JobRecommendation', {}).fetch('Jobs', {}).fetch('CompanyJob', []).each do |cur_job|
|
71
|
+
jobs << Models::Job.new(cur_job)
|
72
|
+
end
|
72
73
|
|
73
|
-
|
74
|
-
|
75
|
-
|
74
|
+
my_api.append_api_responses(jobs, json_hash.fetch('Results', {}).fetch('JobRecommendation', {}))
|
75
|
+
my_api.append_api_responses(jobs, json_hash.fetch('Results', {}))
|
76
|
+
my_api.append_api_responses(jobs, json_hash)
|
77
|
+
end
|
76
78
|
end
|
77
79
|
|
78
80
|
private
|
data/lib/cb/version.rb
CHANGED