wolf_core 0.1.57 → 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: 736dd572a5f6ff7d684f7d652155b164a01053c4e0f57e507293a85f5d7bcc94
4
- data.tar.gz: 2f9c1fb31258f397dbfb5640ae536b1dcc84a9a29aff80935c061485839ec8e0
3
+ metadata.gz: b5121b62a6d6a0f7b134e4d59072fc092ee22ed776da8e3474fa1b98097dbebd
4
+ data.tar.gz: df3e78fc1f1ac94b98aece3032c9ab4cdc029d38d58b67c9feddefa6d60e2dc5
5
5
  SHA512:
6
- metadata.gz: 88c042b4b9e69154a8e0acce57fe484001ab87b97e39490dc7c923b54cea6a6e7c97cb2e360e407a9b9cf39039ad6b1619ab48be51ddcbdb58f56868dd594d3c
7
- data.tar.gz: a22b02e2acff59cdfe1b6e61bcc7ca7182fafb7a629ebcf38007c3fa759f087fbb8bfc234faba7343ab018bf39e1cd04aec437027e272ee9f2481fb6b77019d9
6
+ metadata.gz: 9e1a5d83b10d51bb702f2bd7fb23cc3fe68bc179c0f0116768daf40f5929e02e3ab2b208232784489779c22d71cb2715bf5e6aea5f77a7fd4a6b0b5462cb4c04
7
+ data.tar.gz: ef9a05201a6e0a15b829638d61ebbd61a01b717e5434235a480bc65a8858928ca75d44434fedc743ba8530edccc2c87029ba5f42fef0cfaf098decff302777b7
@@ -12,18 +12,21 @@ module WolfCore
12
12
  'barton/import/order_description' => 'BartonImportOrderDescription',
13
13
  'barton/import/order_application' => 'BartonImportOrderApplication',
14
14
  'barton/export/order_application' => 'BartonExportOrderApplication',
15
+ 'barton/import/contract' => 'BartonImportContract',
16
+ 'barton/export/contract' => 'BartonExportContract',
15
17
  }
16
18
 
17
19
  def route_event_request(path:, body:)
18
- domain_url = ENV['CURRENT_SAM_URL']
19
- if domain_url.present?
20
- async_http_post(url: "#{domain_url}/#{path}", body: body)
21
- else
20
+ environment = ENV['ENVIRONMENT']
21
+ if environment == 'production'
22
22
  function_name = PATH_TO_FUNCTION_NAME_MAPPING[path]
23
23
  invoke_lambda(
24
24
  function_name: function_name,
25
25
  payload: body,
26
26
  )
27
+ else
28
+ domain_url = ENV['CURRENT_SAM_URL']
29
+ async_http_post(url: "#{domain_url}/#{path}", body: body)
27
30
  end
28
31
  end
29
32
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.57"
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.57
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-06 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