linear_work_flow 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/linear_work_flow/version.rb +1 -1
- data/lib/linear_work_flow/work_flow.rb +2 -0
- 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: 35c26ea67623ef226773fe7f7891afcc2ec3fba4
|
|
4
|
+
data.tar.gz: 05dc8f5960dd8d5f64028a07e5c0b03f0ad0f657
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 721a2897f33bbdfa216ff1ff87d8d8bf3828a98d794b4bde89b233ed44be3b5ba52a1a9bfd79e634f693dede8635205788ad5d8ef85947fbf45493a68e0b5da5
|
|
7
|
+
data.tar.gz: 023d6e5cf9097e2df7a78c5b23c59ea0b637d476b97a8ffc75216ceb0bdf5f5366e0b946f1b4a44a510dd04fe5fddec6e3a5a1d8ea07d8e7b3461bf84307eb5c
|
|
@@ -25,11 +25,13 @@ module LinearWorkFlow
|
|
|
25
25
|
def forward!
|
|
26
26
|
raise(ChangeStateError, "Cannot go forward from last state") if last?
|
|
27
27
|
self.index += 1
|
|
28
|
+
state
|
|
28
29
|
end
|
|
29
30
|
|
|
30
31
|
def back!
|
|
31
32
|
raise(ChangeStateError, "Cannot go back from first state") if first?
|
|
32
33
|
self.index -= 1
|
|
34
|
+
state
|
|
33
35
|
end
|
|
34
36
|
|
|
35
37
|
def last?
|