wizardz 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/VERSION +1 -1
- data/lib/wizardz/wizard.rb +3 -3
- data/wizardz.gemspec +1 -1
- metadata +3 -3
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/lib/wizardz/wizard.rb
CHANGED
@@ -9,7 +9,7 @@ module Wizardz
|
|
9
9
|
attr_reader :valid_states
|
10
10
|
attr_reader :unprocessed
|
11
11
|
|
12
|
-
STATES={:first_state => Wizardz::Page::First}
|
12
|
+
STATES=[{:id => :first_state, :class => Wizardz::Page::First}]
|
13
13
|
|
14
14
|
def initialize(fund_data={},state=nil)
|
15
15
|
state = self.states.first if state.nil?
|
@@ -28,11 +28,11 @@ module Wizardz
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def states
|
31
|
-
self.class::STATES.
|
31
|
+
@states ||= self.class::STATES.map{|r| r[:id]}
|
32
32
|
end
|
33
33
|
|
34
34
|
def classes
|
35
|
-
self.class::STATES.
|
35
|
+
@classes ||= self.class::STATES.map{|r| r[:class]}
|
36
36
|
end
|
37
37
|
|
38
38
|
def create
|
data/wizardz.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wizardz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
- 0
|
9
8
|
- 1
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Henry
|