cb-api 18.0.2 → 18.1.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
  SHA1:
3
- metadata.gz: 3e51c5877cb2df88822b22adec748aec9a68b701
4
- data.tar.gz: 5c859bb2bd4520ef5da4632289d090ad29d207df
3
+ metadata.gz: fd9955d0ae203d1d2aa704d67a0472d092a471a6
4
+ data.tar.gz: 97019dd5061c292b061aa0351b05fb787fab79bd
5
5
  SHA512:
6
- metadata.gz: 36fd178e3359871b42a787755db9671537b7665d3c3872cfd24501433b8a16d74fae18327f6af678332c987825450febe32b59f2abb1bfc6026e47b813cb33f5
7
- data.tar.gz: b328a38187612757606ac590cb064c0df75f6cc4ff756722a262181d2f4c48db886b1621ca78c9046abe0d5804af47fdecb86567a7876128c998ea70e9113f37
6
+ metadata.gz: 45c01620e0e656308309d478360bdb8311c3fc70bb29b8d87ef723c5d6244a772eedd5d3fac042da60f063d5a90f78778568b1e091c2d1eaa339ab09080619ec
7
+ data.tar.gz: d5891a94017457bb3933527d54d852749bfdfb36137515d4ba51cdf4d9e99f61d71b769c630de9f514ed5fb9ca9407567462ae695140972f5bc0b7c83d425d4f
@@ -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.1.0 Adding report a job endpoint
6
7
  * 18.0.2 Updating contact info in the gemspec
7
8
  * 18.0.1 Adding job search version 3 query parameters
8
9
  * 18.0.0 Drop support for older ruby (pre 1.93), also adding copyright notices to the files
@@ -104,6 +104,7 @@ module Cb
104
104
  @uri_languages ||= '/consumer/datalist/languages'
105
105
  @uri_desired_job_type ||= '/consumer/datalist/desiredjobtype'
106
106
  @uri_state_list ||= '/ajax/citysuggest.aspx'
107
+ @uri_report_job ||= '/v1/job/report'
107
108
  end
108
109
 
109
110
  def set_attr_accessors
@@ -0,0 +1,22 @@
1
+ # Copyright 2015 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
+
12
+ module Cb
13
+ module Models
14
+ class ReportJob
15
+ attr_accessor :success
16
+
17
+ def initialize(args = {})
18
+ @success = args[:success]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,39 @@
1
+ # Copyright 2015 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
+
12
+ module Cb
13
+ module Requests
14
+ module Job
15
+ class Report < Base
16
+
17
+ def endpoint_uri
18
+ Cb.configuration.uri_report_job
19
+ end
20
+
21
+ def http_method
22
+ :post
23
+ end
24
+
25
+ def body
26
+ {
27
+ developerkey: Cb.configuration.dev_key,
28
+ jobDID: args[:jobDID],
29
+ userID: args[:userID],
30
+ reportType: args[:reportType],
31
+ comments: args[:comments],
32
+ ipAddress: args[:ipAddress]
33
+ }.to_json
34
+ end
35
+
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,34 @@
1
+ # Copyright 2015 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
+
12
+ module Cb
13
+ module Responses
14
+ module Job
15
+ class Report < ApiResponse
16
+
17
+ def validate_api_hash
18
+ required_response_field(root_node, success)
19
+ end
20
+
21
+ def extract_models
22
+ response[root_node].map do |success|
23
+ Cb::Models::ReportJob.new(success: success)
24
+ end
25
+ end
26
+
27
+ def root_node
28
+ 'ResponseReportJob'
29
+ end
30
+
31
+ end
32
+ end
33
+ end
34
+ end
@@ -49,6 +49,8 @@ module Cb
49
49
  Cb::Requests::EmailSubscription::Retrieve => Cb::Responses::EmailSubscription::Response,
50
50
  Cb::Requests::EmailSubscription::Modify => Cb::Responses::EmailSubscription::Response,
51
51
 
52
+ Cb::Requests::Job::Report => Cb::Responses::Job::Report,
53
+
52
54
  Cb::Requests::JobSearch::Get => Cb::Responses::Job::SearchV3,
53
55
 
54
56
  Cb::Requests::Recommendations::Resume => Cb::Responses::Recommendations,
@@ -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.0.2'
12
+ VERSION = '18.1.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: 18.0.2
4
+ version: 18.1.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: 2015-09-01 00:00:00.000000000 Z
11
+ date: 2015-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -272,6 +272,7 @@ files:
272
272
  - lib/cb/models/implementations/job_results.rb
273
273
  - lib/cb/models/implementations/job_results_v3.rb
274
274
  - lib/cb/models/implementations/recommended_job.rb
275
+ - lib/cb/models/implementations/report_job.rb
275
276
  - lib/cb/models/implementations/resume.rb
276
277
  - lib/cb/models/implementations/resume_document.rb
277
278
  - lib/cb/models/implementations/resume_listing.rb
@@ -308,6 +309,7 @@ files:
308
309
  - lib/cb/requests/education/get.rb
309
310
  - lib/cb/requests/email_subscription/modify.rb
310
311
  - lib/cb/requests/email_subscription/retrieve.rb
312
+ - lib/cb/requests/job/report.rb
311
313
  - lib/cb/requests/job_search/get.rb
312
314
  - lib/cb/requests/recommendations/resume_recs.rb
313
315
  - lib/cb/requests/resumes/delete.rb
@@ -338,6 +340,7 @@ files:
338
340
  - lib/cb/responses/employee_types/search.rb
339
341
  - lib/cb/responses/errors.rb
340
342
  - lib/cb/responses/industry/search.rb
343
+ - lib/cb/responses/job/report.rb
341
344
  - lib/cb/responses/job/search.rb
342
345
  - lib/cb/responses/job/search_v3.rb
343
346
  - lib/cb/responses/job/singular.rb