wolf_core 1.0.20 → 1.0.22

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: 5b3f90899acc2dc0b3df8245016918cf420ddbfe7639bf979959694cd48da0a4
4
- data.tar.gz: 318f3d3c681230965d347c1d51f8165a6c967476f0ef53a0e04d23151973589e
3
+ metadata.gz: 041f8108a544856ea215268ac1b8d24ec693ea6335ce346cecaeec0ec0b1addc
4
+ data.tar.gz: 47b51cfe4564450f0c71f43ff216558b878424b06a540e50ae9d6f5dd50ab86d
5
5
  SHA512:
6
- metadata.gz: 29d863fa990d895c196fa3bd83af76efcb23450d350abed430f0fc67920272c8c70d934fd10edb382f5f5819816551977194cab7895b4ecef043390bfbb1f87d
7
- data.tar.gz: 0e5534a148cc5746cf46c59267264a5167b7684dbc77cebc1280655a73ac6bcccbf5d07a8201084e289ec419004261fb120901c3b77e42c5986498fff5a8d692
6
+ metadata.gz: 745b3b224ec859cf502e29897d7a3048628ccd4d4bd1f344f369acb10863451e42a9712af99d4fa1306fda1b00b457ee323bb8cf105fbf401dead1e7dfedba30
7
+ data.tar.gz: fc33027d28906ef2777fe884c1f1337dad65bf203f4b293656eeb377525d42eb39f03b5bb32b1cea55aa7e5e59b430ce1d232afc16da8751a94b1c404e7d1830
@@ -3,39 +3,39 @@ module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
3
3
  module CompanyOperations # rubocop:disable Style/Documentation
4
4
  include WolfCore::HttpOperations
5
5
 
6
- def create_company!(erecruit_token:, model:, erecruit_platform_url:, error_message:)
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
9
  url: erecruit_platform_url.to_s,
10
- model: model,
10
+ body: company,
11
11
  error_message: error_message
12
12
  )
13
13
  nil if response.code == 200
14
14
  end
15
15
 
16
- def create_company(erecruit_token:, model:, erecruit_platform_url:)
16
+ def create_company(erecruit_token:, company:, erecruit_platform_url:)
17
17
  http_get(
18
18
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
19
19
  url: erecruit_platform_url.to_s,
20
- model: model
20
+ body: company
21
21
  )
22
22
  end
23
23
 
24
- def update_company!(erecruit_token:, erecruit_platform_url:, model:, company_id:, error_message:)
24
+ def update_company!(erecruit_token:, erecruit_platform_url:, company:, company_id:, error_message:)
25
25
  response = safe_http_post(
26
26
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
27
27
  url: "#{erecruit_platform_url}/#{company_id}",
28
- model: model,
28
+ body: company,
29
29
  error_message: error_message
30
30
  )
31
31
  nil if response.code == 200
32
32
  end
33
33
 
34
- def update_company(erecruit_token:, erecruit_platform_url:, model:, company_id:)
34
+ def update_company(erecruit_token:, erecruit_platform_url:, company:, company_id:)
35
35
  http_get(
36
36
  headers: { "Authorization" => "Bearer #{erecruit_token}" },
37
37
  url: "#{erecruit_platform_url}/#{company_id}",
38
- model: model
38
+ body: company
39
39
  )
40
40
  end
41
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.20"
4
+ VERSION = "1.0.22"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20
4
+ version: 1.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-29 00:00:00.000000000 Z
11
+ date: 2024-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty