veto 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/veto/validator.rb +4 -4
- data/lib/veto/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ddb59a4bc3131694b4d01a21be9af65642a68f2
|
4
|
+
data.tar.gz: 75debbd619daefd3747e8b71caf9fd16d21bd774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 490141f645014fdec44afc7a1e06d6c142c7ddd221aedd50b4e5296f2f21a38e3d2681085b90c831908e089e3a038607f6aef17add13024dec468f46ff0b5fe3
|
7
|
+
data.tar.gz: c14d7a45c558a00d1e772c668bed5002b2cfe97715a9cc3c81288f5dd94f6b1baabe0a95df0437b725f4774557f546679a127ebde774485b82f05dfacee7eb34
|
data/lib/veto/validator.rb
CHANGED
@@ -54,8 +54,8 @@ module Veto
|
|
54
54
|
# @param entity [Object] the entity instance to validate.
|
55
55
|
#
|
56
56
|
# @return [Boolean]
|
57
|
-
def valid?
|
58
|
-
new(
|
57
|
+
def valid? *args
|
58
|
+
new(*args).valid?
|
59
59
|
end
|
60
60
|
|
61
61
|
# Raises exception if entity is invalid
|
@@ -66,8 +66,8 @@ module Veto
|
|
66
66
|
#
|
67
67
|
# @param entity [Object] the entity instance to be validated.
|
68
68
|
# @raise [Veto::InvalidEntity] if the entity is invalid
|
69
|
-
def validate!
|
70
|
-
new(
|
69
|
+
def validate! *args
|
70
|
+
new(*args).validate!
|
71
71
|
end
|
72
72
|
|
73
73
|
private
|
data/lib/veto/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Lott
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|