wicked 0.2.0 → 0.3.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 +1 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +16 -0
- data/README.md +68 -3
- data/VERSION +1 -1
- data/lib/wicked.rb +1 -0
- data/lib/wicked/controller/concerns/steps.rb +1 -1
- data/lib/wicked/wizard/translated.rb +60 -0
- data/test/dummy/app/controllers/application_controller.rb +6 -0
- data/test/dummy/app/controllers/i18n_controller.rb +13 -0
- data/test/dummy/app/views/i18n/first.html.erb +4 -0
- data/test/dummy/app/views/i18n/second.html.erb +1 -0
- data/test/dummy/config/locales/en.yml +3 -0
- data/test/dummy/config/locales/es.yml +8 -0
- data/test/dummy/config/routes.rb +1 -0
- data/test/integration/i18n_test.rb +28 -0
- data/wicked.gemspec +15 -6
- metadata +148 -82
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 0.3.0
|
2
|
+
|
3
|
+
* [#22] enable I18n on wicked paths with `Wicked::Wizard::Translated`
|
4
|
+
* jRuby is officially supported and tested with Travis
|
5
|
+
* [#30] bugfix, filter options now work on `steps` method (@jeremyruppel)
|
6
|
+
|
1
7
|
## 0.2.0 (07/27/2012)
|
2
8
|
|
3
9
|
* Make step configuration an instance level config instead of class.
|
data/Gemfile
CHANGED
@@ -10,8 +10,10 @@ group :development, :test do
|
|
10
10
|
gem 'jeweler', "~> 1.6.4"
|
11
11
|
gem "rcov", ">= 0"
|
12
12
|
gem "capybara", ">= 0.4.0"
|
13
|
-
gem "sqlite3"
|
14
13
|
gem "launchy"
|
14
|
+
|
15
|
+
gem "sqlite3", :platform => [:ruby, :mswin, :mingw]
|
16
|
+
gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby
|
15
17
|
end
|
16
18
|
|
17
19
|
|
data/Gemfile.lock
CHANGED
@@ -24,6 +24,10 @@ GEM
|
|
24
24
|
activesupport (= 3.0.11)
|
25
25
|
arel (~> 2.0.10)
|
26
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)
|
27
31
|
activeresource (3.0.11)
|
28
32
|
activemodel (= 3.0.11)
|
29
33
|
activesupport (= 3.0.11)
|
@@ -43,15 +47,22 @@ GEM
|
|
43
47
|
erubis (2.6.6)
|
44
48
|
abstract (>= 1.0.0)
|
45
49
|
ffi (1.0.11)
|
50
|
+
ffi (1.0.11-java)
|
46
51
|
git (1.2.5)
|
47
52
|
i18n (0.5.0)
|
53
|
+
jdbc-sqlite3 (3.7.2)
|
48
54
|
jeweler (1.6.4)
|
49
55
|
bundler (~> 1.0)
|
50
56
|
git (>= 1.2.5)
|
51
57
|
rake
|
52
58
|
json (1.6.4)
|
59
|
+
json (1.6.4-java)
|
53
60
|
launchy (2.0.5)
|
54
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)
|
55
66
|
mail (2.2.19)
|
56
67
|
activesupport (>= 2.3.6)
|
57
68
|
i18n (>= 0.4.0)
|
@@ -60,6 +71,7 @@ GEM
|
|
60
71
|
mime-types (1.17.2)
|
61
72
|
multi_json (1.0.4)
|
62
73
|
nokogiri (1.5.0)
|
74
|
+
nokogiri (1.5.0-java)
|
63
75
|
polyglot (0.3.3)
|
64
76
|
rack (1.2.4)
|
65
77
|
rack-mount (0.6.14)
|
@@ -82,6 +94,7 @@ GEM
|
|
82
94
|
thor (~> 0.14.4)
|
83
95
|
rake (0.9.2.2)
|
84
96
|
rcov (0.9.11)
|
97
|
+
rcov (0.9.11-java)
|
85
98
|
rdoc (3.12)
|
86
99
|
json (~> 1.4)
|
87
100
|
rubyzip (0.9.5)
|
@@ -90,6 +103,7 @@ GEM
|
|
90
103
|
ffi (~> 1.0.9)
|
91
104
|
multi_json (~> 1.0.4)
|
92
105
|
rubyzip
|
106
|
+
spoon (0.0.1)
|
93
107
|
sqlite3 (1.3.5)
|
94
108
|
thor (0.14.6)
|
95
109
|
treetop (1.4.10)
|
@@ -100,9 +114,11 @@ GEM
|
|
100
114
|
nokogiri (~> 1.3)
|
101
115
|
|
102
116
|
PLATFORMS
|
117
|
+
java
|
103
118
|
ruby
|
104
119
|
|
105
120
|
DEPENDENCIES
|
121
|
+
activerecord-jdbcsqlite3-adapter
|
106
122
|
activesupport (>= 3.0.7)
|
107
123
|
capybara (>= 0.4.0)
|
108
124
|
jeweler (~> 1.6.4)
|
data/README.md
CHANGED
@@ -20,7 +20,8 @@ Then run `bundle install` and you're ready to start
|
|
20
20
|
|
21
21
|
## Quicklinks
|
22
22
|
|
23
|
-
* Build an object step-by-step
|
23
|
+
* [Build an object step-by-step](https://github.com/schneems/wicked/wiki/Building-Partial-Objects-Step-by-Step)
|
24
|
+
* [Use object ID's with wizard paths](https://github.com/schneems/wicked/wiki/Building-Partial-Objects-Step-by-Step)
|
24
25
|
* [Show Current Wizard Progress to User](https://github.com/schneems/wicked/wiki/Show-Current-Wizard-Progress-to-User)
|
25
26
|
* [Example App](https://github.com/schneems/wicked_example)
|
26
27
|
* [Screencast](http://schneems.com/post/18437886598/wizard-ify-your-rails-controllers-with-wicked)
|
@@ -82,7 +83,7 @@ The wizard is set to call steps in order in the show action, you can specify cus
|
|
82
83
|
end
|
83
84
|
```
|
84
85
|
|
85
|
-
**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 [
|
86
|
+
**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/Partial-Validation-of-Active-Record-Objects) for an example. It will need to be prefixed, for example a Product's `:id` would be `:product_id`
|
86
87
|
|
87
88
|
You'll need to call `render_wizard` at the end of your action to get the correct views to show up.
|
88
89
|
|
@@ -215,7 +216,7 @@ You can specify the url that your user goes to by over-riding the `finish_wizard
|
|
215
216
|
```
|
216
217
|
|
217
218
|
|
218
|
-
Testing with RSpec
|
219
|
+
### Testing with RSpec
|
219
220
|
|
220
221
|
```ruby
|
221
222
|
# Test find_friends block of show action
|
@@ -226,6 +227,70 @@ Testing with RSpec
|
|
226
227
|
```
|
227
228
|
|
228
229
|
|
230
|
+
### Internationalization of URLS (I18n)
|
231
|
+
|
232
|
+
If your site works in multiple languages, or if you just want more control over how your URL's look you can now use I18n with wicked. To do so you need to replace this:
|
233
|
+
|
234
|
+
include Wicked::Wizard
|
235
|
+
|
236
|
+
With this:
|
237
|
+
|
238
|
+
include Wicked::Wizard::Translated
|
239
|
+
|
240
|
+
This will allow you to specify translation keys instead of literal step names. Let's say you've got steps that look like this:
|
241
|
+
|
242
|
+
steps :first, :second
|
243
|
+
|
244
|
+
So the urls would be `/after_signup/first` and `/after_signup/second`. But you want them to show up differntly for different locales. For example someone coming form a Spanish speaking locale should see `/after_signup/uno` and `after_signup/dos`.
|
245
|
+
|
246
|
+
To internationalize first you need to create your locales files under `config/locales` such as `config/locales/es.yml` for Spanish. You then need to add a `first` and `second` key under a `wicked` key like this:
|
247
|
+
|
248
|
+
es:
|
249
|
+
hello: "hola mundo"
|
250
|
+
wicked:
|
251
|
+
first: "uno"
|
252
|
+
second: "dos"
|
253
|
+
|
254
|
+
It would also be a good idea to create a english version under `config/locales/en.yml` or your english speaking friends will get errors. If your app already uses I18n you don't need to do anything else, if not you will need to make sure that you set the `I18n.locale` on each request you could do this somewhere like a before filter in your application_controller.rb
|
255
|
+
|
256
|
+
|
257
|
+
before_filter :set_locale
|
258
|
+
|
259
|
+
private
|
260
|
+
|
261
|
+
def set_locale
|
262
|
+
I18n.locale = params[:locale] if params[:locale].present?
|
263
|
+
end
|
264
|
+
|
265
|
+
def default_url_options(options = {})
|
266
|
+
{locale: I18n.locale}
|
267
|
+
end
|
268
|
+
|
269
|
+
For a screencast on setting up and using I18n check out [Railscasts](http://railscasts.com/episodes/138-i18n-revised). You can also read the [free I18n Rails Guide](http://guides.rubyonrails.org/i18n.html).
|
270
|
+
|
271
|
+
Now when you visit your controller with the proper locale set your url's should be more readable like `/after_signup/uno` and `after_signup/dos`.
|
272
|
+
|
273
|
+
Wicked expects your files to be named the same as your keys, so when a user visits `after_signup/dos` with the `es` locale it will render the `second.html.erb` file.
|
274
|
+
|
275
|
+
## Custom URL's
|
276
|
+
|
277
|
+
Very similar to using I18n from above but instead of making new files for different languages, you can stick with one language. Make sure you are using the right module:
|
278
|
+
|
279
|
+
include Wicked::Wizard::Translated
|
280
|
+
|
281
|
+
Then you'll need to specify translations in your language file. For me, the language I'm using is english so I can add translations to `config/locales/en.yml`
|
282
|
+
|
283
|
+
en:
|
284
|
+
hello: "hello world"
|
285
|
+
wicked:
|
286
|
+
first: "verify_email"
|
287
|
+
second: "if_you_are_popular_add_friends"
|
288
|
+
|
289
|
+
Now you can change the values in the URL's to whatever you want without changing your controller or your files, just modify your `en.yml`. If you're not using English you can set your default_locale to something other than `en` in your `config/application.rb` file.
|
290
|
+
|
291
|
+
config.i18n.default_locale = :de
|
292
|
+
|
293
|
+
Custom crafted wizard urls: just another way Wicked makes your app a little more saintly.
|
229
294
|
|
230
295
|
## About
|
231
296
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/lib/wicked.rb
CHANGED
@@ -0,0 +1,60 @@
|
|
1
|
+
module Wicked
|
2
|
+
module Wizard
|
3
|
+
module Translated
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
|
6
|
+
included do
|
7
|
+
include Wicked::Wizard
|
8
|
+
skip_before_filter :setup_wizard
|
9
|
+
|
10
|
+
before_filter :setup_wizard_translated
|
11
|
+
end
|
12
|
+
|
13
|
+
# creates a hash where keys are translated steps, values are the name of the view file
|
14
|
+
# {:first=>"first", :second=>"second"}
|
15
|
+
# {:uno=>"first", :dos=>"second"}
|
16
|
+
#
|
17
|
+
def wizard_translations
|
18
|
+
@wizard_translations ||= steps.inject({}) do |hash, step|
|
19
|
+
step = step.to_s.split(".").last
|
20
|
+
translation = I18n.t("wicked.#{step}").to_sym
|
21
|
+
hash[translation] = step
|
22
|
+
hash
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
# sets up a translated wizard controller
|
29
|
+
# translations are expected under the 'wicked' namespace
|
30
|
+
#
|
31
|
+
# es:
|
32
|
+
# hello: "hola mundo"
|
33
|
+
# wicked:
|
34
|
+
# first: "uno"
|
35
|
+
# second: "dos"
|
36
|
+
#
|
37
|
+
# translation keys can be provided to `steps` with or without the 'wicked' key:
|
38
|
+
#
|
39
|
+
# steps :first, :second
|
40
|
+
# or
|
41
|
+
#
|
42
|
+
# steps "wicked.first", "wicked.second"
|
43
|
+
#
|
44
|
+
|
45
|
+
def setup_wizard_translated
|
46
|
+
self.steps = wizard_translations.keys
|
47
|
+
|
48
|
+
redirect_to wizard_path(steps.first) if params[:id].try(:to_sym) == :wizard_first
|
49
|
+
redirect_to wizard_path(steps.last) if params[:id].try(:to_sym) == :wizard_last
|
50
|
+
original_step = params[:id] = params[:id].to_sym
|
51
|
+
|
52
|
+
|
53
|
+
@previous_step = previous_step(original_step)
|
54
|
+
@next_step = next_step(original_step)
|
55
|
+
@step = wizard_translations[params[:id]]
|
56
|
+
end
|
57
|
+
public
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= I18n.t('wicked.second') %>
|
data/test/dummy/config/routes.rb
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class I18nTest < ActiveSupport::IntegrationCase
|
4
|
+
|
5
|
+
test 'renders in spanish' do
|
6
|
+
step = :uno
|
7
|
+
visit(i18n_path(step, :locale => :es))
|
8
|
+
assert has_content?('uno')
|
9
|
+
|
10
|
+
## Needed to keep travis build working on 1.8.7 idk why
|
11
|
+
i18n_path(:dos)
|
12
|
+
page.html
|
13
|
+
|
14
|
+
assert has_link?('hello', :href => i18n_path(:dos))
|
15
|
+
end
|
16
|
+
|
17
|
+
test 'renders in english' do
|
18
|
+
step = :first
|
19
|
+
visit(i18n_path(step, :locale => :en))
|
20
|
+
assert has_content?('first')
|
21
|
+
|
22
|
+
## Needed to keep travis build working on 1.8.7 idk why
|
23
|
+
i18n_path(:second)
|
24
|
+
page.html
|
25
|
+
|
26
|
+
assert has_link?('hello', :href => i18n_path(:second))
|
27
|
+
end
|
28
|
+
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 = "0.3.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 = "2012-
|
12
|
+
s.date = "2012-10-30"
|
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 = [
|
@@ -32,10 +32,12 @@ Gem::Specification.new do |s|
|
|
32
32
|
"lib/wicked/controller/concerns/steps.rb",
|
33
33
|
"lib/wicked/engine.rb",
|
34
34
|
"lib/wicked/wizard.rb",
|
35
|
+
"lib/wicked/wizard/translated.rb",
|
35
36
|
"test/dummy/Rakefile",
|
36
37
|
"test/dummy/app/controllers/application_controller.rb",
|
37
38
|
"test/dummy/app/controllers/bar_controller.rb",
|
38
39
|
"test/dummy/app/controllers/foo_controller.rb",
|
40
|
+
"test/dummy/app/controllers/i18n_controller.rb",
|
39
41
|
"test/dummy/app/controllers/jump_controller.rb",
|
40
42
|
"test/dummy/app/controllers/steps_controller.rb",
|
41
43
|
"test/dummy/app/helpers/application_helper.rb",
|
@@ -46,6 +48,8 @@ Gem::Specification.new do |s|
|
|
46
48
|
"test/dummy/app/views/foo/first.html.erb",
|
47
49
|
"test/dummy/app/views/foo/last_step.html.erb",
|
48
50
|
"test/dummy/app/views/foo/second.html.erb",
|
51
|
+
"test/dummy/app/views/i18n/first.html.erb",
|
52
|
+
"test/dummy/app/views/i18n/second.html.erb",
|
49
53
|
"test/dummy/app/views/jump/first.html.erb",
|
50
54
|
"test/dummy/app/views/jump/last_step.html.erb",
|
51
55
|
"test/dummy/app/views/jump/second.html.erb",
|
@@ -68,6 +72,7 @@ Gem::Specification.new do |s|
|
|
68
72
|
"test/dummy/config/initializers/secret_token.rb",
|
69
73
|
"test/dummy/config/initializers/session_store.rb",
|
70
74
|
"test/dummy/config/locales/en.yml",
|
75
|
+
"test/dummy/config/locales/es.yml",
|
71
76
|
"test/dummy/config/routes.rb",
|
72
77
|
"test/dummy/public/404.html",
|
73
78
|
"test/dummy/public/422.html",
|
@@ -83,6 +88,7 @@ Gem::Specification.new do |s|
|
|
83
88
|
"test/dummy/public/stylesheets/.gitkeep",
|
84
89
|
"test/dummy/script/rails",
|
85
90
|
"test/integration/helpers_test.rb",
|
91
|
+
"test/integration/i18n_test.rb",
|
86
92
|
"test/integration/jump_test.rb",
|
87
93
|
"test/integration/navigation_test.rb",
|
88
94
|
"test/integration/steps_test.rb",
|
@@ -94,7 +100,7 @@ Gem::Specification.new do |s|
|
|
94
100
|
s.homepage = "http://github.com/schneems/wicked"
|
95
101
|
s.licenses = ["MIT"]
|
96
102
|
s.require_paths = ["lib"]
|
97
|
-
s.rubygems_version = "1.8.
|
103
|
+
s.rubygems_version = "1.8.24"
|
98
104
|
s.summary = "Use Wicked to turn your controller into a wizard"
|
99
105
|
|
100
106
|
if s.respond_to? :specification_version then
|
@@ -107,8 +113,9 @@ Gem::Specification.new do |s|
|
|
107
113
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
108
114
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
109
115
|
s.add_development_dependency(%q<capybara>, [">= 0.4.0"])
|
110
|
-
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
111
116
|
s.add_development_dependency(%q<launchy>, [">= 0"])
|
117
|
+
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
118
|
+
s.add_development_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
112
119
|
else
|
113
120
|
s.add_dependency(%q<activesupport>, [">= 3.0.7"])
|
114
121
|
s.add_dependency(%q<rails>, [">= 3.0.7"])
|
@@ -116,8 +123,9 @@ Gem::Specification.new do |s|
|
|
116
123
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
117
124
|
s.add_dependency(%q<rcov>, [">= 0"])
|
118
125
|
s.add_dependency(%q<capybara>, [">= 0.4.0"])
|
119
|
-
s.add_dependency(%q<sqlite3>, [">= 0"])
|
120
126
|
s.add_dependency(%q<launchy>, [">= 0"])
|
127
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
128
|
+
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
121
129
|
end
|
122
130
|
else
|
123
131
|
s.add_dependency(%q<activesupport>, [">= 3.0.7"])
|
@@ -126,8 +134,9 @@ Gem::Specification.new do |s|
|
|
126
134
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
127
135
|
s.add_dependency(%q<rcov>, [">= 0"])
|
128
136
|
s.add_dependency(%q<capybara>, [">= 0.4.0"])
|
129
|
-
s.add_dependency(%q<sqlite3>, [">= 0"])
|
130
137
|
s.add_dependency(%q<launchy>, [">= 0"])
|
138
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
139
|
+
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
131
140
|
end
|
132
141
|
end
|
133
142
|
|
metadata
CHANGED
@@ -1,111 +1,165 @@
|
|
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
|
+
hash: 19
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
version: 0.3.0
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- schneems
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
+
|
18
|
+
date: 2012-10-30 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
prerelease: false
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
23
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 9
|
28
|
+
segments:
|
29
|
+
- 3
|
30
|
+
- 0
|
31
|
+
- 7
|
21
32
|
version: 3.0.7
|
22
33
|
type: :runtime
|
34
|
+
name: activesupport
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
23
37
|
prerelease: false
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: rails
|
27
|
-
requirement: &70254091222500 !ruby/object:Gem::Requirement
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 9
|
44
|
+
segments:
|
45
|
+
- 3
|
46
|
+
- 0
|
47
|
+
- 7
|
32
48
|
version: 3.0.7
|
33
49
|
type: :runtime
|
50
|
+
name: rails
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
34
53
|
prerelease: false
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: rake
|
38
|
-
requirement: &70254091221900 !ruby/object:Gem::Requirement
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
55
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
44
63
|
type: :development
|
64
|
+
name: rake
|
65
|
+
version_requirements: *id003
|
66
|
+
- !ruby/object:Gem::Dependency
|
45
67
|
prerelease: false
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: jeweler
|
49
|
-
requirement: &70254091221420 !ruby/object:Gem::Requirement
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
69
|
none: false
|
51
|
-
requirements:
|
70
|
+
requirements:
|
52
71
|
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 7
|
74
|
+
segments:
|
75
|
+
- 1
|
76
|
+
- 6
|
77
|
+
- 4
|
54
78
|
version: 1.6.4
|
55
79
|
type: :development
|
80
|
+
name: jeweler
|
81
|
+
version_requirements: *id004
|
82
|
+
- !ruby/object:Gem::Dependency
|
56
83
|
prerelease: false
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: rcov
|
60
|
-
requirement: &70254091139260 !ruby/object:Gem::Requirement
|
84
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
61
85
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
hash: 3
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
version: "0"
|
66
93
|
type: :development
|
94
|
+
name: rcov
|
95
|
+
version_requirements: *id005
|
96
|
+
- !ruby/object:Gem::Dependency
|
67
97
|
prerelease: false
|
68
|
-
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: capybara
|
71
|
-
requirement: &70254091138740 !ruby/object:Gem::Requirement
|
98
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
72
99
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
hash: 15
|
104
|
+
segments:
|
105
|
+
- 0
|
106
|
+
- 4
|
107
|
+
- 0
|
76
108
|
version: 0.4.0
|
77
109
|
type: :development
|
110
|
+
name: capybara
|
111
|
+
version_requirements: *id006
|
112
|
+
- !ruby/object:Gem::Dependency
|
78
113
|
prerelease: false
|
79
|
-
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: sqlite3
|
82
|
-
requirement: &70254091138220 !ruby/object:Gem::Requirement
|
114
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
83
115
|
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
hash: 3
|
120
|
+
segments:
|
121
|
+
- 0
|
122
|
+
version: "0"
|
88
123
|
type: :development
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: *70254091138220
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
124
|
name: launchy
|
93
|
-
|
125
|
+
version_requirements: *id007
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
prerelease: false
|
128
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
94
129
|
none: false
|
95
|
-
requirements:
|
96
|
-
- -
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
hash: 3
|
134
|
+
segments:
|
135
|
+
- 0
|
136
|
+
version: "0"
|
99
137
|
type: :development
|
138
|
+
name: sqlite3
|
139
|
+
version_requirements: *id008
|
140
|
+
- !ruby/object:Gem::Dependency
|
100
141
|
prerelease: false
|
101
|
-
|
142
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
hash: 3
|
148
|
+
segments:
|
149
|
+
- 0
|
150
|
+
version: "0"
|
151
|
+
type: :development
|
152
|
+
name: activerecord-jdbcsqlite3-adapter
|
153
|
+
version_requirements: *id009
|
102
154
|
description: Wicked is a Rails engine for producing easy wizard controllers
|
103
155
|
email: richard.schneeman@gmail.com
|
104
156
|
executables: []
|
157
|
+
|
105
158
|
extensions: []
|
106
|
-
|
159
|
+
|
160
|
+
extra_rdoc_files:
|
107
161
|
- README.md
|
108
|
-
files:
|
162
|
+
files:
|
109
163
|
- .rvmrc
|
110
164
|
- .travis.yml
|
111
165
|
- CHANGELOG.md
|
@@ -122,10 +176,12 @@ files:
|
|
122
176
|
- lib/wicked/controller/concerns/steps.rb
|
123
177
|
- lib/wicked/engine.rb
|
124
178
|
- lib/wicked/wizard.rb
|
179
|
+
- lib/wicked/wizard/translated.rb
|
125
180
|
- test/dummy/Rakefile
|
126
181
|
- test/dummy/app/controllers/application_controller.rb
|
127
182
|
- test/dummy/app/controllers/bar_controller.rb
|
128
183
|
- test/dummy/app/controllers/foo_controller.rb
|
184
|
+
- test/dummy/app/controllers/i18n_controller.rb
|
129
185
|
- test/dummy/app/controllers/jump_controller.rb
|
130
186
|
- test/dummy/app/controllers/steps_controller.rb
|
131
187
|
- test/dummy/app/helpers/application_helper.rb
|
@@ -136,6 +192,8 @@ files:
|
|
136
192
|
- test/dummy/app/views/foo/first.html.erb
|
137
193
|
- test/dummy/app/views/foo/last_step.html.erb
|
138
194
|
- test/dummy/app/views/foo/second.html.erb
|
195
|
+
- test/dummy/app/views/i18n/first.html.erb
|
196
|
+
- test/dummy/app/views/i18n/second.html.erb
|
139
197
|
- test/dummy/app/views/jump/first.html.erb
|
140
198
|
- test/dummy/app/views/jump/last_step.html.erb
|
141
199
|
- test/dummy/app/views/jump/second.html.erb
|
@@ -158,6 +216,7 @@ files:
|
|
158
216
|
- test/dummy/config/initializers/secret_token.rb
|
159
217
|
- test/dummy/config/initializers/session_store.rb
|
160
218
|
- test/dummy/config/locales/en.yml
|
219
|
+
- test/dummy/config/locales/es.yml
|
161
220
|
- test/dummy/config/routes.rb
|
162
221
|
- test/dummy/public/404.html
|
163
222
|
- test/dummy/public/422.html
|
@@ -173,6 +232,7 @@ files:
|
|
173
232
|
- test/dummy/public/stylesheets/.gitkeep
|
174
233
|
- test/dummy/script/rails
|
175
234
|
- test/integration/helpers_test.rb
|
235
|
+
- test/integration/i18n_test.rb
|
176
236
|
- test/integration/jump_test.rb
|
177
237
|
- test/integration/navigation_test.rb
|
178
238
|
- test/integration/steps_test.rb
|
@@ -181,31 +241,37 @@ files:
|
|
181
241
|
- test/wicked_test.rb
|
182
242
|
- wicked.gemspec
|
183
243
|
homepage: http://github.com/schneems/wicked
|
184
|
-
licenses:
|
244
|
+
licenses:
|
185
245
|
- MIT
|
186
246
|
post_install_message:
|
187
247
|
rdoc_options: []
|
188
|
-
|
248
|
+
|
249
|
+
require_paths:
|
189
250
|
- lib
|
190
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
251
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
191
252
|
none: false
|
192
|
-
requirements:
|
193
|
-
- -
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
|
196
|
-
segments:
|
253
|
+
requirements:
|
254
|
+
- - ">="
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
hash: 3
|
257
|
+
segments:
|
197
258
|
- 0
|
198
|
-
|
199
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
259
|
+
version: "0"
|
260
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
261
|
none: false
|
201
|
-
requirements:
|
202
|
-
- -
|
203
|
-
- !ruby/object:Gem::Version
|
204
|
-
|
262
|
+
requirements:
|
263
|
+
- - ">="
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
hash: 3
|
266
|
+
segments:
|
267
|
+
- 0
|
268
|
+
version: "0"
|
205
269
|
requirements: []
|
270
|
+
|
206
271
|
rubyforge_project:
|
207
|
-
rubygems_version: 1.8.
|
272
|
+
rubygems_version: 1.8.24
|
208
273
|
signing_key:
|
209
274
|
specification_version: 3
|
210
275
|
summary: Use Wicked to turn your controller into a wizard
|
211
276
|
test_files: []
|
277
|
+
|