blsk_ruby_core_api 0.1.2.pre.3 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/decoractors/valid.rb +2 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a426645b1a63d7e3abcd434e2a69051b38f66b99d4e00ecfe9fa5cf0bf4ce76
4
- data.tar.gz: 946273cda71e2fe5217cbe3c18b17a15230ee348ca9a7e2d198cdaf113d01b5f
3
+ metadata.gz: 8b62f0a05339dd11dcdf67bef08df3ff21bbe79c70584147172c56a7377b3749
4
+ data.tar.gz: fef2b9fcbe9a974914cc3e22c1c0957fa5aa932d541c5a6999e5925d80156fbe
5
5
  SHA512:
6
- metadata.gz: d10541d10a85dd0e78278ddfaacee0f127214292e6a0bcf2ade6181d4bfcd675b62ce75899127472daaa162ee7ae42c7901e6eee3a219bc08faab4e75e089bcc
7
- data.tar.gz: 8b733a279d5cb7b81a88ae593959d9a1f11270a4f31eaef3bebb05920d71ba8f4c70adad0bcf8f10cb35d798a138559acede2382b71cea516f77e55b57fd2101
6
+ metadata.gz: acfc64d3a0f15b22513f434d11709740c484921f9da039b1cf5b810b10adc49253e2f037a51f5e11d734db4d6b128701c813e176cda61c85294f43139be057ad
7
+ data.tar.gz: f688ca59afa69fbae5b2d9b162c331d62404af913806f0cb150e825dc62f6c5ca464991234a6162d09816fc0b37a588967fa4fa68df5b63c8d1ad025dd796427
@@ -10,13 +10,13 @@ module Validator
10
10
  if valid_result[0]
11
11
  true
12
12
  else
13
- valid_result[2].response_with_error(CommonError::InvalidData, valid_result[1])
13
+ valid_result[2].response_with_error(CommonError::InvalidData, valid_result[1])
14
14
  end
15
15
  }
16
16
  end
17
17
 
18
18
  def check_validate(seed_model, self_rest)
19
- errors = seed_model.class::ValidationSchema.call(seed_model.attributes_data).messages
19
+ errors = seed_model.class::ValidationSchema.call(seed_model.validate_attributes).messages
20
20
  if errors.empty?
21
21
  [true]
22
22
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blsk_ruby_core_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.pre.3
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fusin Thang
@@ -268,9 +268,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
268
268
  version: 2.3.0
269
269
  required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  requirements:
271
- - - ">"
271
+ - - ">="
272
272
  - !ruby/object:Gem::Version
273
- version: 1.3.1
273
+ version: '0'
274
274
  requirements: []
275
275
  rubyforge_project:
276
276
  rubygems_version: 2.7.7