wolf_core 1.0.21 → 1.0.23
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: 4300d890363c405f730779d9dabbb80685c6953a360da6c1d9a6fda6eb269013
|
4
|
+
data.tar.gz: d41b0ae001c0651650a2770de5f3ffc0972aeda35f24f96ed2d048b6f44d9a9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bbd1eb48078983edd62a8297f85fd4f3b4c0af59524e32baf043b22fb460a4b5373f2bf28c096d2538dfa72092b62fd772cffe0e98bb172081b77c9e565d9e4
|
7
|
+
data.tar.gz: 79bbbe38c14dcd97b47cf7ee6e0344b2b3749bba364e10e5d4330f3c7628ee1ae6fb6b606383469d38a90665f2dfb639b7681c319b461970c82d867080e19f29
|
@@ -7,35 +7,35 @@ module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
|
|
7
7
|
response = safe_http_post(
|
8
8
|
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
9
9
|
url: erecruit_platform_url.to_s,
|
10
|
-
|
10
|
+
body: company,
|
11
11
|
error_message: error_message
|
12
12
|
)
|
13
|
-
|
13
|
+
response.body
|
14
14
|
end
|
15
15
|
|
16
|
-
def create_company(erecruit_token:,
|
17
|
-
|
16
|
+
def create_company(erecruit_token:, erecruit_platform_url:, company:)
|
17
|
+
parsed_http_post(
|
18
18
|
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
19
19
|
url: erecruit_platform_url.to_s,
|
20
|
-
|
20
|
+
body: company
|
21
21
|
)
|
22
22
|
end
|
23
23
|
|
24
24
|
def update_company!(erecruit_token:, erecruit_platform_url:, company:, company_id:, error_message:)
|
25
|
-
response =
|
25
|
+
response = safe_http_put(
|
26
26
|
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
27
27
|
url: "#{erecruit_platform_url}/#{company_id}",
|
28
|
-
|
28
|
+
body: company,
|
29
29
|
error_message: error_message
|
30
30
|
)
|
31
|
-
|
31
|
+
response.body
|
32
32
|
end
|
33
33
|
|
34
34
|
def update_company(erecruit_token:, erecruit_platform_url:, company:, company_id:)
|
35
|
-
|
35
|
+
parsed_http_put(
|
36
36
|
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
37
37
|
url: "#{erecruit_platform_url}/#{company_id}",
|
38
|
-
|
38
|
+
body: company
|
39
39
|
)
|
40
40
|
end
|
41
41
|
end
|
data/lib/wolf_core/version.rb
CHANGED