blsk_service_core 0.0.1 → 0.0.2

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: c5fc96d9680eecb5d8c8ce26a877a455023687e87cb5006a67632c39cc9fc1a0
4
- data.tar.gz: 0d37ac8d7b796e085d0b84fa529d16ae9f16877958ed7c032aa9944921bc88c4
3
+ metadata.gz: 9e72c2748a22cb1fb989e9ac66c6edd6bd323ebf5e3c75181de26d188308ff53
4
+ data.tar.gz: a9f5df3fec3ac78c4649b29de285f24b7c0c46cbc7772766596d4f172304fe08
5
5
  SHA512:
6
- metadata.gz: 94766c7d4ab17324ee1ed6f1600ef140ead7cf76c2a1b8d201f70d534a909c73abcf06f31adce7e7abd2906528abd65eda9a782e30d815126eefd4005b9ef565
7
- data.tar.gz: 7e28e161511f72a40c6904c02fc4580e56fc9dbce48a1a5d44b773df80794b7d7f1a9fbd59402677d36526f8003fe26bebf86bebc65fb2837371fbed5e881524
6
+ metadata.gz: '09efb7eb6902fbb4c00a8eadf27172b0450b41a0a57ffa2a594a63dda64a868278280a725d86c9940e09b268e92f6694c9ebf7d73180580e89995473b9955ee7'
7
+ data.tar.gz: 329fc27811203892f7cc777eb91444c74a1e12664fc67348b4ffa7ff43035ee5cf21332cacc8133fcd2e969f318e5ee3eb46a129e5900d69a5a97f5dbfeb0173
@@ -1,5 +1,5 @@
1
1
  cassandra:
2
- hosts: []
2
+ hosts: ['172.16.15.3']
3
3
  port: 9042
4
4
  consul:
5
5
  port: 8500
@@ -5,8 +5,7 @@ module Validator
5
5
  lambda {|self_model, *args, &blk|
6
6
  # puts "Validate"
7
7
  seed_model = args[0]
8
- self_rest = args [1]
9
- valid_result = check_validate(seed_model, self_rest) # check validation and return [true]/[false, errors]
8
+ valid_result = check_validate(seed_model) # check validation and return [true]/[false, errors]
10
9
  if valid_result[0]
11
10
  true
12
11
  else
@@ -17,13 +16,13 @@ module Validator
17
16
  }
18
17
  end
19
18
 
20
- def check_validate(seed_model, self_rest)
19
+ def check_validate(seed_model)
21
20
  errors = seed_model.validate
22
21
  if errors.empty?
23
22
  [true]
24
23
  else
25
24
  errors_response = convert_errors_response(errors)
26
- [false, errors_response, self_rest]
25
+ [false, errors_response]
27
26
  end
28
27
  end
29
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blsk_service_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - blsk