wizardz 1.0.1 → 1.1.0

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.
data/.gitignore CHANGED
@@ -17,6 +17,6 @@ tmtags
17
17
  coverage
18
18
  rdoc
19
19
  pkg
20
- nbproject/**/*
20
+ nbproject
21
21
 
22
22
  ## PROJECT::SPECIFIC
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.1.0
@@ -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.keys
31
+ @states ||= self.class::STATES.map{|r| r[:id]}
32
32
  end
33
33
 
34
34
  def classes
35
- self.class::STATES.values
35
+ @classes ||= self.class::STATES.map{|r| r[:class]}
36
36
  end
37
37
 
38
38
  def create
data/wizardz.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wizardz}
8
- s.version = "1.0.1"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Henry"]
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 0
9
8
  - 1
10
- version: 1.0.1
9
+ - 0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Henry