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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8fc6b6fb1daf40963791e4257de35f151fa8be03ead5ffbb3396546cee83652
4
- data.tar.gz: 69f9b762108e301a829c1ff620a7e0392be793e0f217639a219acd91aa30000b
3
+ metadata.gz: b5121b62a6d6a0f7b134e4d59072fc092ee22ed776da8e3474fa1b98097dbebd
4
+ data.tar.gz: df3e78fc1f1ac94b98aece3032c9ab4cdc029d38d58b67c9feddefa6d60e2dc5
5
5
  SHA512:
6
- metadata.gz: bcdc4d731e939f5e271fa91fe71cd568d255c087bdbf4aaeff32c919acadb0c73a8249685ba7016f1f0b1c7acafe62e72176b10abfb0376799290a2cc0108ea0
7
- data.tar.gz: c708f23ed50b5be10e16cb8ea0cbac7ea70f34e0e30055b8aa36c65f7098941b5e1978c027823931b1d1712f170f1eb3cd83e047e8e88869ce8c3385e9a88a65
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
- domain_url = ENV['CURRENT_SAM_URL']
21
- if domain_url.present?
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.58"
4
+ VERSION = "0.1.59"
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: 0.1.58
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-07 00:00:00.000000000 Z
11
+ date: 2024-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty