wolf_core 1.0.23 → 1.0.25

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: 4300d890363c405f730779d9dabbb80685c6953a360da6c1d9a6fda6eb269013
4
- data.tar.gz: d41b0ae001c0651650a2770de5f3ffc0972aeda35f24f96ed2d048b6f44d9a9a
3
+ metadata.gz: 5a5ede7bc065bbd9cc72bad56f2fac051ee146106252b790cc87354cd6ed5903
4
+ data.tar.gz: e152596322115a6026bc7811a533c324e82f37578abd2c6c814706aed04d86c3
5
5
  SHA512:
6
- metadata.gz: 5bbd1eb48078983edd62a8297f85fd4f3b4c0af59524e32baf043b22fb460a4b5373f2bf28c096d2538dfa72092b62fd772cffe0e98bb172081b77c9e565d9e4
7
- data.tar.gz: 79bbbe38c14dcd97b47cf7ee6e0344b2b3749bba364e10e5d4330f3c7628ee1ae6fb6b606383469d38a90665f2dfb639b7681c319b461970c82d867080e19f29
6
+ metadata.gz: 3c41cd83cdf6c69ae6b56045b8b4a9d820ddea66e5f9798a4a9519bf0326585e301c5c73d9ff0fbe2c2bac37d40abdff828fac8528ef9c7d585d27beb4156a1f
7
+ data.tar.gz: 4af861cc31cac9eb0ddc8effb60821ff02c84f7f2f0644d7d14121ffdacb4d28bbe1030991aee35e2f72c259315ea9cc1a395a1e1ce50865910091b2424b4deb
@@ -6,7 +6,7 @@ module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
6
6
  def create_company!(erecruit_token:, company:, erecruit_platform_url:, error_message:)
7
7
  response = safe_http_post(
8
8
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
9
- url: erecruit_platform_url.to_s,
9
+ url: "#{erecruit_platform_url}/Company",
10
10
  body: company,
11
11
  error_message: error_message
12
12
  )
@@ -16,7 +16,7 @@ module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
16
16
  def create_company(erecruit_token:, erecruit_platform_url:, company:)
17
17
  parsed_http_post(
18
18
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
19
- url: erecruit_platform_url.to_s,
19
+ url: "#{erecruit_platform_url}/Company",
20
20
  body: company
21
21
  )
22
22
  end
@@ -24,7 +24,7 @@ module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
24
24
  def update_company!(erecruit_token:, erecruit_platform_url:, company:, company_id:, error_message:)
25
25
  response = safe_http_put(
26
26
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
27
- url: "#{erecruit_platform_url}/#{company_id}",
27
+ url: "#{erecruit_platform_url}/Company/#{company_id}",
28
28
  body: company,
29
29
  error_message: error_message
30
30
  )
@@ -34,7 +34,7 @@ module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
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
- url: "#{erecruit_platform_url}/#{company_id}",
37
+ url: "#{erecruit_platform_url}/Company/#{company_id}",
38
38
  body: company
39
39
  )
40
40
  end
@@ -14,7 +14,7 @@ module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
14
14
  end
15
15
 
16
16
  def create_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:)
17
- http_get(
17
+ parsed_http_post(
18
18
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
19
19
  url: "#{erecruit_platform_url}/",
20
20
  query: { tenant: tenant }
@@ -22,7 +22,7 @@ module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
22
22
  end
23
23
 
24
24
  def update_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:)
25
- response = safe_http_post(
25
+ response = safe_http_put(
26
26
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
27
27
  url: "#{erecruit_platform_url}/",
28
28
  query: { tenant: tenant },
@@ -32,7 +32,7 @@ module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
32
32
  end
33
33
 
34
34
  def update_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:)
35
- response = http_get(
35
+ response = parsed_http_put(
36
36
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
37
37
  url: "#{erecruit_platform_url}/",
38
38
  query: { tenant: tenant }
@@ -3,42 +3,40 @@ module WolfCore
3
3
  module PositionsOperations
4
4
  include WolfCore::HttpOperations
5
5
 
6
- def create_position!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:)
6
+ def create_position!(erecruit_token:, erecruit_platform_url:, position:, error_message:)
7
7
  response = safe_http_post(
8
8
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
9
- url: "#{erecruit_platform_url}/",
10
- query: { tenant: tenant },
9
+ url: "#{erecruit_platform_url}/Position",
10
+ body: position,
11
11
  error_message: error_message
12
12
  )
13
- nil if response.code == 200
13
+ response.body
14
14
  end
15
15
 
16
- def create_position(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:)
17
- response = http_get(
16
+ def create_position(erecruit_token:, erecruit_platform_url:, position:)
17
+ parsed_http_post(
18
18
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
19
- url: "#{erecruit_platform_url}/",
20
- query: { tenant: tenant }
19
+ url: "#{erecruit_platform_url}/Position",
20
+ body: position
21
21
  )
22
- nil if response.code == 200
23
22
  end
24
23
 
25
- def update_position!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:)
26
- response = safe_http_post(
24
+ def update_position!(erecruit_token:, erecruit_platform_url:, position_id:, position:, error_message:)
25
+ response = safe_http_put(
27
26
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
28
- url: "#{erecruit_platform_url}/",
29
- query: { tenant: tenant },
27
+ url: "#{erecruit_platform_url}/Position/#{position_id}",
28
+ body: position,
30
29
  error_message: error_message
31
30
  )
32
- nil if response.code == 200
31
+ response.body
33
32
  end
34
33
 
35
- def update_position(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:)
36
- response = http_get(
34
+ def update_position(erecruit_token:, erecruit_platform_url:, position_id:, position:)
35
+ parsed_http_put(
37
36
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
38
- url: "#{erecruit_platform_url}/",
39
- query: { tenant: tenant }
37
+ url: "#{erecruit_platform_url}/Position/#{position_id}",
38
+ body: position
40
39
  )
41
- nil if response.code == 200
42
40
  end
43
41
  end
44
42
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.23"
4
+ VERSION = "1.0.25"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.23
4
+ version: 1.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo