veto 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/veto/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d40b9600911fc1701db329e9fde6f968ffc0d2b4
|
4
|
+
data.tar.gz: fe3a8750aedd28bc3b7a7716aa4f29ca67258dfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fe26df8d58fe79480ecf122185d057a27e823e7e811d78cea31092dc11b9b7f80b2e53781b23eebcefc1627072a87db6c58d67ba8ffec28370edf88fd7496c8
|
7
|
+
data.tar.gz: 9813ecb3badcbfdfafaef1635ca3a01278fae6ac07d04e81fbb6141dc843d51384c65454a330b294b1685cf22d4cfda59c800220ef9329dd13f8b60d5bfd4b4a
|
data/README.md
CHANGED
@@ -264,7 +264,8 @@ class PersonValidator
|
|
264
264
|
end
|
265
265
|
|
266
266
|
person = Person.new
|
267
|
-
PersonValidator.
|
267
|
+
validator = PersonValidator.new
|
268
|
+
validator.validate!(person) # => Veto::InvalidEntity, ["last_name is not present"]
|
268
269
|
```
|
269
270
|
|
270
271
|
## Conditional Validation
|
data/lib/veto/version.rb
CHANGED