pavlov 0.1.7 → 0.1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pavlov/alpha_compatibility.rb +1 -1
- data/lib/pavlov/operation.rb +5 -5
- data/lib/pavlov/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: 9758ce291059ff9041789760c3859314ca2dfd25
|
4
|
+
data.tar.gz: 74b504eed67d6d0f91811dfe78c88b1142c6dad0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09587b7f4e809ef8050ce7ebac50bd91d557352382f8a648861ab3c65025d8900871e5258db93ed94a4b0a03e7cb33df3e198257f1372f37408ea63f39908158
|
7
|
+
data.tar.gz: 66f927ebc21ce5168f01796d9c4eefa8986a969838d04f24e375726ebd76dbc13bd4ba073f857400875058ad75115f018bc04f95b7b9a75bbcce82d1cf975f2a
|
data/lib/pavlov/operation.rb
CHANGED
@@ -36,18 +36,18 @@ module Pavlov
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def check_validation
|
39
|
-
raise Pavlov::ValidationError,
|
40
|
-
|
39
|
+
raise Pavlov::ValidationError, "Missing arguments: #{missing_arguments.inspect}" if missing_arguments.any?
|
40
|
+
validate
|
41
41
|
end
|
42
42
|
|
43
|
-
def
|
44
|
-
attribute_set.
|
43
|
+
def missing_arguments
|
44
|
+
attribute_set.select do |attribute|
|
45
45
|
!attribute.options.has_key?(:default) && send(attribute.name).nil?
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
49
|
def validate
|
50
|
-
|
50
|
+
# no-op, users should override this
|
51
51
|
end
|
52
52
|
|
53
53
|
module ClassMethods
|
data/lib/pavlov/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pavlov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.7
|
4
|
+
version: 0.1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Veldthuis
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2013-08-
|
16
|
+
date: 2013-08-19 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: virtus
|