cb-api 18.2.2 → 18.3.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 +4 -4
- data/CHANGELOG.md +1 -0
- data/lib/cb/models/implementations/report_job.rb +1 -1
- data/lib/cb/requests/job/report.rb +9 -8
- data/lib/cb/responses/job/report.rb +8 -6
- data/lib/cb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7aad8d025acb65f7575a58a2bb1880663595ef11
|
4
|
+
data.tar.gz: a097d8832a886c01bf1c26b37ed1684281ad3eea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6e788b98e5a67b7bb3a6e3e9df1c24308978efa1b11b4d1b642cd7a1d974e9c2a4195a6e3a9d2253fd41efdab9e39af7adbe90e9c84816bad599c1abca2e9af
|
7
|
+
data.tar.gz: 0dcad0f383cb10bb3bdb1e24a2adfa66872960cf6dc5668bbc34c3490b07e20a2341f318e710e0dc12d206c6937932ccb0091a2161bccfe7f858e30b9ae0d4e2
|
data/CHANGELOG.md
CHANGED
@@ -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.3.0 Correcting report a job to use xml request and correctly map model from response.
|
6
7
|
* 18.2.2 Filter out release directory related information when getting the API caller.
|
7
8
|
* 18.2.1 No functional changes, just renamed `execute_http_request` to `timed_http_request`.
|
8
9
|
* 18.2.0 Collect API caller info a level above lib/cb/client.rb and get timings on errors as well.
|
@@ -23,14 +23,15 @@ module Cb
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def body
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
26
|
+
<<-eos
|
27
|
+
<Request>
|
28
|
+
<DeveloperKey>#{Cb.configuration.dev_key}</DeveloperKey>
|
29
|
+
<JobDID>#{args[:job_id]}</JobDID>
|
30
|
+
<UserID>#{args[:user_id]}</UserID>
|
31
|
+
<ReportType>#{args[:report_type]}</ReportType>
|
32
|
+
<Comments>#{args[:comments]}</Comments>
|
33
|
+
</Request>
|
34
|
+
eos
|
34
35
|
end
|
35
36
|
|
36
37
|
end
|
@@ -14,18 +14,20 @@ module Cb
|
|
14
14
|
module Job
|
15
15
|
class Report < ApiResponse
|
16
16
|
|
17
|
+
def hash_containing_metadata
|
18
|
+
response
|
19
|
+
end
|
20
|
+
|
17
21
|
def validate_api_hash
|
18
|
-
required_response_field(
|
22
|
+
required_response_field(success_node, response)
|
19
23
|
end
|
20
24
|
|
21
25
|
def extract_models
|
22
|
-
response
|
23
|
-
Cb::Models::ReportJob.new(success: success)
|
24
|
-
end
|
26
|
+
Cb::Models::ReportJob.new(response)
|
25
27
|
end
|
26
28
|
|
27
|
-
def
|
28
|
-
'
|
29
|
+
def success_node
|
30
|
+
'Success'
|
29
31
|
end
|
30
32
|
|
31
33
|
end
|
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: 18.
|
4
|
+
version: 18.3.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-
|
11
|
+
date: 2015-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|