wolf_core 0.1.58 → 0.1.59
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/barton/routing.rb +5 -4
- data/lib/wolf_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5121b62a6d6a0f7b134e4d59072fc092ee22ed776da8e3474fa1b98097dbebd
|
4
|
+
data.tar.gz: df3e78fc1f1ac94b98aece3032c9ab4cdc029d38d58b67c9feddefa6d60e2dc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e1a5d83b10d51bb702f2bd7fb23cc3fe68bc179c0f0116768daf40f5929e02e3ab2b208232784489779c22d71cb2715bf5e6aea5f77a7fd4a6b0b5462cb4c04
|
7
|
+
data.tar.gz: ef9a05201a6e0a15b829638d61ebbd61a01b717e5434235a480bc65a8858928ca75d44434fedc743ba8530edccc2c87029ba5f42fef0cfaf098decff302777b7
|
@@ -17,15 +17,16 @@ module WolfCore
|
|
17
17
|
}
|
18
18
|
|
19
19
|
def route_event_request(path:, body:)
|
20
|
-
|
21
|
-
if
|
22
|
-
async_http_post(url: "#{domain_url}/#{path}", body: body)
|
23
|
-
else
|
20
|
+
environment = ENV['ENVIRONMENT']
|
21
|
+
if environment == 'production'
|
24
22
|
function_name = PATH_TO_FUNCTION_NAME_MAPPING[path]
|
25
23
|
invoke_lambda(
|
26
24
|
function_name: function_name,
|
27
25
|
payload: body,
|
28
26
|
)
|
27
|
+
else
|
28
|
+
domain_url = ENV['CURRENT_SAM_URL']
|
29
|
+
async_http_post(url: "#{domain_url}/#{path}", body: body)
|
29
30
|
end
|
30
31
|
end
|
31
32
|
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: 0.1.
|
4
|
+
version: 0.1.59
|
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-08-
|
11
|
+
date: 2024-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|