wicked 1.0.3 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/check_changelog.yml +13 -0
  3. data/.gitignore +15 -0
  4. data/.travis.yml +12 -17
  5. data/Appraisals +11 -0
  6. data/CHANGELOG.md +40 -0
  7. data/CONTRIBUTING.md +19 -0
  8. data/Gemfile +3 -20
  9. data/README.md +148 -34
  10. data/Rakefile +2 -15
  11. data/gemfiles/rails_5.1.gemfile +12 -0
  12. data/gemfiles/rails_5.2.gemfile +12 -0
  13. data/gemfiles/rails_6.0.1.gemfile +12 -0
  14. data/lib/wicked/controller/concerns/action.rb +13 -0
  15. data/lib/wicked/controller/concerns/path.rb +13 -3
  16. data/lib/wicked/controller/concerns/render_redirect.rb +33 -23
  17. data/lib/wicked/controller/concerns/steps.rb +12 -17
  18. data/lib/wicked/version.rb +3 -0
  19. data/lib/wicked/wizard/translated.rb +3 -6
  20. data/lib/wicked/wizard.rb +19 -18
  21. data/{app/controllers → lib}/wicked/wizard_controller.rb +1 -2
  22. data/lib/wicked.rb +2 -1
  23. data/test/controllers/bar_controller_test.rb +3 -2
  24. data/test/controllers/updates_controller_test.rb +27 -0
  25. data/test/dummy/app/controllers/application_controller.rb +5 -2
  26. data/test/dummy/app/controllers/dynamic_different_steps_controller.rb +18 -0
  27. data/test/dummy/app/controllers/dynamic_steps_controller.rb +1 -1
  28. data/test/dummy/app/controllers/jump_controller.rb +9 -2
  29. data/test/dummy/app/controllers/redirect_to_next_controller.rb +1 -1
  30. data/test/dummy/app/controllers/update_params_controller.rb +30 -0
  31. data/test/dummy/app/controllers/updates_controller.rb +30 -0
  32. data/test/dummy/app/views/bar/first.html.erb +3 -1
  33. data/test/dummy/app/views/bar/second.html.erb +2 -1
  34. data/test/dummy/app/views/dynamic_different_steps/first.html.erb +3 -0
  35. data/test/dummy/app/views/jump/last_step.html.erb +3 -1
  36. data/test/dummy/app/views/jump/second.html.erb +3 -1
  37. data/test/dummy/app/views/update_params/_step_position.html.erb +16 -0
  38. data/test/dummy/app/views/update_params/first.html.erb +1 -0
  39. data/test/dummy/app/views/update_params/index.html.erb +1 -0
  40. data/test/dummy/app/views/update_params/last_step.html.erb +1 -0
  41. data/test/dummy/app/views/update_params/second.html.erb +1 -0
  42. data/test/dummy/app/views/updates/_step_position.html.erb +16 -0
  43. data/test/dummy/app/views/updates/first.html.erb +1 -0
  44. data/test/dummy/app/views/updates/index.html.erb +1 -0
  45. data/test/dummy/app/views/updates/last_step.html.erb +1 -0
  46. data/test/dummy/app/views/updates/second.html.erb +1 -0
  47. data/test/dummy/config/application.rb +3 -0
  48. data/test/dummy/config/environments/development.rb +0 -1
  49. data/test/dummy/config/environments/test.rb +3 -1
  50. data/test/dummy/config/routes.rb +3 -0
  51. data/test/integration/dynamic_steps_test.rb +8 -1
  52. data/test/integration/helpers_test.rb +27 -0
  53. data/test/integration/jump_test.rb +16 -0
  54. data/test/integration/redirect_to_next_test.rb +1 -1
  55. data/test/integration/security_test.rb +0 -2
  56. data/test/integration/update_params_test.rb +20 -0
  57. data/test/integration/updates_test.rb +20 -0
  58. data/test/support/wicked_controller_test_case.rb +9 -0
  59. data/test/test_helper.rb +9 -9
  60. data/wicked.gemspec +22 -150
  61. metadata +146 -50
  62. data/.rvmrc +0 -19
  63. data/VERSION +0 -1
  64. /data/test/dummy/app/controllers/{steps_controller.rb → step_positions_controller.rb} +0 -0
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wicked
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
- - schneems
8
- autorequire:
7
+ - Richard Schneeman
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-25 00:00:00.000000000 Z
11
+ date: 2021-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,21 +25,21 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.0.7
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 3.0.7
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 3.0.7
41
41
  - !ruby/object:Gem::Dependency
