gendalf 0.4 → 0.5

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.5. Fixed unconditional redirection bug (yeah, the same one)
2
+
1
3
  v0.4. Fixed unconditional redirection bug
2
4
 
3
5
  v0.3. Made submodel attributes loading a separate routine in order for it to be easier overriden. Also fixed wrong eval type, which somehow worked :)
data/gendalf.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{gendalf}
5
- s.version = "0.4"
5
+ s.version = "0.5"
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"]
@@ -61,7 +61,7 @@ module Gendalf
61
61
  private
62
62
 
63
63
  def redirect_to_current_step
64
- if /step\d+(|_submit)/.match(params[:action]) && step_no != current_step
64
+ if /^step\d*(|_submit)/.match(params[:action]) && step_no != current_step
65
65
  redirect_to wizard_path(current_step)
66
66
  end
67
67
  end
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: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- version: "0.4"
8
+ - 5
9
+ version: "0.5"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ivan Kasatenko