wolf_core 1.0.16 → 1.0.17

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: 6fc8c7b4e015dfc127ef3ff265140a023f1c3be2250c6a8c54d1cd31964f6ef2
4
- data.tar.gz: 8d1402a014bb56ca7836f8f14a06d9687fd50c4b6f59a9b391bd9189de8e637b
3
+ metadata.gz: 57e40b225d69d244526266de729654a72147775f8055bd83903d4af7cca26196
4
+ data.tar.gz: 4bdb66e41257eba355e62cce43f37d53f72e7edf6c4d8611081068a84e4baac9
5
5
  SHA512:
6
- metadata.gz: 10ac548da9f9db19d14fc4e6681c237f06bcae706e412ad422814209ad94e8663320fcaff20a5a92e864b0cc8ce621ed7019c5ec1a61ead4892e52fea2b9a3e6
7
- data.tar.gz: 501769672acf0ebe59cb415c93974fa845257391baf1c902e65f6abcc3b14d140e44f0223da56ae5dca0d4941bdde754986baa66d92ad9d0f64d15338f6cc8e0
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:)
@@ -15,15 +15,11 @@ module WolfCore
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", "company")
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.16"
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.16
4
+ version: 1.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo