wicked-focused 0.2.0

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.
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,202 @@
1
+ (function() {
2
+ Ajax.Responders.register({
3
+ onCreate: function(request) {
4
+ var token = $$('meta[name=csrf-token]')[0];
5
+ if (token) {
6
+ if (!request.options.requestHeaders) request.options.requestHeaders = {};
7
+ request.options.requestHeaders['X-CSRF-Token'] = token.readAttribute('content');
8
+ }
9
+ }
10
+ });
11
+
12
+ // Technique from Juriy Zaytsev
13
+ // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
14
+ function isEventSupported(eventName) {
15
+ var el = document.createElement('div');
16
+ eventName = 'on' + eventName;
17
+ var isSupported = (eventName in el);
18
+ if (!isSupported) {
19
+ el.setAttribute(eventName, 'return;');
20
+ isSupported = typeof el[eventName] == 'function';
21
+ }
22
+ el = null;
23
+ return isSupported;
24
+ }
25
+
26
+ function isForm(element) {
27
+ return Object.isElement(element) && element.nodeName.toUpperCase() == 'FORM';
28
+ }
29
+
30
+ function isInput(element) {
31
+ if (Object.isElement(element)) {
32
+ var name = element.nodeName.toUpperCase();
33
+ return name == 'INPUT' || name == 'SELECT' || name == 'TEXTAREA';
34
+ }
35
+ else return false;
36
+ }
37
+
38
+ var submitBubbles = isEventSupported('submit'),
39
+ changeBubbles = isEventSupported('change');
40
+
41
+ if (!submitBubbles || !changeBubbles) {
42
+ // augment the Event.Handler class to observe custom events when needed
43
+ Event.Handler.prototype.initialize = Event.Handler.prototype.initialize.wrap(
44
+ function(init, element, eventName, selector, callback) {
45
+ init(element, eventName, selector, callback);
46
+ // is the handler being attached to an element that doesn't support this event?
47
+ if ( (!submitBubbles && this.eventName == 'submit' && !isForm(this.element)) ||
48
+ (!changeBubbles && this.eventName == 'change' && !isInput(this.element)) ) {
49
+ // "submit" => "emulated:submit"
50
+ this.eventName = 'emulated:' + this.eventName;
51
+ }
52
+ }
53
+ );
54
+ }
55
+
56
+ if (!submitBubbles) {
57
+ // discover forms on the page by observing focus events which always bubble
58
+ document.on('focusin', 'form', function(focusEvent, form) {
59
+ // special handler for the real "submit" event (one-time operation)
60
+ if (!form.retrieve('emulated:submit')) {
61
+ form.on('submit', function(submitEvent) {
62
+ var emulated = form.fire('emulated:submit', submitEvent, true);
63
+ // if custom event received preventDefault, cancel the real one too
64
+ if (emulated.returnValue === false) submitEvent.preventDefault();
65
+ });
66
+ form.store('emulated:submit', true);
67
+ }
68
+ });
69
+ }
70
+
71
+ if (!changeBubbles) {
72
+ // discover form inputs on the page
73
+ document.on('focusin', 'input, select, textarea', function(focusEvent, input) {
74
+ // special handler for real "change" events
75
+ if (!input.retrieve('emulated:change')) {
76
+ input.on('change', function(changeEvent) {
77
+ input.fire('emulated:change', changeEvent, true);
78
+ });
79
+ input.store('emulated:change', true);
80
+ }
81
+ });
82
+ }
83
+
84
+ function handleRemote(element) {
85
+ var method, url, params;
86
+
87
+ var event = element.fire("ajax:before");
88
+ if (event.stopped) return false;
89
+
90
+ if (element.tagName.toLowerCase() === 'form') {
91
+ method = element.readAttribute('method') || 'post';
92
+ url = element.readAttribute('action');
93
+ // serialize the form with respect to the submit button that was pressed
94
+ params = element.serialize({ submit: element.retrieve('rails:submit-button') });
95
+ // clear the pressed submit button information
96
+ element.store('rails:submit-button', null);
97
+ } else {
98
+ method = element.readAttribute('data-method') || 'get';
99
+ url = element.readAttribute('href');
100
+ params = {};
101
+ }
102
+
103
+ new Ajax.Request(url, {
104
+ method: method,
105
+ parameters: params,
106
+ evalScripts: true,
107
+
108
+ onCreate: function(response) { element.fire("ajax:create", response); },
109
+ onComplete: function(response) { element.fire("ajax:complete", response); },
110
+ onSuccess: function(response) { element.fire("ajax:success", response); },
111
+ onFailure: function(response) { element.fire("ajax:failure", response); }
112
+ });
113
+
114
+ element.fire("ajax:after");
115
+ }
116
+
117
+ function insertHiddenField(form, name, value) {
118
+ form.insert(new Element('input', { type: 'hidden', name: name, value: value }));
119
+ }
120
+
121
+ function handleMethod(element) {
122
+ var method = element.readAttribute('data-method'),
123
+ url = element.readAttribute('href'),
124
+ csrf_param = $$('meta[name=csrf-param]')[0],
125
+ csrf_token = $$('meta[name=csrf-token]')[0];
126
+
127
+ var form = new Element('form', { method: "POST", action: url, style: "display: none;" });
128
+ $(element.parentNode).insert(form);
129
+
130
+ if (method !== 'post') {
131
+ insertHiddenField(form, '_method', method);
132
+ }
133
+
134
+ if (csrf_param) {
135
+ insertHiddenField(form, csrf_param.readAttribute('content'), csrf_token.readAttribute('content'));
136
+ }
137
+
138
+ form.submit();
139
+ }
140
+
141
+ function disableFormElements(form) {
142
+ form.select('input[type=submit][data-disable-with]').each(function(input) {
143
+ input.store('rails:original-value', input.getValue());
144
+ input.setValue(input.readAttribute('data-disable-with')).disable();
145
+ });
146
+ }
147
+
148
+ function enableFormElements(form) {
149
+ form.select('input[type=submit][data-disable-with]').each(function(input) {
150
+ input.setValue(input.retrieve('rails:original-value')).enable();
151
+ });
152
+ }
153
+
154
+ function allowAction(element) {
155
+ var message = element.readAttribute('data-confirm');
156
+ return !message || confirm(message);
157
+ }
158
+
159
+ document.on('click', 'a[data-confirm], a[data-remote], a[data-method]', function(event, link) {
160
+ if (!allowAction(link)) {
161
+ event.stop();
162
+ return false;
163
+ }
164
+
165
+ if (link.readAttribute('data-remote')) {
166
+ handleRemote(link);
167
+ event.stop();
168
+ } else if (link.readAttribute('data-method')) {
169
+ handleMethod(link);
170
+ event.stop();
171
+ }
172
+ });
173
+
174
+ document.on("click", "form input[type=submit], form button[type=submit], form button:not([type])", function(event, button) {
175
+ // register the pressed submit button
176
+ event.findElement('form').store('rails:submit-button', button.name || false);
177
+ });
178
+
179
+ document.on("submit", function(event) {
180
+ var form = event.findElement();
181
+
182
+ if (!allowAction(form)) {
183
+ event.stop();
184
+ return false;
185
+ }
186
+
187
+ if (form.readAttribute('data-remote')) {
188
+ handleRemote(form);
189
+ event.stop();
190
+ } else {
191
+ disableFormElements(form);
192
+ }
193
+ });
194
+
195
+ document.on('ajax:create', 'form', function(event, form) {
196
+ if (form == event.findElement()) disableFormElements(form);
197
+ });
198
+
199
+ document.on('ajax:complete', 'form', function(event, form) {
200
+ if (form == event.findElement()) enableFormElements(form);
201
+ });
202
+ })();
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,40 @@
1
+ require 'test_helper'
2
+
3
+ class HelpersTest < ActiveSupport::IntegrationCase
4
+
5
+ test 'next_wizard_path' do
6
+ step = :first
7
+ visit(bar_path(step))
8
+ assert has_content?('first')
9
+ click_link 'skip'
10
+ assert has_content?('second')
11
+ end
12
+
13
+ test 'wizard_path' do
14
+ step = :first
15
+ visit(bar_path(step))
16
+ click_link 'current'
17
+ assert has_content?(step.to_s)
18
+ end
19
+
20
+ test 'wizard_path with symbol arg' do
21
+ step = :first
22
+ visit(bar_path(step))
23
+ click_link 'last'
24
+ assert has_content?('last_step')
25
+ end
26
+
27
+ test 'previous_wizard_path' do
28
+ step = :second
29
+ visit(bar_path(step))
30
+ click_link 'previous'
31
+ assert has_content?("first")
32
+ end
33
+
34
+ test 'wizard_steps' do
35
+ step = :last_step
36
+ visit(bar_path(step))
37
+ assert has_content?("step 3 of 3")
38
+ end
39
+
40
+ end
@@ -0,0 +1,16 @@
1
+ require 'test_helper'
2
+
3
+ class JumpNavigationTest < ActiveSupport::IntegrationCase
4
+ test 'consider jump_to when calling render_wizard with resource' do
5
+ step = :first
6
+ visit(jump_path(step, :resource => {:save => true}, :jump_to => :last_step))
7
+ assert has_content?('last_step')
8
+ end
9
+
10
+ test 'disregard jump_to when saving the resource fails' do
11
+ step = :first
12
+ visit(jump_path(step, :resource => {:save => false}, :jump_to => :last_step))
13
+ assert has_content?('first')
14
+ assert !has_content?('last_step')
15
+ end
16
+ end
@@ -0,0 +1,88 @@
1
+ require 'test_helper'
2
+
3
+ class InheritNavigationTest < ActiveSupport::IntegrationCase
4
+
5
+ test 'default index' do
6
+ visit(foo_index_path)
7
+ assert has_content?('first')
8
+ end
9
+
10
+ test 'show first' do
11
+ step = :first
12
+ visit(foo_path(step))
13
+ assert has_content?(step.to_s)
14
+ end
15
+
16
+ test 'show second' do
17
+ step = :second
18
+ visit(foo_path(step))
19
+ assert has_content?(step.to_s)
20
+ end
21
+
22
+ test 'skip first' do
23
+ step = :first
24
+ visit(foo_path(step.to_s, :skip_step => 'true'))
25
+ assert has_content?('second')
26
+ end
27
+
28
+ test 'invalid step' do
29
+ step = :notastep
30
+ assert_raise(ActionView::MissingTemplate) do
31
+ visit(foo_path(step))
32
+ end
33
+ end
34
+
35
+ test 'finish' do
36
+ step = :finish
37
+ visit(foo_path(step))
38
+ assert has_content?('home')
39
+ end
40
+
41
+ end
42
+
43
+
44
+ class IncludeNavigationTest < ActiveSupport::IntegrationCase
45
+
46
+ test 'show first' do
47
+ step = :first
48
+ visit(bar_path(step))
49
+ assert has_content?(step.to_s)
50
+ end
51
+
52
+ test 'show second' do
53
+ step = :second
54
+ visit(bar_path(step))
55
+ assert has_content?(step.to_s)
56
+ end
57
+
58
+ test 'skip first' do
59
+ step = :first
60
+ visit(bar_path(step, :skip_step => 'true'))
61
+ assert has_content?(:second.to_s)
62
+ end
63
+
64
+ test 'pointer to first' do
65
+ visit(bar_path(:wizard_first))
66
+ assert has_content?('first')
67
+ end
68
+
69
+ test 'pointer to last' do
70
+ visit(bar_path(:wizard_last))
71
+ assert has_content?('last_step')
72
+ end
73
+
74
+ test 'invalid step' do
75
+ step = :notastep
76
+ assert_raise(ActionView::MissingTemplate) do
77
+ visit(bar_path(step))
78
+ end
79
+ end
80
+
81
+ test 'finish' do
82
+ step = :finish
83
+ visit(bar_path(step))
84
+ assert has_content?('home')
85
+ end
86
+ end
87
+
88
+
@@ -0,0 +1,32 @@
1
+ require 'test_helper'
2
+
3
+ class StepPositionsTest < ActiveSupport::IntegrationCase
4
+
5
+ test 'on first' do
6
+ step = :first
7
+ visit(step_position_path(step))
8
+ assert has_content?('first step is the current step') # current_step?
9
+ assert true # past_step?
10
+ assert has_content?('last_step step is a future step') # future_step?
11
+ assert has_content?('second step is a future step') # future_step?
12
+ assert true # previous_step?
13
+ assert has_content?('second step is the next step') # next_step?
14
+ end
15
+
16
+ test 'on second' do
17
+ step = :second
18
+ visit(step_position_path(step))
19
+ assert has_content?('second step is the current step') # current_step?
20
+ assert has_content?('first step is a past step') # past_step?
21
+ assert has_content?('last_step step is a future step') # future_step?
22
+ assert has_content?('first step was the previous step') # previous_step?
23
+ assert has_content?('last_step step is the next step') # next_step?
24
+ end
25
+
26
+ end
27
+
28
+ # current_step?
29
+ # past_step?
30
+ # future_step?
31
+ # previous_step?
32
+ # next_step?
@@ -0,0 +1,5 @@
1
+ # Define a bare test case to use with Capybara
2
+ class ActiveSupport::IntegrationCase < ActiveSupport::TestCase
3
+ include Capybara::DSL
4
+ include Rails.application.routes.url_helpers
5
+ end
@@ -0,0 +1,30 @@
1
+ require 'rails'
2
+
3
+ # Configure Rails Envinronment
4
+ ENV["RAILS_ENV"] = "test"
5
+
6
+
7
+
8
+ ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
9
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
10
+ require "rails/test_help"
11
+
12
+
13
+ ActionMailer::Base.delivery_method = :test
14
+ ActionMailer::Base.perform_deliveries = true
15
+ ActionMailer::Base.default_url_options[:host] = "test.com"
16
+
17
+ Rails.backtrace_cleaner.remove_silencers!
18
+
19
+ # Configure capybara for integration testing
20
+ require "capybara/rails"
21
+ Capybara.default_driver = :rack_test
22
+ Capybara.default_selector = :css
23
+
24
+
25
+
26
+ # Run any available migration
27
+ ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
28
+
29
+ # Load support files
30
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class WickedTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Wicked
6
+ end
7
+ end
@@ -0,0 +1,138 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "wicked-focused"
8
+ s.version = "0.2.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["kristianmandrup", "schneems"]
12
+ s.date = "2012-08-06"
13
+ s.description = "Rails engine for producing Focused Controller based wizards"
14
+ s.email = "kmandrup@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "README.md"
17
+ ]
18
+ s.files = [
19
+ ".rvmrc",
20
+ ".travis.yml",
21
+ "CHANGELOG.md",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "MIT-LICENSE",
25
+ "README.md",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "lib/wicked-focused.rb",
29
+ "lib/wicked/action.rb",
30
+ "lib/wicked/controller/concerns/path.rb",
31
+ "lib/wicked/controller/concerns/render_redirect.rb",
32
+ "lib/wicked/controller/concerns/steps.rb",
33
+ "lib/wicked/engine.rb",
34
+ "lib/wicked/macros.rb",
35
+ "lib/wicked/wizard.rb",
36
+ "test/dummy/Rakefile",
37
+ "test/dummy/app/controllers/application_controller.rb",
38
+ "test/dummy/app/controllers/bar_controller.rb",
39
+ "test/dummy/app/controllers/foo_controller.rb",
40
+ "test/dummy/app/controllers/jump_controller.rb",
41
+ "test/dummy/app/controllers/steps_controller.rb",
42
+ "test/dummy/app/helpers/application_helper.rb",
43
+ "test/dummy/app/models/bar.rb",
44
+ "test/dummy/app/views/bar/first.html.erb",
45
+ "test/dummy/app/views/bar/last_step.html.erb",
46
+ "test/dummy/app/views/bar/second.html.erb",
47
+ "test/dummy/app/views/foo/first.html.erb",
48
+ "test/dummy/app/views/foo/last_step.html.erb",
49
+ "test/dummy/app/views/foo/second.html.erb",
50
+ "test/dummy/app/views/jump/first.html.erb",
51
+ "test/dummy/app/views/jump/last_step.html.erb",
52
+ "test/dummy/app/views/jump/second.html.erb",
53
+ "test/dummy/app/views/layouts/application.html.erb",
54
+ "test/dummy/app/views/step_positions/_step_position.html.erb",
55
+ "test/dummy/app/views/step_positions/first.html.erb",
56
+ "test/dummy/app/views/step_positions/last_step.html.erb",
57
+ "test/dummy/app/views/step_positions/second.html.erb",
58
+ "test/dummy/config.ru",
59
+ "test/dummy/config/application.rb",
60
+ "test/dummy/config/boot.rb",
61
+ "test/dummy/config/database.yml",
62
+ "test/dummy/config/environment.rb",
63
+ "test/dummy/config/environments/development.rb",
64
+ "test/dummy/config/environments/production.rb",
65
+ "test/dummy/config/environments/test.rb",
66
+ "test/dummy/config/initializers/backtrace_silencers.rb",
67
+ "test/dummy/config/initializers/inflections.rb",
68
+ "test/dummy/config/initializers/mime_types.rb",
69
+ "test/dummy/config/initializers/secret_token.rb",
70
+ "test/dummy/config/initializers/session_store.rb",
71
+ "test/dummy/config/initializers/wicked.rb",
72
+ "test/dummy/config/locales/en.yml",
73
+ "test/dummy/config/routes.rb",
74
+ "test/dummy/public/404.html",
75
+ "test/dummy/public/422.html",
76
+ "test/dummy/public/500.html",
77
+ "test/dummy/public/favicon.ico",
78
+ "test/dummy/public/index.html",
79
+ "test/dummy/public/javascripts/application.js",
80
+ "test/dummy/public/javascripts/controls.js",
81
+ "test/dummy/public/javascripts/dragdrop.js",
82
+ "test/dummy/public/javascripts/effects.js",
83
+ "test/dummy/public/javascripts/prototype.js",
84
+ "test/dummy/public/javascripts/rails.js",
85
+ "test/dummy/public/stylesheets/.gitkeep",
86
+ "test/dummy/script/rails",
87
+ "test/integration/helpers_test.rb",
88
+ "test/integration/jump_test.rb",
89
+ "test/integration/navigation_test.rb",
90
+ "test/integration/steps_test.rb",
91
+ "test/support/integration_case.rb",
92
+ "test/test_helper.rb",
93
+ "test/wicked_test.rb",
94
+ "wicked-focused.gemspec"
95
+ ]
96
+ s.homepage = "http://github.com/schneems/wicked"
97
+ s.licenses = ["MIT"]
98
+ s.require_paths = ["lib"]
99
+ s.rubygems_version = "1.8.24"
100
+ s.summary = "Use Wicked to turn your Focused Controller into a wizard"
101
+
102
+ if s.respond_to? :specification_version then
103
+ s.specification_version = 3
104
+
105
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
106
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.0.7"])
107
+ s.add_runtime_dependency(%q<rails>, [">= 3.0.7"])
108
+ s.add_runtime_dependency(%q<focused_controller>, [">= 0"])
109
+ s.add_development_dependency(%q<rake>, [">= 0"])
110
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
111
+ s.add_development_dependency(%q<rcov>, [">= 0"])
112
+ s.add_development_dependency(%q<capybara>, [">= 1.0.0"])
113
+ s.add_development_dependency(%q<sqlite3>, [">= 0"])
114
+ s.add_development_dependency(%q<launchy>, [">= 0"])
115
+ else
116
+ s.add_dependency(%q<activesupport>, [">= 3.0.7"])
117
+ s.add_dependency(%q<rails>, [">= 3.0.7"])
118
+ s.add_dependency(%q<focused_controller>, [">= 0"])
119
+ s.add_dependency(%q<rake>, [">= 0"])
120
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
121
+ s.add_dependency(%q<rcov>, [">= 0"])
122
+ s.add_dependency(%q<capybara>, [">= 1.0.0"])
123
+ s.add_dependency(%q<sqlite3>, [">= 0"])
124
+ s.add_dependency(%q<launchy>, [">= 0"])
125
+ end
126
+ else
127
+ s.add_dependency(%q<activesupport>, [">= 3.0.7"])
128
+ s.add_dependency(%q<rails>, [">= 3.0.7"])
129
+ s.add_dependency(%q<focused_controller>, [">= 0"])
130
+ s.add_dependency(%q<rake>, [">= 0"])
131
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
132
+ s.add_dependency(%q<rcov>, [">= 0"])
133
+ s.add_dependency(%q<capybara>, [">= 1.0.0"])
134
+ s.add_dependency(%q<sqlite3>, [">= 0"])
135
+ s.add_dependency(%q<launchy>, [">= 0"])
136
+ end
137
+ end
138
+