cb-api 23.1.0 → 23.2.0
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/job.rb +8 -4
- data/lib/cb/config.rb +1 -0
- data/lib/cb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f31382503bd7ba185cc8f8a59275c6c00cab71d563bb14de6045e6d47d55ae0f
|
4
|
+
data.tar.gz: ae8784db6992b6d4b40472f1511fbec1336039ec0695be5b0b9ffd9408433349
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d095f1151b421981877fba6cf4c34b6a54c55a2a93c6036d4cb98ec967b2ceb1ad85ae5d6a64bc594da14b56d28714211c2cb82e3dd69c973df4cd8cd3f73b79
|
7
|
+
data.tar.gz: 54562eb59d0cbf3b10976642992cd6230f1ad1c3abf89b8be2f63b257f156522d00b559a8404433bf5f1650321633e8b3fac6203eab869ab657bd0d9d4c8d832
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,7 @@ Version History
|
|
2
2
|
====
|
3
3
|
* All Version bumps are required to update this file as well!!
|
4
4
|
----
|
5
|
+
* 23.2.0 Add parameter for job get route
|
5
6
|
* 23.0.1 Make did arg retrieval uppercase
|
6
7
|
* 23.0.0 Add oauth token as param for retrieval of job
|
7
8
|
* 22.10.0 Updated uri_job_find endpoint
|
data/lib/cb/clients/job.rb
CHANGED
@@ -13,8 +13,8 @@ module Cb
|
|
13
13
|
module Clients
|
14
14
|
class Job < Base
|
15
15
|
class << self
|
16
|
-
def get(oauth_token, args = {})
|
17
|
-
response = cb_client.cb_get(uri_get(args[:Did]), headers: headers(oauth_token), query: args)
|
16
|
+
def get(oauth_token, args = {}, use_v3_endpoint = false)
|
17
|
+
response = cb_client.cb_get(uri_get(args[:Did], use_v3_endpoint), headers: headers(oauth_token), query: args)
|
18
18
|
not_found_check(response)
|
19
19
|
response
|
20
20
|
end
|
@@ -25,8 +25,12 @@ module Cb
|
|
25
25
|
|
26
26
|
private
|
27
27
|
|
28
|
-
def uri_get job_id
|
29
|
-
|
28
|
+
def uri_get (job_id, use_v3_endpoint)
|
29
|
+
if use_v3_endpoint
|
30
|
+
Cb.configuration.uri_job_find_v3
|
31
|
+
else
|
32
|
+
"#{Cb.configuration.uri_job_find}/#{job_id}"
|
33
|
+
end
|
30
34
|
end
|
31
35
|
|
32
36
|
def headers(oauth_token)
|
data/lib/cb/config.rb
CHANGED
@@ -66,6 +66,7 @@ module Cb
|
|
66
66
|
@uri_job_branding ||= '/branding'
|
67
67
|
@uri_job_expired ||= '/v1/job/expired'
|
68
68
|
@uri_job_find ||= '/consumer/job/details'
|
69
|
+
@uri_job_find_v3 ||= 'v3/job'
|
69
70
|
@uri_job_insights ||= '/consumer/job-insights'
|
70
71
|
@uri_job_search ||= '/consumer/jobs/search/'
|
71
72
|
@uri_keyword_insights ||= '/consumer/insights/keywords'
|
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: 23.
|
4
|
+
version: 23.2.0
|
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: 2018-12-
|
11
|
+
date: 2018-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -371,7 +371,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
371
371
|
version: '0'
|
372
372
|
requirements: []
|
373
373
|
rubyforge_project:
|
374
|
-
rubygems_version: 2.7.
|
374
|
+
rubygems_version: 2.7.7
|
375
375
|
signing_key:
|
376
376
|
specification_version: 4
|
377
377
|
summary: Ruby wrapper around Careerbuilder Public API.
|