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.
- checksums.yaml +4 -4
- data/lib/decoractors/valid.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b62f0a05339dd11dcdf67bef08df3ff21bbe79c70584147172c56a7377b3749
|
4
|
+
data.tar.gz: fef2b9fcbe9a974914cc3e22c1c0957fa5aa932d541c5a6999e5925d80156fbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acfc64d3a0f15b22513f434d11709740c484921f9da039b1cf5b810b10adc49253e2f037a51f5e11d734db4d6b128701c813e176cda61c85294f43139be057ad
|
7
|
+
data.tar.gz: f688ca59afa69fbae5b2d9b162c331d62404af913806f0cb150e825dc62f6c5ca464991234a6162d09816fc0b37a588967fa4fa68df5b63c8d1ad025dd796427
|
data/lib/decoractors/valid.rb
CHANGED
@@ -10,13 +10,13 @@ module Validator
|
|
10
10
|
if valid_result[0]
|
11
11
|
true
|
12
12
|
else
|
13
|
-
|
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.
|
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
|
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:
|
273
|
+
version: '0'
|
274
274
|
requirements: []
|
275
275
|
rubyforge_project:
|
276
276
|
rubygems_version: 2.7.7
|