wolf_core 1.0.41 → 1.0.43

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: 1275a547fe47eabf28d715c089d6391ce976de1d41b61258028fb7e04b5e1912
4
- data.tar.gz: ce6376eab7393dfd88f3faa3733af20fdd44fe497254399fba94b4f4e97c45f6
3
+ metadata.gz: 8ac2212414b5e57e81011fa3ed1b572a02c2013c6788a07e4e61f37ada2cdeab
4
+ data.tar.gz: 301956acbb30a3672b7331847a5ea16fb15ddea44fbabc47b1429c0a83d38534
5
5
  SHA512:
6
- metadata.gz: 92a5d6ab1ed42950eec43b57710d8f1e2aa2e2407f352b39f766847e254035fb1759df64f5c3540836297af11a3798db5fb957db05bf5de58b284182be8d7aae
7
- data.tar.gz: 7373c33a8d6c6b35c3f92a15348cb149cc1970ba675651dfba3d88b118a1a99bc7c1eadca1fd91b030acdd19fe91eb3a8520b3214000ed4201b89e327a487020
6
+ metadata.gz: 403c03273d71df0ffe1d8f11768173c13a38235e145bc8992fc76d2f51954ee3b10c2411b8f84569669466d9249ebdedf8a855f0b7ccb1b8470cdb00beaeed3f
7
+ data.tar.gz: b6b96e0de0843a920308af7bba70a96e2eb5a163b23198d4cf2d5a2251b4e5d0c56628fdfe37908310e0f95937cff30443d1367f99ff940e7c88199df2dad370
@@ -5,11 +5,21 @@ module WolfCore
5
5
  include WolfCore::LambdaFunctionOperations
6
6
  include WolfCore::ExceptionOperations
7
7
 
8
+ PATH_TO_FUNCTION_NAME_MAPPING = {
9
+ 'burnett/jobseekers/export' => 'BurnettExportJobseeker',
10
+ 'burnett/jobseekers/import' => 'BurnettImportJobseeker',
11
+ 'burnett/orders/export' => 'BurnettExportOrder',
12
+ 'burnett/order_applications/export' => 'BurnettExportOrderApplication',
13
+ 'burnett/clients/import' => 'BurnettImportClient',
14
+ 'burnett/clients/bulk_import' => 'BurnettBulkImportClients',
15
+ 'burnett/clients/export' => 'BurnettExportClient',
16
+ }
17
+
8
18
  def route_event_request(path:, body:)
9
- environment = ENV['ENVIRONMENT']
19
+ environment = ENV['ENVIRONMENT'] || 'development'
10
20
  deployable_envs = ['production', 'staging', 'testing']
11
- if deployable_envs.include?(environment)
12
- function_name = PATH_TO_FUNCTION_NAME_MAPPING[path]
21
+ if deployable_envs.include?(environment.downcase)
22
+ function_name = "#{PATH_TO_FUNCTION_NAME_MAPPING[path]}#{environment.titleize}"
13
23
  raise_service_error("Function name not found for path: #{path}") if function_name.blank?
14
24
 
15
25
  invoke_lambda(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.41"
4
+ VERSION = "1.0.43"
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: 1.0.41
4
+ version: 1.0.43
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-11-29 00:00:00.000000000 Z
11
+ date: 2024-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty