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: 8ac2212414b5e57e81011fa3ed1b572a02c2013c6788a07e4e61f37ada2cdeab
4
- data.tar.gz: 301956acbb30a3672b7331847a5ea16fb15ddea44fbabc47b1429c0a83d38534
3
+ metadata.gz: dae314fa34d834160675bc4ee965b2b914ea4ab9a35555d019be09c3952a7caa
4
+ data.tar.gz: 6a3721a458c694cdd85be42d792d0a21bca9423898899696eb105aa1d63ec534
5
5
  SHA512:
6
- metadata.gz: 403c03273d71df0ffe1d8f11768173c13a38235e145bc8992fc76d2f51954ee3b10c2411b8f84569669466d9249ebdedf8a855f0b7ccb1b8470cdb00beaeed3f
7
- data.tar.gz: b6b96e0de0843a920308af7bba70a96e2eb5a163b23198d4cf2d5a2251b4e5d0c56628fdfe37908310e0f95937cff30443d1367f99ff940e7c88199df2dad370
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
- raise_service_error({ message: message })
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.43"
4
+ VERSION = "1.0.45"
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.43
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-30 00:00:00.000000000 Z
11
+ date: 2024-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty