cb-api 23.1.0 → 23.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 183479dd6fc09798b92b48127eed28314677795e5b5d047d3b3df7cc6bbb15a0
4
- data.tar.gz: c20e3f17757bd00b845a9f491373fa85462b8bbc1f4380007834a9bd2d969e64
3
+ metadata.gz: f31382503bd7ba185cc8f8a59275c6c00cab71d563bb14de6045e6d47d55ae0f
4
+ data.tar.gz: ae8784db6992b6d4b40472f1511fbec1336039ec0695be5b0b9ffd9408433349
5
5
  SHA512:
6
- metadata.gz: 44fe0cd2cf52a1d78795a6fa237ab856c586399b82ac1e39d5580a52896831a3012464cab31725bc7d6b470454f4d25dc5808612d7e7911210d94fb0bb1db6d2
7
- data.tar.gz: 2e592fbb85661648ab1ded6c169e3a6f2af8be7053bedf5466e0c546ce03911d24920a22285ab9fa35f047d32f50cf66b9ac33dbe0cb010eef6f833e8e81e37f
6
+ metadata.gz: d095f1151b421981877fba6cf4c34b6a54c55a2a93c6036d4cb98ec967b2ceb1ad85ae5d6a64bc594da14b56d28714211c2cb82e3dd69c973df4cd8cd3f73b79
7
+ data.tar.gz: 54562eb59d0cbf3b10976642992cd6230f1ad1c3abf89b8be2f63b257f156522d00b559a8404433bf5f1650321633e8b3fac6203eab869ab657bd0d9d4c8d832
@@ -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
@@ -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
- "#{Cb.configuration.uri_job_find}/#{job_id}"
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)
@@ -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'
@@ -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 = '23.1.0'
12
+ VERSION = '23.2.0'
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: 23.1.0
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-14 00:00:00.000000000 Z
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.8
374
+ rubygems_version: 2.7.7
375
375
  signing_key:
376
376
  specification_version: 4
377
377
  summary: Ruby wrapper around Careerbuilder Public API.