wolf_core 1.0.61 → 1.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d28ecbd7d9325a547573eeb470e36fd6bc2ed39ddd7d232f6f8daf44c5a3ed89
|
4
|
+
data.tar.gz: 7a3a1e59ed1325fea83b821929ccb990597ef4b4030657ec4136334a42031f59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92d38d2f07d9b4c9cea5b79c8b0f71fd72489c4671155ff1babec233c935afb70e731927915a2b622b8b2da5b204dbf738409e75f09478d09b69c6a956874bf1
|
7
|
+
data.tar.gz: 5abb0753b7d2b1d523ddaffc89f58fbcad03ad81eea1e4ae5d81ad5b620ee40f7d44aa3f2d5a94e4120e31754a3071939b87d4f59e796b08ca42feb010e65726
|
@@ -9,6 +9,7 @@ module WolfCore
|
|
9
9
|
'barton/import/jobseeker' => 'BartonImportJobseeker',
|
10
10
|
'barton/export/jobseeker' => 'BartonExportJobseeker',
|
11
11
|
'barton/import/order' => 'BartonImportOrder',
|
12
|
+
'barton-generate-job-description' => 'BartonGenerateJobDescription',
|
12
13
|
'barton/export/order' => 'BartonExportOrder',
|
13
14
|
'barton/import/order_description' => 'BartonImportOrderDescription',
|
14
15
|
'barton/import/order_application' => 'BartonImportOrderApplication',
|
@@ -29,7 +30,7 @@ module WolfCore
|
|
29
30
|
'barton/export/jobseeker_order_applications' => 'BartonExportJobseekerOrderApplications',
|
30
31
|
}
|
31
32
|
|
32
|
-
def route_event_request(path:, body:)
|
33
|
+
def route_event_request(path:, body:, invocation_type: nil)
|
33
34
|
environment = ENV['ENVIRONMENT']
|
34
35
|
deployable_envs = ['production', 'staging']
|
35
36
|
if deployable_envs.include?(environment)
|
@@ -40,6 +41,7 @@ module WolfCore
|
|
40
41
|
invoke_lambda(
|
41
42
|
function_name: function_name,
|
42
43
|
payload: body,
|
44
|
+
invocation_type: invocation_type,
|
43
45
|
)
|
44
46
|
else
|
45
47
|
domain_url = ENV['CURRENT_SAM_URL']
|
@@ -5,36 +5,24 @@ module WolfCore
|
|
5
5
|
TIMEOUT = 900
|
6
6
|
|
7
7
|
def http_get(url:, headers: {}, query: nil, timeout: nil)
|
8
|
-
puts "timeout before is #{timeout}"
|
9
|
-
timeout ||= TIMEOUT
|
10
|
-
puts "timeout after is #{timeout}"
|
11
8
|
HTTParty.get(url, headers: headers, query: query, timeout: timeout, open_timeout: timeout, read_timeout: timeout, write_timeout: timeout)
|
12
9
|
end
|
13
10
|
|
14
11
|
def http_post(url:, headers: {}, query: nil, body: nil, timeout: nil)
|
15
12
|
headers['Content-Type'] ||= 'application/json'
|
16
13
|
body = body&.to_json if headers['Content-Type'] == 'application/json'
|
17
|
-
puts "timeout before is #{timeout}"
|
18
|
-
timeout ||= TIMEOUT
|
19
|
-
puts "timeout after is #{timeout}"
|
20
14
|
HTTParty.post(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout, write_timeout: timeout)
|
21
15
|
end
|
22
16
|
|
23
17
|
def http_put(url:, headers: {}, query: nil, body: nil, timeout: nil)
|
24
18
|
headers['Content-Type'] ||= 'application/json'
|
25
19
|
body = body&.to_json if headers['Content-Type'] == 'application/json'
|
26
|
-
puts "timeout before is #{timeout}"
|
27
|
-
timeout ||= TIMEOUT
|
28
|
-
puts "timeout after is #{timeout}"
|
29
20
|
HTTParty.put(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout, write_timeout: timeout)
|
30
21
|
end
|
31
22
|
|
32
23
|
def http_patch(url:, headers: {}, query: nil, body: nil, timeout: nil)
|
33
24
|
headers['Content-Type'] ||= 'application/json'
|
34
25
|
body = body&.to_json if headers['Content-Type'] == 'application/json'
|
35
|
-
puts "timeout before is #{timeout}"
|
36
|
-
timeout ||= TIMEOUT
|
37
|
-
puts "timeout after is #{timeout}"
|
38
26
|
HTTParty.patch(url, headers: headers, query: query, body: body, timeout: timeout, open_timeout: timeout, read_timeout: timeout, write_timeout: timeout)
|
39
27
|
end
|
40
28
|
end
|
@@ -23,6 +23,8 @@ module WolfCore
|
|
23
23
|
def invoke(function_name:, payload:, invocation_type: nil)
|
24
24
|
parsed_payload = JSON.generate(payload)
|
25
25
|
invocation_type ||= 'Event'
|
26
|
+
# use invocation_type = 'Event' to make an asynchronous call
|
27
|
+
# use invocation_type = 'RequestResponse' to make a synchronous call
|
26
28
|
@@client.invoke({
|
27
29
|
function_name: function_name,
|
28
30
|
invocation_type: invocation_type,
|
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.63
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Roncallo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|