cb-api 18.5.4 → 18.5.5
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 +2 -1
- 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: f4152929bda0d894fabb20ae68601ce56a1d34c5
|
|
4
|
+
data.tar.gz: 5f08fd177c1c82b72a55e7b5de013569f4d0286b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4d735b9d566ba14f248ead8bcb06ab1b1fe8ba0acfed18903e81ab8a8ba3ddcef466cbce9e7dceee7eab1c486f54485e25f91b6414350b20b251c87d00d8b71
|
|
7
|
+
data.tar.gz: 0431fd56ab6499924b1c194275b4e630a46a534d04ae844e50fac9f27ca943d84a01461d6d756206abbfba0fa79725a278df2e8243e03f9270e0f68a623c67b5
|
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.5 Turn company recs response into an array if its not.
|
|
6
7
|
* 18.5.4 Catch nil Jobs for company recs.
|
|
7
8
|
* 18.5.3 Catch nil case before even fetching.
|
|
8
9
|
* 18.5.2 Use fetch instead of nested if statements around company recommendations.
|
|
@@ -69,7 +69,8 @@ module Cb
|
|
|
69
69
|
if json_hash
|
|
70
70
|
api_jobs = json_hash.fetch('Results', {}).fetch('JobRecommendation', {}).fetch('Jobs', {})
|
|
71
71
|
if api_jobs
|
|
72
|
-
api_jobs.fetch('CompanyJob', []).
|
|
72
|
+
company_jobs = [api_jobs.fetch('CompanyJob', [])].flatten.compact
|
|
73
|
+
company_jobs.each do |cur_job|
|
|
73
74
|
jobs << Models::Job.new(cur_job)
|
|
74
75
|
end
|
|
75
76
|
end
|
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.5
|
|
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-
|
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|