cb-api 18.5.3 → 18.5.4

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: efb7d6140ee83ba89ffd9a2b598f9841f7e06fdb
4
- data.tar.gz: ee92ef3353fddb6ff8a077eb9797801e5332f9ae
3
+ metadata.gz: f8b1c1527e3df5bb0775e208d51a3afd47e9bd6c
4
+ data.tar.gz: 6bc8dd6b1484e1d4441e10fefd31573669608ffd
5
5
  SHA512:
6
- metadata.gz: 17d1446ba7c84b00f5190bb4e6fce4d172f41fc0dda712ab0d2973d5413ca6a5407f646c8ac2c52b2352b87934fe09a41b273f1cda898af15683857c4ea7b3e6
7
- data.tar.gz: f6657b07f1f94b93806f35a86305028626fbde5d3f2f18c52d415c916f5b1321d78c5eaf7d8105af2853cb64d54cfa1666b0e78be32d2834bbea94feef29f572
6
+ metadata.gz: 8505fa7373c42609f90f2111878b4bd60b25a0b6b60c5adbdf48fd1d0b11e82948aa44ec4ce8930988d1dd3c44d45fe159bb8433ed38ccada9749a408006c334
7
+ data.tar.gz: 71320e93fa21709f9fb1499dff365d46c2106815e76e0967791191df076fa0e93547608f482dad177db8b431ba34433717e4407ed027c0989a54032f8290b4ce
@@ -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', {}).fetch('CompanyJob', []).each do |cur_job|
71
- jobs << Models::Job.new(cur_job)
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)
@@ -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.3'
12
+ VERSION = '18.5.4'
13
13
  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: 18.5.3
4
+ version: 18.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - The CareerBuilder.com Niche and Consumer Development teams