42
- name: jeweler
42
+ name: capybara
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,21 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: capybara
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 1.1.2
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 1.1.2
69
- - !ruby/object:Gem::Dependency
70
- name: launchy
56
+ name: appraisal
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - ">="
@@ -81,7 +67,7 @@ dependencies:
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
- name: sqlite3
70
+ name: test-unit
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - ">="
@@ -94,47 +80,43 @@ dependencies:
94
80
  - - ">="
95
81
  - !ruby/object:Gem::Version
96
82
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: activerecord-jdbcsqlite3-adapter
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: 1.3.0.beta
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: 1.3.0.beta
111
83
  description: Wicked is a Rails engine for producing easy wizard controllers
112
- email: richard.schneeman@gmail.com
84
+ email:
85
+ - richard.schneeman+rubygems@gmail.com
113
86
  executables: []
114
87
  extensions: []
115
88
  extra_rdoc_files:
116
89
  - README.md
117
90
  files:
118
- - ".rvmrc"
91
+ - ".github/workflows/check_changelog.yml"
92
+ - ".gitignore"
119
93
  - ".travis.yml"
94
+ - Appraisals
120
95
  - CHANGELOG.md
96
+ - CONTRIBUTING.md
121
97
  - Gemfile
122
98
  - MIT-LICENSE
123
99
  - README.md
124
100
  - Rakefile
125
- - VERSION
126
- - app/controllers/wicked/wizard_controller.rb
101
+ - gemfiles/rails_5.1.gemfile
102
+ - gemfiles/rails_5.2.gemfile
103
+ - gemfiles/rails_6.0.1.gemfile
127
104
  - lib/wicked.rb
105
+ - lib/wicked/controller/concerns/action.rb
128
106
  - lib/wicked/controller/concerns/path.rb
129
107
  - lib/wicked/controller/concerns/render_redirect.rb
130
108
  - lib/wicked/controller/concerns/steps.rb
131
109
  - lib/wicked/engine.rb
110
+ - lib/wicked/version.rb
132
111
  - lib/wicked/wizard.rb
133
112
  - lib/wicked/wizard/translated.rb
113
+ - lib/wicked/wizard_controller.rb
134
114
  - test/controllers/bar_controller_test.rb
115
+ - test/controllers/updates_controller_test.rb
135
116
  - test/dummy/Rakefile
136
117
  - test/dummy/app/controllers/application_controller.rb
137
118
  - test/dummy/app/controllers/bar_controller.rb
119
+ - test/dummy/app/controllers/dynamic_different_steps_controller.rb
138
120
  - test/dummy/app/controllers/dynamic_steps_controller.rb
139
121
  - test/dummy/app/controllers/i18n_controller.rb
140
122
  - test/dummy/app/controllers/jump_controller.rb
@@ -142,13 +124,16 @@ files:
142
124
  - test/dummy/app/controllers/pages_controller.rb
143
125
  - test/dummy/app/controllers/redirect_to_finish_flash_controller.rb
144
126
  - test/dummy/app/controllers/redirect_to_next_controller.rb
145
- - test/dummy/app/controllers/steps_controller.rb
127
+ - test/dummy/app/controllers/step_positions_controller.rb
146
128
  - test/dummy/app/controllers/string_steps_controller.rb
129
+ - test/dummy/app/controllers/update_params_controller.rb
130
+ - test/dummy/app/controllers/updates_controller.rb
147
131
  - test/dummy/app/helpers/application_helper.rb
148
132
  - test/dummy/app/models/bar.rb
149
133
  - test/dummy/app/views/bar/first.html.erb
150
134
  - test/dummy/app/views/bar/last_step.html.erb
151
135
  - test/dummy/app/views/bar/second.html.erb
136
+ - test/dummy/app/views/dynamic_different_steps/first.html.erb
152
137
  - test/dummy/app/views/dynamic_steps/first.html.erb
153
138
  - test/dummy/app/views/i18n/first.html.erb
154
139
  - test/dummy/app/views/i18n/last_step.html.erb
@@ -171,6 +156,16 @@ files:
171
156
  - test/dummy/app/views/step_positions/last_step.html.erb
172
157
  - test/dummy/app/views/step_positions/second.html.erb
173
158
  - test/dummy/app/views/string_steps/second.html.erb
