wolf_core 1.0.15 → 1.0.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02f382dfda0bedb49f159991bab1f97576dcb64e33e365675d79b9b56bd2f26d
4
- data.tar.gz: 8892e476190ab52b3cbd32875f2337711638d2179d4e498e65da0f2517562208
3
+ metadata.gz: 57e40b225d69d244526266de729654a72147775f8055bd83903d4af7cca26196
4
+ data.tar.gz: 4bdb66e41257eba355e62cce43f37d53f72e7edf6c4d8611081068a84e4baac9
5
5
  SHA512:
6
- metadata.gz: da58c403c6326fb283c17461e19b785bfd4c2fb21fa2394026d494d47f0e7b944bbb277cbd401954cca5d4c8b8a9c9668ab7f5664b1a133709f59b7b8e03ca13
7
- data.tar.gz: ce5efec5d2116d5f77a0730c514349385df720c1babcaa313edc196416e6f2f8b440fa3eec52e56901a111cfba822fc359fb325c85e61a7bd08747e24da41ddd
6
+ metadata.gz: 674131644862093f00f8c5abaa7f1f6bf635e81146bfa03aa02070f7f6e8b821dc580d02975724ddd953ac6c0e9bb3308b3800650bf14fc2510ba3d8a1f3ed52
7
+ data.tar.gz: bce195c7b99679999cc8ba29de841575a276c8dfb5d52289641a7e787df8ec48ed32f7f4493e931d631fc257d0939f3f72defb416d416cc4e7371cf4c60c5c91
@@ -14,12 +14,11 @@ 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
- response = http_get(
17
+ http_get(
18
18
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
19
19
  url: "#{erecruit_platform_url}/",
20
20
  query: { tenant: tenant }
21
21
  )
22
- nil if response.code == 200
23
22
  end
24
23
 
25
24
  def update_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:)
@@ -11,19 +11,15 @@ module WolfCore
11
11
  error_message: error_message
12
12
  )
13
13
  response_body = response.body
14
- response_body.dig("data", "table", "companies")
14
+ response_body.dig("data", "table", "company")
15
15
  end
16
16
 
17
17
  def fetch_client(wolf_token:, client_id:, tenant:, wolf_platform_url:)
18
- response = parsed_http_get(
18
+ parsed_http_get(
19
19
  headers: { "Authorization" => "Bearer #{wolf_token}" },
20
20
  url: "#{wolf_platform_url}/api/v2/companies/#{client_id}",
21
21
  query: { tenant: tenant }
22
22
  )
23
- response_body = response.body
24
- return unless response_body.instance_of?(Hash)
25
-
26
- response_body.dig("data", "table", "companies")
27
23
  end
28
24
 
29
25
  def create_client!(wolf_token:, client:, tenant:, wolf_platform_url:, error_message:)
@@ -15,15 +15,11 @@ module WolfCore
15
15
  end
16
16
 
17
17
  def fetch_jobseeker(wolf_token:, jobseeker_id:, tenant:, wolf_platform_url:)
18
- response = parsed_http_get(
18
+ parsed_http_get(
19
19
  headers: { "Authorization" => "Bearer #{wolf_token}" },
20
20
  url: "#{wolf_platform_url}/api/v2/jobseekers/#{jobseeker_id}",
21
21
  query: { tenant: tenant }
22
22
  )
23
- response_body = response.body
24
- return unless response_body.instance_of?(Hash)
25
-
26
- response_body.dig("data", "table", "jobseeker")
27
23
  end
28
24
 
29
25
  def create_jobseeker!(wolf_token:, jobseeker:, tenant:, wolf_platform_url:, error_message:)
@@ -15,15 +15,11 @@ module WolfCore
15
15
  end
16
16
 
17
17
  def fetch_order(wolf_token:, order_id:, tenant:, wolf_platform_url:)
18
- response = http_get(
18
+ http_get(
19
19
  headers: { "Authorization" => "Bearer #{wolf_token}" },
20
20
  url: "#{wolf_platform_url}/api/v2/orders/#{order_id}",
21
21
  query: { tenant: tenant }
22
22
  )
23
- response_body = response.body
24
- return unless response_body.instance_of?(Hash)
25
-
26
- response_body.dig("data", "table", "order")
27
23
  end
28
24
 
29
25
  def create_order!(wolf_token:, order:, tenant:, wolf_platform_url:, error_message:)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.15"
4
+ VERSION = "1.0.17"
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.15
4
+ version: 1.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo