wolf_core 1.0.47 → 1.0.49
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55d1ead7877f7a80633d69eecc7c69bf98a07a79bd951e55367607d7a94ded96
|
4
|
+
data.tar.gz: 152422df5d7f3db133589656eb560e392a1f86e3ab27a55530efd89a8b0f375f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cbde605261c06a4a07f9cd6c45c943da4e27e195fbcda2a244d18e8cd9edb6532ec6d72f0eb1cc02d623b3f0f706a6d3b4d7c03888a9b3799d0a32998f3e69d
|
7
|
+
data.tar.gz: 53a244cc000fdc598c63f77ca481b54c87992c1380e1907a275ce633c213cac4cd2b372840ed4bbb208b1bf676e5eda295cc0f8435c10dcf8c63de501d930203
|
@@ -15,10 +15,11 @@ module WolfCore
|
|
15
15
|
'burnett/clients/export' => 'BurnettExportClient',
|
16
16
|
}
|
17
17
|
|
18
|
-
def route_event_request(path:, body:)
|
19
|
-
environment
|
18
|
+
def route_event_request(path:, body:, environment:, domain_url: nil)
|
19
|
+
environment ||= 'development'
|
20
|
+
environment = environment.downcase
|
20
21
|
deployable_envs = ['production', 'staging', 'testing']
|
21
|
-
if deployable_envs.include?(environment
|
22
|
+
if deployable_envs.include?(environment)
|
22
23
|
function_name = "#{PATH_TO_FUNCTION_NAME_MAPPING[path]}#{environment.titleize}"
|
23
24
|
raise_service_error("Function name not found for path: #{path}") if function_name.blank?
|
24
25
|
|
@@ -27,7 +28,7 @@ module WolfCore
|
|
27
28
|
payload: body,
|
28
29
|
)
|
29
30
|
else
|
30
|
-
domain_url
|
31
|
+
domain_url ||= ENV['CURRENT_SAM_URL']
|
31
32
|
async_http_post(url: "#{domain_url}/#{path}", body: body)
|
32
33
|
end
|
33
34
|
end
|
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.49
|
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-12-
|
11
|
+
date: 2024-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|