cb-api 18.5.4 → 18.5.5

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: f8b1c1527e3df5bb0775e208d51a3afd47e9bd6c
4
- data.tar.gz: 6bc8dd6b1484e1d4441e10fefd31573669608ffd
3
+ metadata.gz: f4152929bda0d894fabb20ae68601ce56a1d34c5
4
+ data.tar.gz: 5f08fd177c1c82b72a55e7b5de013569f4d0286b
5
5
  SHA512:
6
- metadata.gz: 8505fa7373c42609f90f2111878b4bd60b25a0b6b60c5adbdf48fd1d0b11e82948aa44ec4ce8930988d1dd3c44d45fe159bb8433ed38ccada9749a408006c334
7
- data.tar.gz: 71320e93fa21709f9fb1499dff365d46c2106815e76e0967791191df076fa0e93547608f482dad177db8b431ba34433717e4407ed027c0989a54032f8290b4ce
6
+ metadata.gz: c4d735b9d566ba14f248ead8bcb06ab1b1fe8ba0acfed18903e81ab8a8ba3ddcef466cbce9e7dceee7eab1c486f54485e25f91b6414350b20b251c87d00d8b71
7
+ data.tar.gz: 0431fd56ab6499924b1c194275b4e630a46a534d04ae844e50fac9f27ca943d84a01461d6d756206abbfba0fa79725a278df2e8243e03f9270e0f68a623c67b5
@@ -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', []).each do |cur_job|
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
@@ -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.4'
12
+ VERSION = '18.5.5'
13
13
  end
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
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-04 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty