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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4206c75190ac20d67c36162f76b7ea2b9e35e674
4
- data.tar.gz: f12554b84b0c9969a26948daf5df0f980c622e96
3
+ metadata.gz: 3ddb59a4bc3131694b4d01a21be9af65642a68f2
4
+ data.tar.gz: 75debbd619daefd3747e8b71caf9fd16d21bd774
5
5
  SHA512:
6
- metadata.gz: 838c7c98791d279f9a9031ae2273ce1cae41f92d8f619adc02386e47ce1244b4f20c5dfa94034452fbc01af9bdf7b5b5ad0e11d94129c46702a56cdbe34f43c5
7
- data.tar.gz: 9dc1a3f7b53683c1c00ae27f6e24113cd989066631cadddd1ad765f1213641c4b6260d112c7ec539587fbc4b550e9b51a47e05fa93f6ae9c330bbcb9fe83e1d0
6
+ metadata.gz: 490141f645014fdec44afc7a1e06d6c142c7ddd221aedd50b4e5296f2f21a38e3d2681085b90c831908e089e3a038607f6aef17add13024dec468f46ff0b5fe3
7
+ data.tar.gz: c14d7a45c558a00d1e772c668bed5002b2cfe97715a9cc3c81288f5dd94f6b1baabe0a95df0437b725f4774557f546679a127ebde774485b82f05dfacee7eb34
@@ -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? entity
58
- new(entity).valid?
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! entity
70
- new(entity).validate!
69
+ def validate! *args
70
+ new(*args).validate!
71
71
  end
72
72
 
73
73
  private
data/lib/veto/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Veto
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2013-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler