vanilla_validator 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/vanilla_validator/result.rb +2 -2
- data/lib/vanilla_validator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a9e98bf5906f1c93ceb3a58c4d9049a39b37ecac9a281c4661e5a1201d4a2b9
|
4
|
+
data.tar.gz: aeb2828796b9e62ba3b37e038d87619d52aef4dc0183fc973ef2c67575d55f23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3201c1726a24cca59b7fa494e63c5c1754f851c9a9ecbdf63dfc62053f32e9f8daa31b94131670b0f84ed8f58063dfc9c46ada459a615eddf82eca4f963a447
|
7
|
+
data.tar.gz: '0407039760934cb5a51df077c58040648b6d9c2f3ab2a5b5f82b6ca605f03a188705e94a0d13497d041db63362f48aea9000e889b97fda203ddf8fe74841980d'
|
data/Gemfile.lock
CHANGED
@@ -8,8 +8,6 @@ module VanillaValidator
|
|
8
8
|
@errors = errors.with_indifferent_access
|
9
9
|
end
|
10
10
|
|
11
|
-
alias :valid? :success?
|
12
|
-
|
13
11
|
def success?
|
14
12
|
errors.empty?
|
15
13
|
end
|
@@ -17,5 +15,7 @@ module VanillaValidator
|
|
17
15
|
def failed?
|
18
16
|
errors.any?
|
19
17
|
end
|
18
|
+
|
19
|
+
alias :valid? :success?
|
20
20
|
end
|
21
21
|
end
|