wolf_core 1.0.25 → 1.0.26
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5eacee11e0130372df32b878a83782d66062d28e71aaf96162022bbdfd263eb
|
4
|
+
data.tar.gz: c8bc8ae122582cc6b5a33a973fa5ca994456c65c91d7f80414f73a4e1ec4a75b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42b1f4bfc7024abf9382bf64feea326145454c720d66b10e5e9852461ac63445f671f26045ca6fd92d4805b9075ff471b1682c85a8fd847d408cce84cbefc45e
|
7
|
+
data.tar.gz: 98da5c9a9efa6c532c7e6990b30e4becaeb0e6edb8d167eef20e625ffe7c45899464262d93a441de33066b9a867832efed232476f2b38f6fa284c81e5df07339
|
@@ -3,12 +3,13 @@ module WolfCore
|
|
3
3
|
module PositionsOperations
|
4
4
|
include WolfCore::HttpOperations
|
5
5
|
|
6
|
-
def create_position!(erecruit_token:, erecruit_platform_url:, position:, error_message:)
|
6
|
+
def create_position!(erecruit_token:, erecruit_platform_url:, position:, error_message:, error_data: nil)
|
7
7
|
response = safe_http_post(
|
8
8
|
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
9
9
|
url: "#{erecruit_platform_url}/Position",
|
10
10
|
body: position,
|
11
|
-
error_message: error_message
|
11
|
+
error_message: error_message,
|
12
|
+
error_data: error_data
|
12
13
|
)
|
13
14
|
response.body
|
14
15
|
end
|
@@ -48,7 +48,7 @@ module WolfCore
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
-
def safe_http_post(url:, headers: {}, body: nil, query: nil, error_message: nil, title: nil)
|
51
|
+
def safe_http_post(url:, headers: {}, body: nil, query: nil, error_message: nil, title: nil, error_data: nil)
|
52
52
|
response = http_post(url: url, headers: headers, body: body, query: query)
|
53
53
|
response = parse_http_response(response)
|
54
54
|
|
@@ -56,7 +56,7 @@ module WolfCore
|
|
56
56
|
log_object response, title: title
|
57
57
|
|
58
58
|
error_message ||= "Error on safe_http_post"
|
59
|
-
validate_http_response(response: response, message: error_message)
|
59
|
+
validate_http_response(response: response, message: error_message, error_data: error_data)
|
60
60
|
|
61
61
|
response
|
62
62
|
end
|
data/lib/wolf_core/version.rb
CHANGED