wolf_core 1.0.43 → 1.0.45
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dae314fa34d834160675bc4ee965b2b914ea4ab9a35555d019be09c3952a7caa
|
4
|
+
data.tar.gz: 6a3721a458c694cdd85be42d792d0a21bca9423898899696eb105aa1d63ec534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 072f42d2864ed47b470cebe99bb5067cf6a8ef8e1083316e69a8c8bd86694123931786a6bbe5ff51ff8514975f558b26a38daa160b7e3d9f4986da144bcd308f
|
7
|
+
data.tar.gz: 8d86d00fdf470e135df76da9ae81d42baed338104f442f830cd151c92262f1303a374e779dfb2cb2d98da69bab2d771aa19f52106e813074851081dfe6f4f087
|
@@ -28,10 +28,13 @@ module WolfCore
|
|
28
28
|
raise_service_error(result.error.to_h)
|
29
29
|
end
|
30
30
|
|
31
|
-
def validate_presence(object, message)
|
31
|
+
def validate_presence(object, message, error_data: {})
|
32
32
|
return if object.present?
|
33
33
|
|
34
|
-
|
34
|
+
error_data ||= {}
|
35
|
+
error_data = error_data.merge({ message: message })
|
36
|
+
|
37
|
+
raise_service_error(error_data)
|
35
38
|
end
|
36
39
|
|
37
40
|
def remove_non_permitted_parameters(params, allowed_params)
|
@@ -35,6 +35,7 @@ module WolfCore
|
|
35
35
|
if deployable_envs.include?(environment)
|
36
36
|
function_name = PATH_TO_FUNCTION_NAME_MAPPING[path]
|
37
37
|
raise_service_error("Function name not found for path: #{path}") if function_name.blank?
|
38
|
+
function_name = "#{function_name}#{environment.titleize}" if environment == 'production'
|
38
39
|
|
39
40
|
invoke_lambda(
|
40
41
|
function_name: function_name,
|
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: 1.0.
|
4
|
+
version: 1.0.45
|
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
|
+
date: 2024-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|