159
+ - test/dummy/app/views/update_params/_step_position.html.erb
160
+ - test/dummy/app/views/update_params/first.html.erb
161
+ - test/dummy/app/views/update_params/index.html.erb
162
+ - test/dummy/app/views/update_params/last_step.html.erb
163
+ - test/dummy/app/views/update_params/second.html.erb
164
+ - test/dummy/app/views/updates/_step_position.html.erb
165
+ - test/dummy/app/views/updates/first.html.erb
166
+ - test/dummy/app/views/updates/index.html.erb
167
+ - test/dummy/app/views/updates/last_step.html.erb
168
+ - test/dummy/app/views/updates/second.html.erb
174
169
  - test/dummy/config.ru
175
170
  - test/dummy/config/application.rb
176
171
  - test/dummy/config/boot.rb
@@ -209,15 +204,18 @@ files:
209
204
  - test/integration/redirect_to_next_test.rb
210
205
  - test/integration/security_test.rb
211
206
  - test/integration/steps_test.rb
207
+ - test/integration/update_params_test.rb
208
+ - test/integration/updates_test.rb
212
209
  - test/support/integration_case.rb
210
+ - test/support/wicked_controller_test_case.rb
213
211
  - test/test_helper.rb
214
212
  - test/wicked_test.rb
215
213
  - wicked.gemspec
216
- homepage: http://github.com/schneems/wicked
214
+ homepage: https://github.com/schneems/wicked
217
215
  licenses:
218
216
  - MIT
219
217
  metadata: {}
220
- post_install_message:
218
+ post_install_message:
221
219
  rdoc_options: []
222
220
  require_paths:
223
221
  - lib
@@ -232,9 +230,107 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
230
  - !ruby/object:Gem::Version
233
231
  version: '0'
234
232
  requirements: []
235
- rubyforge_project:
236
- rubygems_version: 2.2.2
237
- signing_key:
233
+ rubygems_version: 3.2.32
234
+ signing_key:
238
235
  specification_version: 4
239
236
  summary: Use Wicked to turn your controller into a wizard
