cb-api 18.2.2 → 18.3.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: d94be170123838dd15d60cbdac6010c9bfa9a0d5
4
- data.tar.gz: 5b80e292672871ce557d9630f8613dcd2bcc13d5
3
+ metadata.gz: 7aad8d025acb65f7575a58a2bb1880663595ef11
4
+ data.tar.gz: a097d8832a886c01bf1c26b37ed1684281ad3eea
5
5
  SHA512:
6
- metadata.gz: 5ba6f017fb2311a9c9b021e8263547347d51a02aec4e94c2f1e6f1304db9301168fc0030865eb4852731a273bdef7de7cc60090aa40f23d4e0872a7346b17038
7
- data.tar.gz: 846cb27aa3c8216f37f67b0f7c1f726bf0fca9727bfa737641a2ffd4de2c5b2eb7577679565ff5c66781b7a4e65d6b57706cae15760310b58d0689b9d089907a
6
+ metadata.gz: f6e788b98e5a67b7bb3a6e3e9df1c24308978efa1b11b4d1b642cd7a1d974e9c2a4195a6e3a9d2253fd41efdab9e39af7adbe90e9c84816bad599c1abca2e9af
7
+ data.tar.gz: 0dcad0f383cb10bb3bdb1e24a2adfa66872960cf6dc5668bbc34c3490b07e20a2341f318e710e0dc12d206c6937932ccb0091a2161bccfe7f858e30b9ae0d4e2
@@ -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.
@@ -15,7 +15,7 @@ module Cb
15
15
  attr_accessor :success
16
16
 
17
17
  def initialize(args = {})
18
- @success = args[:success]
18
+ @success = args['Success'] || false
19
19
  end
20
20
  end
21
21
  end
@@ -23,14 +23,15 @@ module Cb
23
23
  end
24
24
 
25
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
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(root_node, success)
22
+ required_response_field(success_node, response)
19
23
  end
20
24
 
21
25
  def extract_models
22
- response[root_node].map do |success|
23
- Cb::Models::ReportJob.new(success: success)
24
- end
26
+ Cb::Models::ReportJob.new(response)
25
27
  end
26
28
 
27
- def root_node
28
- 'ResponseReportJob'
29
+ def success_node
30
+ 'Success'
29
31
  end
30
32
 
31
33
  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 = '18.2.2'
12
+ VERSION = '18.3.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.2.2
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-17 00:00:00.000000000 Z
11
+ date: 2015-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty