wolf_core 1.0.16 → 1.0.18

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: 3f89f1bd749c0b747aea45ca8f6df457dfc1fe87d0414269c21a274d2a8930f6
4
+ data.tar.gz: 44fec29c2c1bcad96c8722de7ec20b33c50f11a16b8f34a89ae712663731dbee
5
5
  SHA512:
6
- metadata.gz: 10ac548da9f9db19d14fc4e6681c237f06bcae706e412ad422814209ad94e8663320fcaff20a5a92e864b0cc8ce621ed7019c5ec1a61ead4892e52fea2b9a3e6
7
- data.tar.gz: 501769672acf0ebe59cb415c93974fa845257391baf1c902e65f6abcc3b14d140e44f0223da56ae5dca0d4941bdde754986baa66d92ad9d0f64d15338f6cc8e0
6
+ metadata.gz: a10caab769b1cbff0e1da62cd5ae18d0ab75f7118786e4b4f91f47940eb9647d11199c9c25a3812fb1221b91da31f0dd7279ad4f9ce7bdbfeb45aad2706d98ae
7
+ data.tar.gz: 68a66625f15ca4cd6c0fcb2d58718f3496428c5ddb5ae35e64bb761ee3017c2b5db126af58544944bf22bf478f4f7b77275f60425484c78b3089276f7756e3cd
@@ -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
+ 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.18"
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.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo