wolf_core 1.0.44 → 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: f471cc3a0fe6c7edb5337e7a4ca93a20df51be516a2ad3393fe5e5838feb04ef
4
- data.tar.gz: c80e218e680bb3b5c78dfa35e7d6b025348b2cd98cf061d2ab0ffb4122bde560
3
+ metadata.gz: dae314fa34d834160675bc4ee965b2b914ea4ab9a35555d019be09c3952a7caa
4
+ data.tar.gz: 6a3721a458c694cdd85be42d792d0a21bca9423898899696eb105aa1d63ec534
5
5
  SHA512:
6
- metadata.gz: 8210514e684531ab6726d44e111ae43907d9b29069738f734f2523c889258aa7447ef39cce4fb0a4ff0ad83188e0ade7a7ecf645c97968009d7c101184e1c68a
7
- data.tar.gz: 4a3e653007100a08a00e79112ceafac6ec93def7777be3cb964cac237099f52cdf7c45784daa354f9191346311bf255432c0d4c37b5769ff22469eddcc185782
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.44"
4
+ VERSION = "1.0.45"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.44
4
+ version: 1.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo