wicked 0.6.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of wicked might be problematic. Click here for more details.
- data/.travis.yml +17 -1
- data/CHANGELOG.md +5 -0
- data/Gemfile +15 -12
- data/README.md +3 -2
- data/VERSION +1 -1
- data/lib/wicked/controller/concerns/render_redirect.rb +4 -4
- data/test/dummy/app/controllers/redirect_to_next_controller.rb +20 -0
- data/test/dummy/app/views/redirect_to_next/first.html.erb +1 -0
- data/test/dummy/app/views/redirect_to_next/last_step.html.erb +1 -0
- data/test/dummy/app/views/redirect_to_next/second.html.erb +1 -0
- data/test/dummy/config/routes.rb +1 -0
- data/test/integration/nested_builder_test.rb +2 -3
- data/test/integration/redirect_to_next_test.rb +29 -0
- data/wicked.gemspec +17 -19
- metadata +115 -147
- data/Gemfile.lock +0 -129
data/.travis.yml
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 1.8.7
|
4
3
|
- 1.9.3
|
4
|
+
- 2.0.0
|
5
|
+
- ruby-head
|
5
6
|
- jruby-19mode
|
7
|
+
|
8
|
+
env:
|
9
|
+
- "RAILS_VERSION=3.0.7"
|
10
|
+
- "RAILS_VERSION=3.1.0"
|
11
|
+
- "RAILS_VERSION=3.2.0"
|
12
|
+
- "RAILS_VERSION=4.0.0.pre"
|
13
|
+
- "RAILS_VERSION=master"
|
14
|
+
|
15
|
+
matrix:
|
16
|
+
allow_failures:
|
17
|
+
- env: "RAILS_VERSION=3.0.7"
|
18
|
+
rvm: 2.0.0
|
19
|
+
- env: "RAILS_VERSION=master"
|
20
|
+
- rvm: ruby-head
|
21
|
+
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -1,22 +1,25 @@
|
|
1
|
-
source "
|
1
|
+
source "https://rubygems.org"
|
2
2
|
|
3
|
-
|
4
|
-
gem "rails" , ">= 3.0.7"
|
3
|
+
rails_version = ENV["RAILS_VERSION"] || "default"
|
5
4
|
|
5
|
+
rails = case rails_version
|
6
|
+
when "master"
|
7
|
+
{:github => "rails/rails"}
|
8
|
+
when "default"
|
9
|
+
">= 3.0.7"
|
10
|
+
else
|
11
|
+
"~> #{rails_version}"
|
12
|
+
end
|
13
|
+
|
14
|
+
gem "rails", rails
|
6
15
|
|
7
16
|
|
8
17
|
group :development, :test do
|
9
18
|
gem 'rake'
|
10
|
-
gem 'jeweler'
|
11
|
-
gem "
|
12
|
-
gem "capybara", ">= 0.4.0"
|
19
|
+
gem 'jeweler'
|
20
|
+
gem "capybara", "~> 1.1.2"
|
13
21
|
gem "launchy"
|
14
22
|
|
15
23
|
gem "sqlite3", :platform => [:ruby, :mswin, :mingw]
|
16
|
-
gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby
|
24
|
+
gem "activerecord-jdbcsqlite3-adapter", '>= 1.3.0.beta', :platform => :jruby
|
17
25
|
end
|
18
|
-
|
19
|
-
|
20
|
-
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
|
21
|
-
# gem 'ruby-debug'
|
22
|
-
# gem 'ruby-debug19'
|
data/README.md
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
# Step-By-Step Wizard Controllers
|
4
4
|
|
5
|
-
[![Build Status](https://secure.travis-ci.org/schneems/wicked.png)](http://travis-ci.org/schneems/wicked)
|
5
|
+
[![Build Status](https://secure.travis-ci.org/schneems/wicked.png)](http://travis-ci.org/schneems/wicked)
|
6
|
+
[![Code Climate](https://codeclimate.com/github/schneems/wicked.png)](https://codeclimate.com/github/schneems/wicked)
|
6
7
|
|
7
8
|
Use wicked to make your Rails controllers into step-by-step wizards. To see Wicked in action check out the example [Rails app](https://github.com/schneems/wicked_example) or [watch the screencast](http://schneems.com/post/18437886598/wizard-ify-your-rails-controllers-with-wicked).
|
8
9
|
|
@@ -87,7 +88,7 @@ class AfterSignupController < ApplicationController
|
|
87
88
|
end
|
88
89
|
```
|
89
90
|
|
90
|
-
**Note:** Wicked uses the `:id` parameter to control the flow of steps, if you need to have an id parameter, please use nested routes
|
91
|
+
**Note:** Wicked uses the `:id` parameter to control the flow of steps, if you need to have an id parameter, please use nested routes. See [building objects with wicked](https://github.com/schneems/wicked/wiki/Building-Partial-Objects-Step-by-Step) for an example. It will need to be prefixed, for example a Product's `:id` would be `:product_id`
|
91
92
|
|
92
93
|
You'll need to call `render_wizard` at the end of your action to get the correct views to show up.
|
93
94
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.0
|
@@ -30,11 +30,11 @@ module Wicked::Controller::Concerns::RenderRedirect
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
def redirect_to_next(next_step)
|
33
|
+
def redirect_to_next(next_step, options = {})
|
34
34
|
if next_step.nil?
|
35
|
-
redirect_to_finish_wizard
|
35
|
+
redirect_to_finish_wizard(options)
|
36
36
|
else
|
37
|
-
redirect_to wizard_path(next_step)
|
37
|
+
redirect_to wizard_path(next_step), options
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -43,7 +43,7 @@ module Wicked::Controller::Concerns::RenderRedirect
|
|
43
43
|
'/'
|
44
44
|
end
|
45
45
|
|
46
|
-
def redirect_to_finish_wizard(options =
|
46
|
+
def redirect_to_finish_wizard(options = {})
|
47
47
|
redirect_to finish_wizard_path, options
|
48
48
|
end
|
49
49
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class RedirectToNextController < ApplicationController
|
2
|
+
include Wicked::Wizard
|
3
|
+
steps :first, :second, :last_step
|
4
|
+
|
5
|
+
def show
|
6
|
+
if params[:jump_to]
|
7
|
+
if params[:jump_to] == 'finish_wizard'
|
8
|
+
redirect_to_finish_wizard :notice => params[:notice]
|
9
|
+
else
|
10
|
+
redirect_to_next params[:jump_to], :notice => params[:notice]
|
11
|
+
end
|
12
|
+
else
|
13
|
+
render_wizard
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def update
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
first
|
@@ -0,0 +1 @@
|
|
1
|
+
last_step
|
@@ -0,0 +1 @@
|
|
1
|
+
second
|
data/test/dummy/config/routes.rb
CHANGED
@@ -3,16 +3,15 @@ require 'test_helper'
|
|
3
3
|
class NestedBuilderTest < ActiveSupport::IntegrationCase
|
4
4
|
|
5
5
|
test 'can use nested ids' do
|
6
|
-
visit nested_builder_path(:last_step, :nested_id => "foo")
|
6
|
+
visit nested_builder_path(:id => :last_step, :nested_id => "foo")
|
7
7
|
assert has_content?("last")
|
8
8
|
assert has_content?("params[:nested_id] foo")
|
9
9
|
end
|
10
10
|
|
11
11
|
test 'forwards nested ids' do
|
12
|
-
visit nested_builder_path(:last_step, :nested_id => "foo")
|
12
|
+
visit nested_builder_path(:id => :last_step, :nested_id => "foo")
|
13
13
|
assert has_content?("last")
|
14
14
|
click_link 'next'
|
15
15
|
assert has_content?("home")
|
16
16
|
end
|
17
|
-
|
18
17
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class RedirectToNextTest < ActiveSupport::IntegrationCase
|
4
|
+
test 'redirect_to_next without options' do
|
5
|
+
step = :first
|
6
|
+
visit(redirect_to_next_path(step, :jump_to => :last_step))
|
7
|
+
assert has_content?('last_step')
|
8
|
+
end
|
9
|
+
|
10
|
+
test 'redirect_to_next with options' do
|
11
|
+
step = :first
|
12
|
+
visit(redirect_to_next_path(step, :jump_to => :last_step, :notice => 'jump notice'))
|
13
|
+
assert has_content?('last_step')
|
14
|
+
assert has_content?('notice:jump notice')
|
15
|
+
end
|
16
|
+
|
17
|
+
test 'redirect_to_finish_wizard without options' do
|
18
|
+
step = :first
|
19
|
+
visit(redirect_to_next_path(step, :jump_to => :finish_wizard))
|
20
|
+
assert has_content?('home')
|
21
|
+
end
|
22
|
+
|
23
|
+
test 'redirect_to_finish_wizard with options' do
|
24
|
+
step = :first
|
25
|
+
visit(redirect_to_next_path(step, :jump_to => :finish_wizard, :notice => 'jump notice'))
|
26
|
+
assert has_content?('home')
|
27
|
+
assert has_content?('notice:jump notice')
|
28
|
+
end
|
29
|
+
end
|
data/wicked.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "wicked"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "1.0.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["schneems"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-08-03"
|
13
13
|
s.description = "Wicked is a Rails engine for producing easy wizard controllers"
|
14
14
|
s.email = "richard.schneeman@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -20,7 +20,6 @@ Gem::Specification.new do |s|
|
|
20
20
|
".travis.yml",
|
21
21
|
"CHANGELOG.md",
|
22
22
|
"Gemfile",
|
23
|
-
"Gemfile.lock",
|
24
23
|
"MIT-LICENSE",
|
25
24
|
"README.md",
|
26
25
|
"Rakefile",
|
@@ -41,6 +40,7 @@ Gem::Specification.new do |s|
|
|
41
40
|
"test/dummy/app/controllers/jump_controller.rb",
|
42
41
|
"test/dummy/app/controllers/nested/builder_controller.rb",
|
43
42
|
"test/dummy/app/controllers/pages_controller.rb",
|
43
|
+
"test/dummy/app/controllers/redirect_to_next_controller.rb",
|
44
44
|
"test/dummy/app/controllers/steps_controller.rb",
|
45
45
|
"test/dummy/app/controllers/string_steps_controller.rb",
|
46
46
|
"test/dummy/app/helpers/application_helper.rb",
|
@@ -60,6 +60,9 @@ Gem::Specification.new do |s|
|
|
60
60
|
"test/dummy/app/views/nested/builder/last_step.html.erb",
|
61
61
|
"test/dummy/app/views/nested/builder/second.html.erb",
|
62
62
|
"test/dummy/app/views/pages/index.html.erb",
|
63
|
+
"test/dummy/app/views/redirect_to_next/first.html.erb",
|
64
|
+
"test/dummy/app/views/redirect_to_next/last_step.html.erb",
|
65
|
+
"test/dummy/app/views/redirect_to_next/second.html.erb",
|
63
66
|
"test/dummy/app/views/step_positions/_step_position.html.erb",
|
64
67
|
"test/dummy/app/views/step_positions/first.html.erb",
|
65
68
|
"test/dummy/app/views/step_positions/last_step.html.erb",
|
@@ -99,6 +102,7 @@ Gem::Specification.new do |s|
|
|
99
102
|
"test/integration/jump_test.rb",
|
100
103
|
"test/integration/navigation_test.rb",
|
101
104
|
"test/integration/nested_builder_test.rb",
|
105
|
+
"test/integration/redirect_to_next_test.rb",
|
102
106
|
"test/integration/steps_test.rb",
|
103
107
|
"test/support/integration_case.rb",
|
104
108
|
"test/test_helper.rb",
|
@@ -108,43 +112,37 @@ Gem::Specification.new do |s|
|
|
108
112
|
s.homepage = "http://github.com/schneems/wicked"
|
109
113
|
s.licenses = ["MIT"]
|
110
114
|
s.require_paths = ["lib"]
|
111
|
-
s.rubygems_version = "1.8.
|
115
|
+
s.rubygems_version = "1.8.23"
|
112
116
|
s.summary = "Use Wicked to turn your controller into a wizard"
|
113
117
|
|
114
118
|
if s.respond_to? :specification_version then
|
115
119
|
s.specification_version = 3
|
116
120
|
|
117
121
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
118
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.7"])
|
119
122
|
s.add_runtime_dependency(%q<rails>, [">= 3.0.7"])
|
120
123
|
s.add_development_dependency(%q<rake>, [">= 0"])
|
121
|
-
s.add_development_dependency(%q<jeweler>, ["
|
122
|
-
s.add_development_dependency(%q<
|
123
|
-
s.add_development_dependency(%q<capybara>, [">= 0.4.0"])
|
124
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
125
|
+
s.add_development_dependency(%q<capybara>, ["~> 1.1.2"])
|
124
126
|
s.add_development_dependency(%q<launchy>, [">= 0"])
|
125
127
|
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
126
|
-
s.add_development_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
128
|
+
s.add_development_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 1.3.0.beta"])
|
127
129
|
else
|
128
|
-
s.add_dependency(%q<activesupport>, [">= 3.0.7"])
|
129
130
|
s.add_dependency(%q<rails>, [">= 3.0.7"])
|
130
131
|
s.add_dependency(%q<rake>, [">= 0"])
|
131
|
-
s.add_dependency(%q<jeweler>, ["
|
132
|
-
s.add_dependency(%q<
|
133
|
-
s.add_dependency(%q<capybara>, [">= 0.4.0"])
|
132
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
133
|
+
s.add_dependency(%q<capybara>, ["~> 1.1.2"])
|
134
134
|
s.add_dependency(%q<launchy>, [">= 0"])
|
135
135
|
s.add_dependency(%q<sqlite3>, [">= 0"])
|
136
|
-
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
136
|
+
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 1.3.0.beta"])
|
137
137
|
end
|
138
138
|
else
|
139
|
-
s.add_dependency(%q<activesupport>, [">= 3.0.7"])
|
140
139
|
s.add_dependency(%q<rails>, [">= 3.0.7"])
|
141
140
|
s.add_dependency(%q<rake>, [">= 0"])
|
142
|
-
s.add_dependency(%q<jeweler>, ["
|
143
|
-
s.add_dependency(%q<
|
144
|
-
s.add_dependency(%q<capybara>, [">= 0.4.0"])
|
141
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
142
|
+
s.add_dependency(%q<capybara>, ["~> 1.1.2"])
|
145
143
|
s.add_dependency(%q<launchy>, [">= 0"])
|
146
144
|
s.add_dependency(%q<sqlite3>, [">= 0"])
|
147
|
-
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
145
|
+
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 1.3.0.beta"])
|
148
146
|
end
|
149
147
|
end
|
150
148
|
|
metadata
CHANGED
@@ -1,170 +1,139 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: wicked
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 6
|
9
|
-
- 1
|
10
|
-
version: 0.6.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- schneems
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2013-08-03 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
23
17
|
none: false
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
hash: 9
|
28
|
-
segments:
|
29
|
-
- 3
|
30
|
-
- 0
|
31
|
-
- 7
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
32
21
|
version: 3.0.7
|
33
22
|
type: :runtime
|
34
|
-
name: activesupport
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
25
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
hash: 9
|
44
|
-
segments:
|
45
|
-
- 3
|
46
|
-
- 0
|
47
|
-
- 7
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
48
29
|
version: 3.0.7
|
49
|
-
|
50
|
-
name:
|
51
|
-
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
prerelease: false
|
54
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
55
33
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
segments:
|
61
|
-
- 0
|
62
|
-
version: "0"
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
63
38
|
type: :development
|
64
|
-
name: rake
|
65
|
-
version_requirements: *id003
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
39
|
prerelease: false
|
68
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
41
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
|
75
|
-
- 1
|
76
|
-
- 6
|
77
|
-
- 4
|
78
|
-
version: 1.6.4
|
79
|
-
type: :development
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
80
47
|
name: jeweler
|
81
|
-
|
82
|
-
- !ruby/object:Gem::Dependency
|
83
|
-
prerelease: false
|
84
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
85
49
|
none: false
|
86
|
-
requirements:
|
87
|
-
- -
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
|
90
|
-
segments:
|
91
|
-
- 0
|
92
|
-
version: "0"
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
93
54
|
type: :development
|
94
|
-
name: rcov
|
95
|
-
version_requirements: *id005
|
96
|
-
- !ruby/object:Gem::Dependency
|
97
55
|
prerelease: false
|
98
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
57
|
none: false
|
100
|
-
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
|
104
|
-
|
105
|
-
- 0
|
106
|
-
- 4
|
107
|
-
- 0
|
108
|
-
version: 0.4.0
|
109
|
-
type: :development
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
110
63
|
name: capybara
|
111
|
-
|
112
|
-
- !ruby/object:Gem::Dependency
|
113
|
-
prerelease: false
|
114
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
115
65
|
none: false
|
116
|
-
requirements:
|
117
|
-
- -
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
|
120
|
-
segments:
|
121
|
-
- 0
|
122
|
-
version: "0"
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.1.2
|
123
70
|
type: :development
|
124
|
-
name: launchy
|
125
|
-
version_requirements: *id007
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
71
|
prerelease: false
|
128
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
129
73
|
none: false
|
130
|
-
requirements:
|
131
|
-
- -
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.1.2
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: launchy
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
137
86
|
type: :development
|
138
|
-
name: sqlite3
|
139
|
-
version_requirements: *id008
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
87
|
prerelease: false
|
142
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
143
89
|
none: false
|
144
|
-
requirements:
|
145
|
-
- -
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: sqlite3
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
151
102
|
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
152
111
|
name: activerecord-jdbcsqlite3-adapter
|
153
|
-
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.3.0.beta
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 1.3.0.beta
|
154
126
|
description: Wicked is a Rails engine for producing easy wizard controllers
|
155
127
|
email: richard.schneeman@gmail.com
|
156
128
|
executables: []
|
157
|
-
|
158
129
|
extensions: []
|
159
|
-
|
160
|
-
extra_rdoc_files:
|
130
|
+
extra_rdoc_files:
|
161
131
|
- README.md
|
162
|
-
files:
|
132
|
+
files:
|
163
133
|
- .rvmrc
|
164
134
|
- .travis.yml
|
165
135
|
- CHANGELOG.md
|
166
136
|
- Gemfile
|
167
|
-
- Gemfile.lock
|
168
137
|
- MIT-LICENSE
|
169
138
|
- README.md
|
170
139
|
- Rakefile
|
@@ -185,6 +154,7 @@ files:
|
|
185
154
|
- test/dummy/app/controllers/jump_controller.rb
|
186
155
|
- test/dummy/app/controllers/nested/builder_controller.rb
|
187
156
|
- test/dummy/app/controllers/pages_controller.rb
|
157
|
+
- test/dummy/app/controllers/redirect_to_next_controller.rb
|
188
158
|
- test/dummy/app/controllers/steps_controller.rb
|
189
159
|
- test/dummy/app/controllers/string_steps_controller.rb
|
190
160
|
- test/dummy/app/helpers/application_helper.rb
|
@@ -204,6 +174,9 @@ files:
|
|
204
174
|
- test/dummy/app/views/nested/builder/last_step.html.erb
|
205
175
|
- test/dummy/app/views/nested/builder/second.html.erb
|
206
176
|
- test/dummy/app/views/pages/index.html.erb
|
177
|
+
- test/dummy/app/views/redirect_to_next/first.html.erb
|
178
|
+
- test/dummy/app/views/redirect_to_next/last_step.html.erb
|
179
|
+
- test/dummy/app/views/redirect_to_next/second.html.erb
|
207
180
|
- test/dummy/app/views/step_positions/_step_position.html.erb
|
208
181
|
- test/dummy/app/views/step_positions/first.html.erb
|
209
182
|
- test/dummy/app/views/step_positions/last_step.html.erb
|
@@ -243,43 +216,38 @@ files:
|
|
243
216
|
- test/integration/jump_test.rb
|
244
217
|
- test/integration/navigation_test.rb
|
245
218
|
- test/integration/nested_builder_test.rb
|
219
|
+
- test/integration/redirect_to_next_test.rb
|
246
220
|
- test/integration/steps_test.rb
|
247
221
|
- test/support/integration_case.rb
|
248
222
|
- test/test_helper.rb
|
249
223
|
- test/wicked_test.rb
|
250
224
|
- wicked.gemspec
|
251
225
|
homepage: http://github.com/schneems/wicked
|
252
|
-
licenses:
|
226
|
+
licenses:
|
253
227
|
- MIT
|
254
228
|
post_install_message:
|
255
229
|
rdoc_options: []
|
256
|
-
|
257
|
-
require_paths:
|
230
|
+
require_paths:
|
258
231
|
- lib
|
259
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
232
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
260
233
|
none: false
|
261
|
-
requirements:
|
262
|
-
- -
|
263
|
-
- !ruby/object:Gem::Version
|
264
|
-
|
265
|
-
segments:
|
234
|
+
requirements:
|
235
|
+
- - ! '>='
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
238
|
+
segments:
|
266
239
|
- 0
|
267
|
-
|
268
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
240
|
+
hash: 3122053690204350933
|
241
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
269
242
|
none: false
|
270
|
-
requirements:
|
271
|
-
- -
|
272
|
-
- !ruby/object:Gem::Version
|
273
|
-
|
274
|
-
segments:
|
275
|
-
- 0
|
276
|
-
version: "0"
|
243
|
+
requirements:
|
244
|
+
- - ! '>='
|
245
|
+
- !ruby/object:Gem::Version
|
246
|
+
version: '0'
|
277
247
|
requirements: []
|
278
|
-
|
279
248
|
rubyforge_project:
|
280
|
-
rubygems_version: 1.8.
|
249
|
+
rubygems_version: 1.8.23
|
281
250
|
signing_key:
|
282
251
|
specification_version: 3
|
283
252
|
summary: Use Wicked to turn your controller into a wizard
|
284
253
|
test_files: []
|
285
|
-
|
data/Gemfile.lock
DELETED
@@ -1,129 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
abstract (1.0.0)
|
5
|
-
actionmailer (3.0.11)
|
6
|
-
actionpack (= 3.0.11)
|
7
|
-
mail (~> 2.2.19)
|
8
|
-
actionpack (3.0.11)
|
9
|
-
activemodel (= 3.0.11)
|
10
|
-
activesupport (= 3.0.11)
|
11
|
-
builder (~> 2.1.2)
|
12
|
-
erubis (~> 2.6.6)
|
13
|
-
i18n (~> 0.5.0)
|
14
|
-
rack (~> 1.2.1)
|
15
|
-
rack-mount (~> 0.6.14)
|
16
|
-
rack-test (~> 0.5.7)
|
17
|
-
tzinfo (~> 0.3.23)
|
18
|
-
activemodel (3.0.11)
|
19
|
-
activesupport (= 3.0.11)
|
20
|
-
builder (~> 2.1.2)
|
21
|
-
i18n (~> 0.5.0)
|
22
|
-
activerecord (3.0.11)
|
23
|
-
activemodel (= 3.0.11)
|
24
|
-
activesupport (= 3.0.11)
|
25
|
-
arel (~> 2.0.10)
|
26
|
-
tzinfo (~> 0.3.23)
|
27
|
-
activerecord-jdbc-adapter (1.2.2.1)
|
28
|
-
activerecord-jdbcsqlite3-adapter (1.2.2.1)
|
29
|
-
activerecord-jdbc-adapter (~> 1.2.2.1)
|
30
|
-
jdbc-sqlite3 (~> 3.7.2)
|
31
|
-
activeresource (3.0.11)
|
32
|
-
activemodel (= 3.0.11)
|
33
|
-
activesupport (= 3.0.11)
|
34
|
-
activesupport (3.0.11)
|
35
|
-
addressable (2.2.7)
|
36
|
-
arel (2.0.10)
|
37
|
-
builder (2.1.2)
|
38
|
-
capybara (1.1.2)
|
39
|
-
mime-types (>= 1.16)
|
40
|
-
nokogiri (>= 1.3.3)
|
41
|
-
rack (>= 1.0.0)
|
42
|
-
rack-test (>= 0.5.4)
|
43
|
-
selenium-webdriver (~> 2.0)
|
44
|
-
xpath (~> 0.1.4)
|
45
|
-
childprocess (0.2.4)
|
46
|
-
ffi (~> 1.0.6)
|
47
|
-
erubis (2.6.6)
|
48
|
-
abstract (>= 1.0.0)
|
49
|
-
ffi (1.0.11)
|
50
|
-
ffi (1.0.11-java)
|
51
|
-
git (1.2.5)
|
52
|
-
i18n (0.5.0)
|
53
|
-
jdbc-sqlite3 (3.7.2)
|
54
|
-
jeweler (1.6.4)
|
55
|
-
bundler (~> 1.0)
|
56
|
-
git (>= 1.2.5)
|
57
|
-
rake
|
58
|
-
json (1.6.4)
|
59
|
-
json (1.6.4-java)
|
60
|
-
launchy (2.0.5)
|
61
|
-
addressable (~> 2.2.6)
|
62
|
-
launchy (2.0.5-java)
|
63
|
-
addressable (~> 2.2.6)
|
64
|
-
ffi (~> 1.0.9)
|
65
|
-
spoon (~> 0.0.1)
|
66
|
-
mail (2.2.19)
|
67
|
-
activesupport (>= 2.3.6)
|
68
|
-
i18n (>= 0.4.0)
|
69
|
-
mime-types (~> 1.16)
|
70
|
-
treetop (~> 1.4.8)
|
71
|
-
mime-types (1.17.2)
|
72
|
-
multi_json (1.0.4)
|
73
|
-
nokogiri (1.5.0)
|
74
|
-
nokogiri (1.5.0-java)
|
75
|
-
polyglot (0.3.3)
|
76
|
-
rack (1.2.4)
|
77
|
-
rack-mount (0.6.14)
|
78
|
-
rack (>= 1.0.0)
|
79
|
-
rack-test (0.5.7)
|
80
|
-
rack (>= 1.0)
|
81
|
-
rails (3.0.11)
|
82
|
-
actionmailer (= 3.0.11)
|
83
|
-
actionpack (= 3.0.11)
|
84
|
-
activerecord (= 3.0.11)
|
85
|
-
activeresource (= 3.0.11)
|
86
|
-
activesupport (= 3.0.11)
|
87
|
-
bundler (~> 1.0)
|
88
|
-
railties (= 3.0.11)
|
89
|
-
railties (3.0.11)
|
90
|
-
actionpack (= 3.0.11)
|
91
|
-
activesupport (= 3.0.11)
|
92
|
-
rake (>= 0.8.7)
|
93
|
-
rdoc (~> 3.4)
|
94
|
-
thor (~> 0.14.4)
|
95
|
-
rake (0.9.2.2)
|
96
|
-
rcov (0.9.11)
|
97
|
-
rcov (0.9.11-java)
|
98
|
-
rdoc (3.12)
|
99
|
-
json (~> 1.4)
|
100
|
-
rubyzip (0.9.5)
|
101
|
-
selenium-webdriver (2.15.0)
|
102
|
-
childprocess (>= 0.2.1)
|
103
|
-
ffi (~> 1.0.9)
|
104
|
-
multi_json (~> 1.0.4)
|
105
|
-
rubyzip
|
106
|
-
spoon (0.0.1)
|
107
|
-
sqlite3 (1.3.5)
|
108
|
-
thor (0.14.6)
|
109
|
-
treetop (1.4.10)
|
110
|
-
polyglot
|
111
|
-
polyglot (>= 0.3.1)
|
112
|
-
tzinfo (0.3.31)
|
113
|
-
xpath (0.1.4)
|
114
|
-
nokogiri (~> 1.3)
|
115
|
-
|
116
|
-
PLATFORMS
|
117
|
-
java
|
118
|
-
ruby
|
119
|
-
|
120
|
-
DEPENDENCIES
|
121
|
-
activerecord-jdbcsqlite3-adapter
|
122
|
-
activesupport (>= 3.0.7)
|
123
|
-
capybara (>= 0.4.0)
|
124
|
-
jeweler (~> 1.6.4)
|
125
|
-
launchy
|
126
|
-
rails (>= 3.0.7)
|
127
|
-
rake
|
128
|
-
rcov
|
129
|
-
sqlite3
|