simple_action 0.0.1.pre5 → 0.0.1.pre6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/lib/simple_action/service.rb +8 -1
- data/lib/simple_action/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWYwYjg0ZDEwMTBkZWJjNjNiODAwOWM1NDNkNmZjYzk0NDExZjg5ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2Y5ZTRkZjRhNjVlMDY0NjA3MzBkODdjMjczNWEzMzBmMWZjY2Q0Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2U4N2NmZGUzYWZjNWFjYjQ3ZTI1YWM5ZTE4MzQ0NjA1Nzk0MmQ0ZDEzNTEy
|
10
|
+
OTJmNzA3MjgxYzNhZGNlZGVmNjFhZmQ2MTg0OTc0ZWYzNDkyYTY3NzRhMWI1
|
11
|
+
YjQyNzE4ZTlmMTEwOWYwZGJjZmMyODk5NzI5Y2RmZDIxYjU5N2M=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzdjYjk1MTUzZmVmM2QyYTc1NzNiMmIyOThhZDNiMjY2MjNhYTg3M2U4ZDc0
|
14
|
+
OWRmNzdkMjE1NThkMWMxNGEyOTQzNjM2NDcyMzExNTE4MDJmNmY5MDI0N2My
|
15
|
+
ZjNhZTc4NGM1MWRjNDVmYTJjZTJlMjQxZDdkMWQ4ZTVhYmUxY2I=
|
data/Gemfile.lock
CHANGED
@@ -30,6 +30,7 @@ module SimpleAction
|
|
30
30
|
def initialize(params={})
|
31
31
|
@raw_params = params
|
32
32
|
@params = self.class.params_class.new(params)
|
33
|
+
@validity = nil
|
33
34
|
end
|
34
35
|
|
35
36
|
def params
|
@@ -37,7 +38,13 @@ module SimpleAction
|
|
37
38
|
end
|
38
39
|
|
39
40
|
def valid?
|
40
|
-
|
41
|
+
# Adding this so that I don't assert validity each time.
|
42
|
+
# TODO: I Still need a proper test for this.
|
43
|
+
if @validity.nil?
|
44
|
+
@validity = @params.valid?
|
45
|
+
else
|
46
|
+
@validity
|
47
|
+
end
|
41
48
|
end
|
42
49
|
|
43
50
|
def errors
|