wolf_core 1.0.54 → 1.0.56
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wolf_core/application/application_service.rb +1 -1
- data/lib/wolf_core/version.rb +1 -1
- metadata +16 -8
- data/lib/wolf_core/application/burnett/auth/auth_operations.rb +0 -21
- data/lib/wolf_core/application/burnett/company_operations/company_operations.rb +0 -43
- data/lib/wolf_core/application/burnett/data_transformation/mappings.rb +0 -29
- data/lib/wolf_core/application/burnett/match_operations/match_operattions.rb +0 -44
- data/lib/wolf_core/application/burnett/onboarding/candidate_operations.rb +0 -67
- data/lib/wolf_core/application/burnett/positions_operations/positions_operations.rb +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b518153d1b3628c3d540a23fcb678915e2d899acd7abdb53164f8463ba72256e
|
4
|
+
data.tar.gz: fbb69dd632e2031c85face53d539cb012ed347f72e944715fc0df950659c2c48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4ae388834be472a1d16fced5b76b23f7971e7819fc8d110b7d810b5ae232c9df623e5507238839d7170be2e57e4babed283ec8dd53ca65dd4aae3d3944af564
|
7
|
+
data.tar.gz: dedb51f23fc4baf2374ab0ae500aa80c322ca3717c3cee8975906d3a24d2d4c609a8718200e39733467d2ab4d2a33a181ff534305a9b6e43c07f59f902fdf94f
|
data/lib/wolf_core/version.rb
CHANGED
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.
|
4
|
+
version: 1.0.56
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Roncallo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: honeybadger
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
description: Repository to store shared code among Ruby projects.
|
84
98
|
email:
|
85
99
|
- jroncallo96@gmail.com
|
@@ -93,12 +107,6 @@ files:
|
|
93
107
|
- lib/wolf_core/application/barton/onboarding/file_operations.rb
|
94
108
|
- lib/wolf_core/application/barton/parsing.rb
|
95
109
|
- lib/wolf_core/application/barton/routing.rb
|
96
|
-
- lib/wolf_core/application/burnett/auth/auth_operations.rb
|
97
|
-
- lib/wolf_core/application/burnett/company_operations/company_operations.rb
|
98
|
-
- lib/wolf_core/application/burnett/data_transformation/mappings.rb
|
99
|
-
- lib/wolf_core/application/burnett/match_operations/match_operattions.rb
|
100
|
-
- lib/wolf_core/application/burnett/onboarding/candidate_operations.rb
|
101
|
-
- lib/wolf_core/application/burnett/positions_operations/positions_operations.rb
|
102
110
|
- lib/wolf_core/application/exception_operations.rb
|
103
111
|
- lib/wolf_core/application/integrations/change_detection.rb
|
104
112
|
- lib/wolf_core/application/integrations/client_api_operations.rb
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module WolfCore
|
2
|
-
module Burnett
|
3
|
-
module Auth
|
4
|
-
module Operations
|
5
|
-
def get_erecruit_access_token
|
6
|
-
response = safe_http_post(
|
7
|
-
url: ENV["ERECRUIT_AUTH_URL"],
|
8
|
-
headers: { "Content-Type" => "application/x-www-form-urlencoded" },
|
9
|
-
body: {
|
10
|
-
client_id: ENV["ERECRUIT_AUTH_CLIENT_ID"],
|
11
|
-
client_secret: ENV["ERECRUIT_AUTH_CLIENT_SECRET"],
|
12
|
-
grant_type: ENV["ERECRUIT_AUTH_GRANT_TYPE"]
|
13
|
-
},
|
14
|
-
error_message: "Unable to get erecruit token"
|
15
|
-
)
|
16
|
-
response.body["access_token"]
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,43 +0,0 @@
|
|
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}/Company",
|
10
|
-
body: company,
|
11
|
-
error_message: error_message
|
12
|
-
)
|
13
|
-
response.body
|
14
|
-
end
|
15
|
-
|
16
|
-
def create_company(erecruit_token:, erecruit_platform_url:, company:)
|
17
|
-
parsed_http_post(
|
18
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
19
|
-
url: "#{erecruit_platform_url}/Company",
|
20
|
-
body: company
|
21
|
-
)
|
22
|
-
end
|
23
|
-
|
24
|
-
def update_company!(erecruit_token:, erecruit_platform_url:, company:, company_id:, error_message:)
|
25
|
-
response = safe_http_put(
|
26
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
27
|
-
url: "#{erecruit_platform_url}/Company/#{company_id}",
|
28
|
-
body: company,
|
29
|
-
error_message: error_message
|
30
|
-
)
|
31
|
-
response.body
|
32
|
-
end
|
33
|
-
|
34
|
-
def update_company(erecruit_token:, erecruit_platform_url:, company:, company_id:)
|
35
|
-
parsed_http_put(
|
36
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
37
|
-
url: "#{erecruit_platform_url}/Company/#{company_id}",
|
38
|
-
body: company
|
39
|
-
)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
module WolfCore
|
2
|
-
module Burnett
|
3
|
-
module Mappings
|
4
|
-
JOB_TYPE_MAPPING = {
|
5
|
-
'144' => '26',
|
6
|
-
'145' => '30',
|
7
|
-
'153' => '24',
|
8
|
-
'152' => '28',
|
9
|
-
'155' => '12',
|
10
|
-
'156' => '22',
|
11
|
-
'150' => '27',
|
12
|
-
'148' => '31',
|
13
|
-
'158' => '25',
|
14
|
-
'151' => '29',
|
15
|
-
'163' => '23',
|
16
|
-
}
|
17
|
-
|
18
|
-
def map_job_type(value)
|
19
|
-
value = value.to_s
|
20
|
-
JOB_TYPE_MAPPING[value] || value
|
21
|
-
end
|
22
|
-
|
23
|
-
def revert_map_job_type(value)
|
24
|
-
value = value.to_s
|
25
|
-
JOB_TYPE_MAPPING.invert[value] || value
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
|
2
|
-
module Burnett
|
3
|
-
module MatchOperations # rubocop:disable Style/Documentation
|
4
|
-
include WolfCore::HttpOperations
|
5
|
-
|
6
|
-
def create_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:)
|
7
|
-
response = safe_http_post(
|
8
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
9
|
-
url: "#{erecruit_platform_url}/",
|
10
|
-
query: { tenant: tenant },
|
11
|
-
error_message: error_message
|
12
|
-
)
|
13
|
-
nil if response.code == 200
|
14
|
-
end
|
15
|
-
|
16
|
-
def create_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:)
|
17
|
-
parsed_http_post(
|
18
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
19
|
-
url: "#{erecruit_platform_url}/",
|
20
|
-
query: { tenant: tenant }
|
21
|
-
)
|
22
|
-
end
|
23
|
-
|
24
|
-
def update_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:)
|
25
|
-
response = safe_http_put(
|
26
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
27
|
-
url: "#{erecruit_platform_url}/",
|
28
|
-
query: { tenant: tenant },
|
29
|
-
error_message: error_message
|
30
|
-
)
|
31
|
-
nil if response.code == 200
|
32
|
-
end
|
33
|
-
|
34
|
-
def update_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:)
|
35
|
-
response = parsed_http_put(
|
36
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
37
|
-
url: "#{erecruit_platform_url}/",
|
38
|
-
query: { tenant: tenant }
|
39
|
-
)
|
40
|
-
nil if response.code == 200
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,67 +0,0 @@
|
|
1
|
-
module WolfCore
|
2
|
-
module Burnett
|
3
|
-
module Onboarding
|
4
|
-
module CandidateOperations
|
5
|
-
include WolfCore::HttpOperations
|
6
|
-
|
7
|
-
def create_candidate!(erecruit_token:, erecruit_platform_url:, candidate:, error_message:, error_data: nil)
|
8
|
-
response = safe_http_post(
|
9
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
10
|
-
url: "#{erecruit_platform_url}/Candidate",
|
11
|
-
body: candidate,
|
12
|
-
error_message: error_message,
|
13
|
-
error_data: error_data
|
14
|
-
)
|
15
|
-
response.body
|
16
|
-
end
|
17
|
-
|
18
|
-
def create_candidate(erecruit_token:, erecruit_platform_url:, candidate:)
|
19
|
-
parsed_http_post(
|
20
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
21
|
-
url: "#{erecruit_platform_url}/Candidate",
|
22
|
-
body: candidate
|
23
|
-
)
|
24
|
-
end
|
25
|
-
|
26
|
-
def update_candidate!(erecruit_token:, erecruit_platform_url:, candidate_id:, candidate:, error_message:, error_data: nil)
|
27
|
-
response = safe_http_put(
|
28
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
29
|
-
url: "#{erecruit_platform_url}/Candidate/#{candidate_id}",
|
30
|
-
body: candidate,
|
31
|
-
error_message: error_message,
|
32
|
-
error_data: error_data,
|
33
|
-
)
|
34
|
-
response.body
|
35
|
-
end
|
36
|
-
|
37
|
-
def update_candidate(erecruit_token:, erecruit_platform_url:, candidate_id:, candidate:)
|
38
|
-
parsed_http_put(
|
39
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
40
|
-
url: "#{erecruit_platform_url}/Candidate/#{candidate_id}",
|
41
|
-
body: candidate,
|
42
|
-
error_message: error_message,
|
43
|
-
error_data: error_data,
|
44
|
-
)
|
45
|
-
end
|
46
|
-
|
47
|
-
def submit_candidate_cv(erecruit_token:, erecruit_platform_url:, candidate_id:, cv_url:)
|
48
|
-
filename, bytes = bytes_from_url(cv_url).values_at(:filename, :bytes)
|
49
|
-
parsed_http_post(
|
50
|
-
headers: {
|
51
|
-
'Authorization' => "Bearer #{erecruit_token}",
|
52
|
-
'Content-Type' => "form-data"
|
53
|
-
},
|
54
|
-
url: "#{erecruit_platform_url}/Attachment",
|
55
|
-
body: {
|
56
|
-
aboutType: "Candidate",
|
57
|
-
referenceID: candidate_id,
|
58
|
-
attachmentTypeID: "Resume",
|
59
|
-
name: filename,
|
60
|
-
Resume: bytes
|
61
|
-
}
|
62
|
-
)
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
module WolfCore
|
2
|
-
module Burnett
|
3
|
-
module PositionsOperations
|
4
|
-
include WolfCore::HttpOperations
|
5
|
-
|
6
|
-
def create_position!(erecruit_token:, erecruit_platform_url:, position:, error_message:, error_data: nil)
|
7
|
-
response = safe_http_post(
|
8
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
9
|
-
url: "#{erecruit_platform_url}/Position",
|
10
|
-
body: position,
|
11
|
-
error_message: error_message,
|
12
|
-
error_data: error_data
|
13
|
-
)
|
14
|
-
response.body
|
15
|
-
end
|
16
|
-
|
17
|
-
def create_position(erecruit_token:, erecruit_platform_url:, position:)
|
18
|
-
parsed_http_post(
|
19
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
20
|
-
url: "#{erecruit_platform_url}/Position",
|
21
|
-
body: position
|
22
|
-
)
|
23
|
-
end
|
24
|
-
|
25
|
-
def update_position!(erecruit_token:, erecruit_platform_url:, position_id:, position:, error_message:)
|
26
|
-
response = safe_http_put(
|
27
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
28
|
-
url: "#{erecruit_platform_url}/Position/#{position_id}",
|
29
|
-
body: position,
|
30
|
-
error_message: error_message
|
31
|
-
)
|
32
|
-
response.body
|
33
|
-
end
|
34
|
-
|
35
|
-
def update_position(erecruit_token:, erecruit_platform_url:, position_id:, position:)
|
36
|
-
parsed_http_put(
|
37
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
38
|
-
url: "#{erecruit_platform_url}/Position/#{position_id}",
|
39
|
-
body: position
|
40
|
-
)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|