gendalf 0.5 → 0.6

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/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.6. Extracted current step loading routine to be used outside of the original gem workflow
2
+
1
3
  v0.5. Fixed unconditional redirection bug (yeah, the same one)
2
4
 
3
5
  v0.4. Fixed unconditional redirection bug
data/gendalf.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{gendalf}
5
- s.version = "0.5"
5
+ s.version = "0.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ivan Kasatenko"]
9
- s.date = %q{2011-02-25}
9
+ s.date = %q{2011-02-27}
10
10
  s.description = %q{Trivial gem to support wizard application style creation.}
11
11
  s.email = %q{sky.31338@gmail.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "README.markdown", "lib/controllers/wizard_controller.rb", "lib/extensions/routes.rb", "lib/gendalf.rb", "lib/models/wizard_model.rb"]
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Gendalf", "--main", "README.markdown"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{gendalf}
18
- s.rubygems_version = %q{1.5.2}
18
+ s.rubygems_version = %q{1.5.0}
19
19
  s.summary = %q{Trivial gem to support wizard application style creation.}
20
20
 
21
21
  if s.respond_to? :specification_version then
@@ -10,7 +10,7 @@ module Gendalf
10
10
  end
11
11
 
12
12
  def step
13
- @step = model.new(params[param_name])
13
+ load_current_step
14
14
  send step_action_name
15
15
  render :action => step_action_name
16
16
  end
@@ -41,6 +41,10 @@ module Gendalf
41
41
  end
42
42
 
43
43
  protected
44
+
45
+ def load_current_step
46
+ @step = model.new(params[param_name])
47
+ end
44
48
 
45
49
  def wizard_model
46
50
  raise "Please, implement 'wizard_model' method in #{self.class.name}"
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gendalf
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 5
9
- version: "0.5"
8
+ - 6
9
+ version: "0.6"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ivan Kasatenko
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-25 00:00:00 +03:00
17
+ date: 2011-02-27 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  requirements: []
119
119
 
120
120
  rubyforge_project: gendalf
121
- rubygems_version: 1.5.2
121
+ rubygems_version: 1.5.0
122
122
  signing_key:
123
123
  specification_version: 3
124
124
  summary: Trivial gem to support wizard application style creation.