wolf_core 1.0.42 → 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: 861df943e4ce0a1b95fc265787a2a93f3a541ce6f00bf37db5ed9028c26da7f9
4
- data.tar.gz: 54c77611ae4d74a7d30a3cabd001249abbd35e81b5e6953b080e13d7b9083db0
3
+ metadata.gz: 8ac2212414b5e57e81011fa3ed1b572a02c2013c6788a07e4e61f37ada2cdeab
4
+ data.tar.gz: 301956acbb30a3672b7331847a5ea16fb15ddea44fbabc47b1429c0a83d38534
5
5
  SHA512:
6
- metadata.gz: a976e9060529d0a8b7af2bdbfb442888eab5459f2ea5965eb5e960623a6fdd93321f6f77e56ada6fad8ebf4fe7f794f0e766ee39730beda3ab418173a0177b6e
7
- data.tar.gz: f2f50cf922c9439e78051a1649757405eacbe79ee44dc4a39e55e62202eecfa98378d7cfb3d7a2303a0a2882534b5858c4858f272003f9e1341faa2b0e574ab2
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'].downcase
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.42"
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.42
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