wicked-focused 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/.rvmrc +19 -0
  2. data/.travis.yml +4 -0
  3. data/CHANGELOG.md +3 -0
  4. data/Gemfile +22 -0
  5. data/Gemfile.lock +122 -0
  6. data/MIT-LICENSE +20 -0
  7. data/README.md +253 -0
  8. data/Rakefile +50 -0
  9. data/VERSION +1 -0
  10. data/lib/wicked/action.rb +64 -0
  11. data/lib/wicked/controller/concerns/path.rb +29 -0
  12. data/lib/wicked/controller/concerns/render_redirect.rb +49 -0
  13. data/lib/wicked/controller/concerns/steps.rb +87 -0
  14. data/lib/wicked/engine.rb +4 -0
  15. data/lib/wicked/macros.rb +23 -0
  16. data/lib/wicked/wizard.rb +26 -0
  17. data/lib/wicked-focused.rb +25 -0
  18. data/test/dummy/Rakefile +7 -0
  19. data/test/dummy/app/controllers/application_controller.rb +3 -0
  20. data/test/dummy/app/controllers/bar_controller.rb +18 -0
  21. data/test/dummy/app/controllers/foo_controller.rb +19 -0
  22. data/test/dummy/app/controllers/jump_controller.rb +26 -0
  23. data/test/dummy/app/controllers/steps_controller.rb +18 -0
  24. data/test/dummy/app/helpers/application_helper.rb +2 -0
  25. data/test/dummy/app/models/bar.rb +9 -0
  26. data/test/dummy/app/views/bar/first.html.erb +5 -0
  27. data/test/dummy/app/views/bar/last_step.html.erb +3 -0
  28. data/test/dummy/app/views/bar/second.html.erb +3 -0
  29. data/test/dummy/app/views/foo/first.html.erb +1 -0
  30. data/test/dummy/app/views/foo/last_step.html.erb +1 -0
  31. data/test/dummy/app/views/foo/second.html.erb +1 -0
  32. data/test/dummy/app/views/jump/first.html.erb +1 -0
  33. data/test/dummy/app/views/jump/last_step.html.erb +1 -0
  34. data/test/dummy/app/views/jump/second.html.erb +1 -0
  35. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  36. data/test/dummy/app/views/step_positions/_step_position.html.erb +9 -0
  37. data/test/dummy/app/views/step_positions/first.html.erb +1 -0
  38. data/test/dummy/app/views/step_positions/last_step.html.erb +1 -0
  39. data/test/dummy/app/views/step_positions/second.html.erb +1 -0
  40. data/test/dummy/config/application.rb +45 -0
  41. data/test/dummy/config/boot.rb +10 -0
  42. data/test/dummy/config/database.yml +22 -0
  43. data/test/dummy/config/environment.rb +5 -0
  44. data/test/dummy/config/environments/development.rb +26 -0
  45. data/test/dummy/config/environments/production.rb +49 -0
  46. data/test/dummy/config/environments/test.rb +35 -0
  47. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  48. data/test/dummy/config/initializers/inflections.rb +10 -0
  49. data/test/dummy/config/initializers/mime_types.rb +5 -0
  50. data/test/dummy/config/initializers/secret_token.rb +7 -0
  51. data/test/dummy/config/initializers/session_store.rb +8 -0
  52. data/test/dummy/config/initializers/wicked.rb +2 -0
  53. data/test/dummy/config/locales/en.yml +5 -0
  54. data/test/dummy/config/routes.rb +8 -0
  55. data/test/dummy/config.ru +4 -0
  56. data/test/dummy/public/404.html +26 -0
  57. data/test/dummy/public/422.html +26 -0
  58. data/test/dummy/public/500.html +26 -0
  59. data/test/dummy/public/favicon.ico +0 -0
  60. data/test/dummy/public/index.html +1 -0
  61. data/test/dummy/public/javascripts/application.js +2 -0
  62. data/test/dummy/public/javascripts/controls.js +965 -0
  63. data/test/dummy/public/javascripts/dragdrop.js +974 -0
  64. data/test/dummy/public/javascripts/effects.js +1123 -0
  65. data/test/dummy/public/javascripts/prototype.js +6001 -0
  66. data/test/dummy/public/javascripts/rails.js +202 -0
  67. data/test/dummy/public/stylesheets/.gitkeep +0 -0
  68. data/test/dummy/script/rails +6 -0
  69. data/test/integration/helpers_test.rb +40 -0
  70. data/test/integration/jump_test.rb +16 -0
  71. data/test/integration/navigation_test.rb +88 -0
  72. data/test/integration/steps_test.rb +32 -0
  73. data/test/support/integration_case.rb +5 -0
  74. data/test/test_helper.rb +30 -0
  75. data/test/wicked_test.rb +7 -0
  76. data/wicked-focused.gemspec +138 -0
  77. metadata +270 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1 @@
1
+ home
@@ -0,0 +1,2 @@
1
+ // Place your application-specific JavaScript functions and classes here
2
+ // This file is automatically included by javascript_include_tag :defaults