240
- test_files: []
237
+ test_files:
238
+ - test/controllers/bar_controller_test.rb
239
+ - test/controllers/updates_controller_test.rb
240
+ - test/dummy/Rakefile
241
+ - test/dummy/app/controllers/application_controller.rb
242
+ - test/dummy/app/controllers/bar_controller.rb
243
+ - test/dummy/app/controllers/dynamic_different_steps_controller.rb
244
+ - test/dummy/app/controllers/dynamic_steps_controller.rb
245
+ - test/dummy/app/controllers/i18n_controller.rb
246
+ - test/dummy/app/controllers/jump_controller.rb
247
+ - test/dummy/app/controllers/nested/builder_controller.rb
248
+ - test/dummy/app/controllers/pages_controller.rb
249
+ - test/dummy/app/controllers/redirect_to_finish_flash_controller.rb
250
+ - test/dummy/app/controllers/redirect_to_next_controller.rb
251
+ - test/dummy/app/controllers/step_positions_controller.rb
252
+ - test/dummy/app/controllers/string_steps_controller.rb
253
+ - test/dummy/app/controllers/update_params_controller.rb
254
+ - test/dummy/app/controllers/updates_controller.rb
255
+ - test/dummy/app/helpers/application_helper.rb
256
+ - test/dummy/app/models/bar.rb
257
+ - test/dummy/app/views/bar/first.html.erb
258
+ - test/dummy/app/views/bar/last_step.html.erb
259
+ - test/dummy/app/views/bar/second.html.erb
260
+ - test/dummy/app/views/dynamic_different_steps/first.html.erb
261
+ - test/dummy/app/views/dynamic_steps/first.html.erb
262
+ - test/dummy/app/views/i18n/first.html.erb
263
+ - test/dummy/app/views/i18n/last_step.html.erb
264
+ - test/dummy/app/views/i18n/second.html.erb
265
+ - test/dummy/app/views/jump/first.html.erb
266
+ - test/dummy/app/views/jump/last_step.html.erb
267
+ - test/dummy/app/views/jump/second.html.erb
268
+ - test/dummy/app/views/layouts/application.html.erb
269
+ - test/dummy/app/views/nested/builder/first.html.erb
270
+ - test/dummy/app/views/nested/builder/last_step.html.erb
271
+ - test/dummy/app/views/nested/builder/second.html.erb
272
+ - test/dummy/app/views/pages/index.html.erb
273
+ - test/dummy/app/views/redirect_to_finish_flash/index.html.erb
274
+ - test/dummy/app/views/redirect_to_finish_flash/last_step.html.erb
275
+ - test/dummy/app/views/redirect_to_next/first.html.erb
276
+ - test/dummy/app/views/redirect_to_next/last_step.html.erb
277
+ - test/dummy/app/views/redirect_to_next/second.html.erb
278
+ - test/dummy/app/views/step_positions/_step_position.html.erb
279
+ - test/dummy/app/views/step_positions/first.html.erb
280
+ - test/dummy/app/views/step_positions/last_step.html.erb
281
+ - test/dummy/app/views/step_positions/second.html.erb
282
+ - test/dummy/app/views/string_steps/second.html.erb
283
+ - test/dummy/app/views/update_params/_step_position.html.erb
284
+ - test/dummy/app/views/update_params/first.html.erb
285
+ - test/dummy/app/views/update_params/index.html.erb
286
+ - test/dummy/app/views/update_params/last_step.html.erb
287
+ - test/dummy/app/views/update_params/second.html.erb
288
+ - test/dummy/app/views/updates/_step_position.html.erb
289
+ - test/dummy/app/views/updates/first.html.erb
290
+ - test/dummy/app/views/updates/index.html.erb
291
+ - test/dummy/app/views/updates/last_step.html.erb
292
+ - test/dummy/app/views/updates/second.html.erb
293
+ - test/dummy/config.ru
294
+ - test/dummy/config/application.rb
295
+ - test/dummy/config/boot.rb
296
+ - test/dummy/config/database.yml
297
+ - test/dummy/config/environment.rb
298
+ - test/dummy/config/environments/development.rb
299
+ - test/dummy/config/environments/production.rb
300
+ - test/dummy/config/environments/test.rb
301
+ - test/dummy/config/initializers/backtrace_silencers.rb
302
+ - test/dummy/config/initializers/inflections.rb
303
+ - test/dummy/config/initializers/mime_types.rb
304
+ - test/dummy/config/initializers/secret_token.rb
305
+ - test/dummy/config/initializers/session_store.rb
306
+ - test/dummy/config/locales/en.yml
307
+ - test/dummy/config/locales/es.yml
308
+ - test/dummy/config/routes.rb
309
+ - test/dummy/public/404.html
310
+ - test/dummy/public/422.html
311
+ - test/dummy/public/500.html
312
+ - test/dummy/public/favicon.ico
313
+ - test/dummy/public/javascripts/application.js
314
+ - test/dummy/public/javascripts/controls.js
315
+ - test/dummy/public/javascripts/dragdrop.js
316
+ - test/dummy/public/javascripts/effects.js
317
+ - test/dummy/public/javascripts/prototype.js
318
+ - test/dummy/public/javascripts/rails.js
319
+ - test/dummy/public/stylesheets/.gitkeep
320
+ - test/dummy/script/rails
321
+ - test/integration/dynamic_steps_test.rb
322
+ - test/integration/helpers_test.rb
323
+ - test/integration/i18n_test.rb
324
+ - test/integration/jump_test.rb
325
+ - test/integration/navigation_test.rb
326
+ - test/integration/nested_builder_test.rb
327
+ - test/integration/redirect_to_finish_flash_test.rb
328
+ - test/integration/redirect_to_next_test.rb
329
+ - test/integration/security_test.rb
330
+ - test/integration/steps_test.rb
331
+ - test/integration/update_params_test.rb
332
+ - test/integration/updates_test.rb
333
+ - test/support/integration_case.rb
334
+ - test/support/wicked_controller_test_case.rb
335
+ - test/test_helper.rb
336
+ - test/wicked_test.rb
data/.rvmrc DELETED
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- ruby_string="ruby-1.9.3"
4
- gemset_name="wicked"
5
-
6
- if rvm list strings | grep -q "${ruby_string}" ; then
7
-
8
- rvm use "${ruby_string}@${gemset_name}" --create
9
-
10
- # Complain if bundler isn't installed
11
- if [[ -z "`gem which bundler 2>&1 | grep -v ERROR`" ]]; then
12
- echo "You need bundler:"
13
- echo ""
14
- echo " gem install bundler"
15
- echo ""
16
- fi
17
- else
18
- echo "${ruby_string} was not found, please run 'rvm install ${ruby_string}' and then cd back into the project directory."
19
- fi
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.0.3