wolf_core 1.0.19 → 1.0.21

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: 4f5d3491b86d135f6137dc29fb9d2be7881e2f3e7a5fb9b1bcc5414db8c4e85e
4
- data.tar.gz: 976516556e286a4659ae8ff3ccba31248c4d1d75efdea7fd862c055bd187d107
3
+ metadata.gz: 1cbd33833a56cc96f355047342e5008492616e5b97234c232610c06c99d9e63a
4
+ data.tar.gz: c6d4adcb8e33708989b244d6370472854f2df3c2d343ddf2a31c41af37d3d653
5
5
  SHA512:
6
- metadata.gz: 407af0fcb7790585405d6240f575623d91e5c6cc485c49b234330ce9c9889882c659c587205df218ef6f3941f612fc4779348a4fd6c8da26f48f71989ca8af5b
7
- data.tar.gz: c38d6058ac5dfe2f5e075dd2865e9fd491b3eeed27ae094c11b587ea6c9c5893f045f4758b9e10fc57599e5d0637fac8b289b2ef52f97b13cbe2dc04c8083ce5
6
+ metadata.gz: 809637695feac597aa61fa124057362b526cbf9d877dd5b64e0ab455cdb93334e7d1f13223c234ab92451e06c99be29b8428c65bce838e6f907b327695b7f56a
7
+ data.tar.gz: 492baa776c8e3a4913309ac5bec7c3017228ad7d10e6f77295889aaa909d92d32715f3dfd3d68b57966e735792b22036a9a5fd0c2b9379df50b4b6006b4cec94
@@ -0,0 +1,43 @@
1
+ module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
2
+ module Burnett
3
+ module CompanyOperations # rubocop:disable Style/Documentation
4
+ include WolfCore::HttpOperations
5
+
6
+ def create_company!(erecruit_token:, company:, erecruit_platform_url:, error_message:)
7
+ response = safe_http_post(
8
+ headers: { "Authorization" => "Bearer #{erecruit_token}" },
9
+ url: erecruit_platform_url.to_s,
10
+ company: company,
11
+ error_message: error_message
12
+ )
13
+ nil if response.code == 200
14
+ end
15
+
16
+ def create_company(erecruit_token:, company:, erecruit_platform_url:)
17
+ http_get(
18
+ headers: { "Authorization" => "Bearer #{erecruit_token}" },
19
+ url: erecruit_platform_url.to_s,
20
+ company: company
21
+ )
22
+ end
23
+
24
+ def update_company!(erecruit_token:, erecruit_platform_url:, company:, company_id:, error_message:)
25
+ response = safe_http_post(
26
+ headers: { "Authorization" => "Bearer #{erecruit_token}" },
27
+ url: "#{erecruit_platform_url}/#{company_id}",
28
+ company: company,
29
+ error_message: error_message
30
+ )
31
+ nil if response.code == 200
32
+ end
33
+
34
+ def update_company(erecruit_token:, erecruit_platform_url:, company:, company_id:)
35
+ http_get(
36
+ headers: { "Authorization" => "Bearer #{erecruit_token}" },
37
+ url: "#{erecruit_platform_url}/#{company_id}",
38
+ company: company
39
+ )
40
+ end
41
+ end
42
+ end
43
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.19"
4
+ VERSION = "1.0.21"
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.19
4
+ version: 1.0.21
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
@@ -93,6 +93,7 @@ files:
93
93
  - lib/wolf_core/application/barton/parsing.rb
94
94
  - lib/wolf_core/application/barton/routing.rb
95
95
  - lib/wolf_core/application/burnett/auth/auth_operations.rb
96
+ - lib/wolf_core/application/burnett/company_operations/company_operations.rb
96
97
  - lib/wolf_core/application/burnett/data_transformation/mappings.rb
97
98
  - lib/wolf_core/application/burnett/match_operations/match_operattions.rb
98
99
  - lib/wolf_core/application/burnett/positions_operations/positions_operations.rb