cb-api 21.0.1 → 21.1.0

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: 9758543238c9c1ceb281f2d1ab46475bb0a6c959
4
- data.tar.gz: f4b0d53595ba918247c1417694dacf9077d2535e
3
+ metadata.gz: b17a05d6a9bd1ab986878bb1b6726d2a8fb0f522
4
+ data.tar.gz: a827bc2544616d9ad17ab3b49dc8f72672c3dc31
5
5
  SHA512:
6
- metadata.gz: fc6d14c44f3e635c44b17d26e1e35ba085dbc08b3993471770649b83a3cddde3057c8ff28ae164b3380ccee0ac604ebdfaab2ba721e0877eedaa968a4da99462
7
- data.tar.gz: 7825eb67c96ce0faf70f987a67f0f8d3a9a5113d08b2ad3f4eea4488dd7d58f0f2156c6c1475b0d468629db5be96d1c1f3a958cdddbedfb3ee690bd77bfd40f0
6
+ metadata.gz: 39aa255dd57ec3b86c0ec1292e874e4311113220cd019a980ce10a7578d99b19bd7e53cc481dc6301bc842a2adf4a3b9b9f2a793fd7a18fe02b333fdd656d35a
7
+ data.tar.gz: 7f842de241a39129a608b25f7af121cb76b2c62c730820cd66a0e01e7582cace17092fdfbb6339c3ced28f93e52ee98b427c8e626d3ff0ddbaf5e8b8091bfde2
@@ -2,6 +2,7 @@ Version History
2
2
  ====
3
3
  * All Version bumps are required to update this file as well!!
4
4
  ----
5
+ * 21.1.0 Add expired job API (/v1/job/expired)
5
6
  * 21.0.1 JobSearch calls gets the args[:HostSite] in addition to args[:host_site]
6
7
  * 21.0.0 Add browser id api, Add datalists, Removing old data apis, Removing old coverletters version,remove old resume list, expanding the types of exceptions that can be returned
7
8
  * 20.6.0 Add new saved jobs API (/consumer/saved-jobs)
@@ -0,0 +1,23 @@
1
+ # Copyright 2016 CareerBuilder, LLC
2
+ # Licensed under the Apache License, Version 2.0 (the "License");
3
+ # you may not use this file except in compliance with the License.
4
+ # You may obtain a copy of the License at
5
+ #
6
+ # http://www.apache.org/licenses/LICENSE-2.0
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and limitations under the License.
11
+ require_relative 'base'
12
+ module Cb
13
+ module Clients
14
+ class ExpiredJob < Base
15
+ # http://api.careerbuilder.com/ExpiredJobInfo.aspx
16
+ def self.get(args={})
17
+ uri = Cb.configuration.uri_job_expired
18
+ query_params = { 'JobDID' => args[:job_did] }
19
+ cb_client.cb_get(uri, headers: headers(args), query: query_params)
20
+ end
21
+ end
22
+ end
23
+ end
@@ -64,6 +64,7 @@ module Cb
64
64
  @uri_cover_letters ||= '/consumer/coverletters'
65
65
  @uri_data_list ||= '/consumer/datalist'
66
66
  @uri_job_branding ||= '/branding'
67
+ @uri_job_expired ||= '/v1/job/expired'
67
68
  @uri_job_find ||= '/v3/Job'
68
69
  @uri_job_insights ||= '/consumer/job-insights'
69
70
  @uri_job_search ||= '/consumer/jobs/search/'
@@ -51,6 +51,10 @@ module Cb
51
51
  Cb::Clients::EmailSubscription
52
52
  end
53
53
 
54
+ def expired_job
55
+ Cb::Clients::ExpiredJob
56
+ end
57
+
54
58
  def job
55
59
  Cb::Clients::Job
56
60
  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 = '21.0.1'
12
+ VERSION = '21.1.0'
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: 21.0.1
4
+ version: 21.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The CareerBuilder.com Niche and Consumer Development teams
@@ -218,6 +218,7 @@ files:
218
218
  - lib/cb/clients/company.rb
219
219
  - lib/cb/clients/cover_letters.rb
220
220
  - lib/cb/clients/data_list.rb
221
+ - lib/cb/clients/expired_job.rb
221
222
  - lib/cb/clients/job.rb
222
223
  - lib/cb/clients/job_branding.rb
223
224
  - lib/cb/clients/job_insights.rb