glow 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +5 -3
- data/.travis.yml +15 -0
- data/Gemfile +18 -0
- data/README.md +1 -7
- data/Rakefile +9 -12
- data/glow.gemspec +1 -1
- data/lib/glow/version.rb +1 -1
- data/{test/rails3/spec → spec}/controllers/flash_controller_spec.rb +5 -1
- data/{test/rails3 → spec/dummy}/.rspec +0 -0
- data/{test/rails3 → spec/dummy}/Gemfile +0 -0
- data/{test/rails3 → spec/dummy}/Rakefile +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/{test/rails3/public → spec/dummy/app/assets}/javascripts/glow.js +0 -0
- data/{test/rails3/public → spec/dummy/app/assets}/javascripts/jquery.js +0 -0
- data/{test/rails3/public → spec/dummy/app/assets}/javascripts/jquery_ujs.js +0 -0
- data/{test/rails3 → spec/dummy}/app/controllers/application_controller.rb +0 -0
- data/{test/rails3 → spec/dummy}/app/controllers/flash_controller.rb +0 -0
- data/{test/rails3 → spec/dummy}/app/views/flash/ajax.js.erb +0 -0
- data/{test/rails3 → spec/dummy}/app/views/flash/show.html.erb +0 -0
- data/{test/rails3 → spec/dummy}/app/views/layouts/application.html.erb +5 -1
- data/{test/rails3 → spec/dummy}/config.ru +0 -0
- data/{test/rails3 → spec/dummy}/config/application.rb +4 -1
- data/{test/rails3 → spec/dummy}/config/boot.rb +0 -0
- data/{test/rails3 → spec/dummy}/config/environment.rb +0 -0
- data/{test/rails3 → spec/dummy}/config/environments/development.rb +0 -0
- data/{test/rails3 → spec/dummy}/config/environments/production.rb +0 -0
- data/{test/rails3 → spec/dummy}/config/environments/test.rb +5 -3
- data/{test/rails3 → spec/dummy}/config/initializers/backtrace_silencers.rb +0 -0
- data/{test/rails3 → spec/dummy}/config/initializers/inflections.rb +0 -0
- data/{test/rails3 → spec/dummy}/config/initializers/mime_types.rb +0 -0
- data/{test/rails3 → spec/dummy}/config/initializers/secret_token.rb +0 -0
- data/{test/rails3 → spec/dummy}/config/initializers/session_store.rb +0 -0
- data/{test/rails3 → spec/dummy}/config/initializers/wrap_parameters.rb +0 -0
- data/{test/rails3 → spec/dummy}/config/locales/en.yml +0 -0
- data/{test/rails3 → spec/dummy}/config/routes.rb +1 -1
- data/{test/rails3 → spec/dummy}/log/.gitkeep +0 -0
- data/{test/rails3 → spec/dummy}/public/404.html +0 -0
- data/{test/rails3 → spec/dummy}/public/422.html +0 -0
- data/{test/rails3 → spec/dummy}/public/500.html +0 -0
- data/{test/rails3 → spec/dummy}/public/favicon.ico +0 -0
- data/spec/dummy/public/javascripts/glow.js +35 -0
- data/spec/dummy/public/javascripts/jquery.js +8981 -0
- data/{test/rails3 → spec/dummy}/public/javascripts/jquery.min.js +0 -0
- data/spec/dummy/public/javascripts/jquery_ujs.js +331 -0
- data/{test/rails3 → spec/dummy}/script/rails +0 -0
- data/{test/rails3/spec/integration → spec/features}/flash_spec.rb +0 -0
- data/{test/rails3/spec → spec}/spec_helper.rb +1 -1
- metadata +102 -276
- data/Gemfile.lock +0 -96
- data/test/rails3/Gemfile.lock +0 -133
- data/test/rails3/spec/controllers/.flash_controller_spec.rb.swn +0 -0
- data/test/rails3/spec/controllers/.flash_controller_spec.rb.swo +0 -0
- data/test/rails31/.gitignore +0 -5
- data/test/rails31/Gemfile +0 -34
- data/test/rails31/Gemfile.lock +0 -166
- data/test/rails31/Rakefile +0 -7
- data/test/rails31/app/assets/images/rails.png +0 -0
- data/test/rails31/app/assets/javascripts/application.js +0 -10
- data/test/rails31/app/assets/stylesheets/application.css +0 -7
- data/test/rails31/app/controllers/application_controller.rb +0 -3
- data/test/rails31/app/controllers/flash_controller.rb +0 -25
- data/test/rails31/app/views/flash/ajax.js.erb +0 -1
- data/test/rails31/app/views/flash/show.html.erb +0 -13
- data/test/rails31/app/views/layouts/application.html.erb +0 -14
- data/test/rails31/config.ru +0 -4
- data/test/rails31/config/application.rb +0 -51
- data/test/rails31/config/boot.rb +0 -6
- data/test/rails31/config/environment.rb +0 -5
- data/test/rails31/config/environments/development.rb +0 -30
- data/test/rails31/config/environments/production.rb +0 -60
- data/test/rails31/config/environments/test.rb +0 -42
- data/test/rails31/config/initializers/backtrace_silencers.rb +0 -7
- data/test/rails31/config/initializers/inflections.rb +0 -10
- data/test/rails31/config/initializers/mime_types.rb +0 -5
- data/test/rails31/config/initializers/secret_token.rb +0 -7
- data/test/rails31/config/initializers/session_store.rb +0 -8
- data/test/rails31/config/initializers/wrap_parameters.rb +0 -10
- data/test/rails31/config/locales/en.yml +0 -5
- data/test/rails31/config/routes.rb +0 -6
- data/test/rails31/log/.gitkeep +0 -0
- data/test/rails31/public/404.html +0 -26
- data/test/rails31/public/422.html +0 -26
- data/test/rails31/public/500.html +0 -26
- data/test/rails31/public/favicon.ico +0 -0
- data/test/rails31/public/robots.txt +0 -5
- data/test/rails31/script/rails +0 -6
- data/test/rails31/spec/controllers/.flash_controller_spec.rb.swn +0 -0
- data/test/rails31/spec/controllers/.flash_controller_spec.rb.swo +0 -0
- data/test/rails31/spec/controllers/flash_controller_spec.rb +0 -55
- data/test/rails31/spec/integration/flash_spec.rb +0 -22
- data/test/rails31/spec/spec_helper.rb +0 -31
- data/test/rails32/.gitignore +0 -5
- data/test/rails32/Gemfile +0 -34
- data/test/rails32/Gemfile.lock +0 -161
- data/test/rails32/Rakefile +0 -7
- data/test/rails32/app/assets/images/rails.png +0 -0
- data/test/rails32/app/assets/javascripts/application.js +0 -10
- data/test/rails32/app/assets/stylesheets/application.css +0 -7
- data/test/rails32/app/controllers/application_controller.rb +0 -3
- data/test/rails32/app/controllers/flash_controller.rb +0 -25
- data/test/rails32/app/views/flash/ajax.js.erb +0 -1
- data/test/rails32/app/views/flash/show.html.erb +0 -13
- data/test/rails32/app/views/layouts/application.html.erb +0 -14
- data/test/rails32/config.ru +0 -4
- data/test/rails32/config/application.rb +0 -51
- data/test/rails32/config/boot.rb +0 -6
- data/test/rails32/config/environment.rb +0 -5
- data/test/rails32/config/environments/development.rb +0 -30
- data/test/rails32/config/environments/production.rb +0 -60
- data/test/rails32/config/environments/test.rb +0 -42
- data/test/rails32/config/initializers/backtrace_silencers.rb +0 -7
- data/test/rails32/config/initializers/inflections.rb +0 -10
- data/test/rails32/config/initializers/mime_types.rb +0 -5
- data/test/rails32/config/initializers/secret_token.rb +0 -7
- data/test/rails32/config/initializers/session_store.rb +0 -8
- data/test/rails32/config/initializers/wrap_parameters.rb +0 -10
- data/test/rails32/config/locales/en.yml +0 -5
- data/test/rails32/config/routes.rb +0 -6
- data/test/rails32/log/.gitkeep +0 -0
- data/test/rails32/public/404.html +0 -26
- data/test/rails32/public/422.html +0 -26
- data/test/rails32/public/500.html +0 -26
- data/test/rails32/public/favicon.ico +0 -0
- data/test/rails32/public/robots.txt +0 -5
- data/test/rails32/script/rails +0 -6
- data/test/rails32/spec/controllers/.flash_controller_spec.rb.swn +0 -0
- data/test/rails32/spec/controllers/.flash_controller_spec.rb.swo +0 -0
- data/test/rails32/spec/controllers/flash_controller_spec.rb +0 -55
- data/test/rails32/spec/integration/flash_spec.rb +0 -22
- data/test/rails32/spec/spec_helper.rb +0 -31
File without changes
|
@@ -0,0 +1,331 @@
|
|
1
|
+
/**
|
2
|
+
* Unobtrusive scripting adapter for jQuery
|
3
|
+
*
|
4
|
+
* Requires jQuery 1.6.0 or later.
|
5
|
+
* https://github.com/rails/jquery-ujs
|
6
|
+
|
7
|
+
* Uploading file using rails.js
|
8
|
+
* =============================
|
9
|
+
*
|
10
|
+
* By default, browsers do not allow files to be uploaded via AJAX. As a result, if there are any non-blank file fields
|
11
|
+
* in the remote form, this adapter aborts the AJAX submission and allows the form to submit through standard means.
|
12
|
+
*
|
13
|
+
* The `ajax:aborted:file` event allows you to bind your own handler to process the form submission however you wish.
|
14
|
+
*
|
15
|
+
* Ex:
|
16
|
+
* $('form').live('ajax:aborted:file', function(event, elements){
|
17
|
+
* // Implement own remote file-transfer handler here for non-blank file inputs passed in `elements`.
|
18
|
+
* // Returning false in this handler tells rails.js to disallow standard form submission
|
19
|
+
* return false;
|
20
|
+
* });
|
21
|
+
*
|
22
|
+
* The `ajax:aborted:file` event is fired when a file-type input is detected with a non-blank value.
|
23
|
+
*
|
24
|
+
* Third-party tools can use this hook to detect when an AJAX file upload is attempted, and then use
|
25
|
+
* techniques like the iframe method to upload the file instead.
|
26
|
+
*
|
27
|
+
* Required fields in rails.js
|
28
|
+
* ===========================
|
29
|
+
*
|
30
|
+
* If any blank required inputs (required="required") are detected in the remote form, the whole form submission
|
31
|
+
* is canceled. Note that this is unlike file inputs, which still allow standard (non-AJAX) form submission.
|
32
|
+
*
|
33
|
+
* The `ajax:aborted:required` event allows you to bind your own handler to inform the user of blank required inputs.
|
34
|
+
*
|
35
|
+
* !! Note that Opera does not fire the form's submit event if there are blank required inputs, so this event may never
|
36
|
+
* get fired in Opera. This event is what causes other browsers to exhibit the same submit-aborting behavior.
|
37
|
+
*
|
38
|
+
* Ex:
|
39
|
+
* $('form').live('ajax:aborted:required', function(event, elements){
|
40
|
+
* // Returning false in this handler tells rails.js to submit the form anyway.
|
41
|
+
* // The blank required inputs are passed to this function in `elements`.
|
42
|
+
* return ! confirm("Would you like to submit the form with missing info?");
|
43
|
+
* });
|
44
|
+
*/
|
45
|
+
|
46
|
+
(function($, undefined) {
|
47
|
+
// Shorthand to make it a little easier to call public rails functions from within rails.js
|
48
|
+
var rails;
|
49
|
+
|
50
|
+
$.rails = rails = {
|
51
|
+
// Link elements bound by jquery-ujs
|
52
|
+
linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote]',
|
53
|
+
|
54
|
+
// Select elements bound by jquery-ujs
|
55
|
+
selectChangeSelector: 'select[data-remote]',
|
56
|
+
|
57
|
+
// Form elements bound by jquery-ujs
|
58
|
+
formSubmitSelector: 'form',
|
59
|
+
|
60
|
+
// Form input elements bound by jquery-ujs
|
61
|
+
formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])',
|
62
|
+
|
63
|
+
// Form input elements disabled during form submission
|
64
|
+
disableSelector: 'input[data-disable-with], button[data-disable-with], textarea[data-disable-with]',
|
65
|
+
|
66
|
+
// Form input elements re-enabled after form submission
|
67
|
+
enableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled',
|
68
|
+
|
69
|
+
// Form required input elements
|
70
|
+
requiredInputSelector: 'input[name][required]:not([disabled]),textarea[name][required]:not([disabled])',
|
71
|
+
|
72
|
+
// Form file input elements
|
73
|
+
fileInputSelector: 'input:file',
|
74
|
+
|
75
|
+
// Make sure that every Ajax request sends the CSRF token
|
76
|
+
CSRFProtection: function(xhr) {
|
77
|
+
var token = $('meta[name="csrf-token"]').attr('content');
|
78
|
+
if (token) xhr.setRequestHeader('X-CSRF-Token', token);
|
79
|
+
},
|
80
|
+
|
81
|
+
// Triggers an event on an element and returns false if the event result is false
|
82
|
+
fire: function(obj, name, data) {
|
83
|
+
var event = $.Event(name);
|
84
|
+
obj.trigger(event, data);
|
85
|
+
return event.result !== false;
|
86
|
+
},
|
87
|
+
|
88
|
+
// Default confirm dialog, may be overridden with custom confirm dialog in $.rails.confirm
|
89
|
+
confirm: function(message) {
|
90
|
+
return confirm(message);
|
91
|
+
},
|
92
|
+
|
93
|
+
// Default ajax function, may be overridden with custom function in $.rails.ajax
|
94
|
+
ajax: function(options) {
|
95
|
+
return $.ajax(options);
|
96
|
+
},
|
97
|
+
|
98
|
+
// Submits "remote" forms and links with ajax
|
99
|
+
handleRemote: function(element) {
|
100
|
+
var method, url, data,
|
101
|
+
crossDomain = element.data('cross-domain') || null,
|
102
|
+
dataType = element.data('type') || ($.ajaxSettings && $.ajaxSettings.dataType);
|
103
|
+
|
104
|
+
if (rails.fire(element, 'ajax:before')) {
|
105
|
+
|
106
|
+
if (element.is('form')) {
|
107
|
+
method = element.attr('method');
|
108
|
+
url = element.attr('action');
|
109
|
+
data = element.serializeArray();
|
110
|
+
// memoized value from clicked submit button
|
111
|
+
var button = element.data('ujs:submit-button');
|
112
|
+
if (button) {
|
113
|
+
data.push(button);
|
114
|
+
element.data('ujs:submit-button', null);
|
115
|
+
}
|
116
|
+
} else if (element.is('select')) {
|
117
|
+
method = element.data('method');
|
118
|
+
url = element.data('url');
|
119
|
+
data = element.serialize();
|
120
|
+
if (element.data('params')) data = data + "&" + element.data('params');
|
121
|
+
} else {
|
122
|
+
method = element.data('method');
|
123
|
+
url = element.attr('href');
|
124
|
+
data = element.data('params') || null;
|
125
|
+
}
|
126
|
+
|
127
|
+
options = {
|
128
|
+
type: method || 'GET', data: data, dataType: dataType, crossDomain: crossDomain,
|
129
|
+
// stopping the "ajax:beforeSend" event will cancel the ajax request
|
130
|
+
beforeSend: function(xhr, settings) {
|
131
|
+
if (settings.dataType === undefined) {
|
132
|
+
xhr.setRequestHeader('accept', '*/*;q=0.5, ' + settings.accepts.script);
|
133
|
+
}
|
134
|
+
return rails.fire(element, 'ajax:beforeSend', [xhr, settings]);
|
135
|
+
},
|
136
|
+
success: function(data, status, xhr) {
|
137
|
+
element.trigger('ajax:success', [data, status, xhr]);
|
138
|
+
},
|
139
|
+
complete: function(xhr, status) {
|
140
|
+
element.trigger('ajax:complete', [xhr, status]);
|
141
|
+
},
|
142
|
+
error: function(xhr, status, error) {
|
143
|
+
element.trigger('ajax:error', [xhr, status, error]);
|
144
|
+
}
|
145
|
+
};
|
146
|
+
// Do not pass url to `ajax` options if blank
|
147
|
+
if (url) { $.extend(options, { url: url }); }
|
148
|
+
|
149
|
+
rails.ajax(options);
|
150
|
+
}
|
151
|
+
},
|
152
|
+
|
153
|
+
// Handles "data-method" on links such as:
|
154
|
+
// <a href="/users/5" data-method="delete" rel="nofollow" data-confirm="Are you sure?">Delete</a>
|
155
|
+
handleMethod: function(link) {
|
156
|
+
var href = link.attr('href'),
|
157
|
+
method = link.data('method'),
|
158
|
+
csrf_token = $('meta[name=csrf-token]').attr('content'),
|
159
|
+
csrf_param = $('meta[name=csrf-param]').attr('content'),
|
160
|
+
form = $('<form method="post" action="' + href + '"></form>'),
|
161
|
+
metadata_input = '<input name="_method" value="' + method + '" type="hidden" />';
|
162
|
+
|
163
|
+
if (csrf_param !== undefined && csrf_token !== undefined) {
|
164
|
+
metadata_input += '<input name="' + csrf_param + '" value="' + csrf_token + '" type="hidden" />';
|
165
|
+
}
|
166
|
+
|
167
|
+
form.hide().append(metadata_input).appendTo('body');
|
168
|
+
form.submit();
|
169
|
+
},
|
170
|
+
|
171
|
+
/* Disables form elements:
|
172
|
+
- Caches element value in 'ujs:enable-with' data store
|
173
|
+
- Replaces element text with value of 'data-disable-with' attribute
|
174
|
+
- Adds disabled=disabled attribute
|
175
|
+
*/
|
176
|
+
disableFormElements: function(form) {
|
177
|
+
form.find(rails.disableSelector).each(function() {
|
178
|
+
var element = $(this), method = element.is('button') ? 'html' : 'val';
|
179
|
+
element.data('ujs:enable-with', element[method]());
|
180
|
+
element[method](element.data('disable-with'));
|
181
|
+
element.attr('disabled', 'disabled');
|
182
|
+
});
|
183
|
+
},
|
184
|
+
|
185
|
+
/* Re-enables disabled form elements:
|
186
|
+
- Replaces element text with cached value from 'ujs:enable-with' data store (created in `disableFormElements`)
|
187
|
+
- Removes disabled attribute
|
188
|
+
*/
|
189
|
+
enableFormElements: function(form) {
|
190
|
+
form.find(rails.enableSelector).each(function() {
|
191
|
+
var element = $(this), method = element.is('button') ? 'html' : 'val';
|
192
|
+
if (element.data('ujs:enable-with')) element[method](element.data('ujs:enable-with'));
|
193
|
+
element.removeAttr('disabled');
|
194
|
+
});
|
195
|
+
},
|
196
|
+
|
197
|
+
/* For 'data-confirm' attribute:
|
198
|
+
- Fires `confirm` event
|
199
|
+
- Shows the confirmation dialog
|
200
|
+
- Fires the `confirm:complete` event
|
201
|
+
|
202
|
+
Returns `true` if no function stops the chain and user chose yes; `false` otherwise.
|
203
|
+
Attaching a handler to the element's `confirm` event that returns a `falsy` value cancels the confirmation dialog.
|
204
|
+
Attaching a handler to the element's `confirm:complete` event that returns a `falsy` value makes this function
|
205
|
+
return false. The `confirm:complete` event is fired whether or not the user answered true or false to the dialog.
|
206
|
+
*/
|
207
|
+
allowAction: function(element) {
|
208
|
+
var message = element.data('confirm'),
|
209
|
+
answer = false, callback;
|
210
|
+
if (!message) { return true; }
|
211
|
+
|
212
|
+
if (rails.fire(element, 'confirm')) {
|
213
|
+
answer = rails.confirm(message);
|
214
|
+
callback = rails.fire(element, 'confirm:complete', [answer]);
|
215
|
+
}
|
216
|
+
return answer && callback;
|
217
|
+
},
|
218
|
+
|
219
|
+
// Helper function which checks for blank inputs in a form that match the specified CSS selector
|
220
|
+
blankInputs: function(form, specifiedSelector, nonBlank) {
|
221
|
+
var inputs = $(), input,
|
222
|
+
selector = specifiedSelector || 'input,textarea';
|
223
|
+
form.find(selector).each(function() {
|
224
|
+
input = $(this);
|
225
|
+
// Collect non-blank inputs if nonBlank option is true, otherwise, collect blank inputs
|
226
|
+
if (nonBlank ? input.val() : !input.val()) {
|
227
|
+
inputs = inputs.add(input);
|
228
|
+
}
|
229
|
+
});
|
230
|
+
return inputs.length ? inputs : false;
|
231
|
+
},
|
232
|
+
|
233
|
+
// Helper function which checks for non-blank inputs in a form that match the specified CSS selector
|
234
|
+
nonBlankInputs: function(form, specifiedSelector) {
|
235
|
+
return rails.blankInputs(form, specifiedSelector, true); // true specifies nonBlank
|
236
|
+
},
|
237
|
+
|
238
|
+
// Helper function, needed to provide consistent behavior in IE
|
239
|
+
stopEverything: function(e) {
|
240
|
+
$(e.target).trigger('ujs:everythingStopped');
|
241
|
+
e.stopImmediatePropagation();
|
242
|
+
return false;
|
243
|
+
},
|
244
|
+
|
245
|
+
// find all the submit events directly bound to the form and
|
246
|
+
// manually invoke them. If anyone returns false then stop the loop
|
247
|
+
callFormSubmitBindings: function(form) {
|
248
|
+
var events = form.data('events'), continuePropagation = true;
|
249
|
+
if (events !== undefined && events['submit'] !== undefined) {
|
250
|
+
$.each(events['submit'], function(i, obj){
|
251
|
+
if (typeof obj.handler === 'function') return continuePropagation = obj.handler(obj.data);
|
252
|
+
});
|
253
|
+
}
|
254
|
+
return continuePropagation;
|
255
|
+
}
|
256
|
+
};
|
257
|
+
|
258
|
+
$.ajaxPrefilter(function(options, originalOptions, xhr){ if ( !options.crossDomain ) { rails.CSRFProtection(xhr); }});
|
259
|
+
|
260
|
+
$(rails.linkClickSelector).live('click.rails', function(e) {
|
261
|
+
var link = $(this);
|
262
|
+
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
263
|
+
|
264
|
+
if (link.data('remote') !== undefined) {
|
265
|
+
rails.handleRemote(link);
|
266
|
+
return false;
|
267
|
+
} else if (link.data('method')) {
|
268
|
+
rails.handleMethod(link);
|
269
|
+
return false;
|
270
|
+
}
|
271
|
+
});
|
272
|
+
|
273
|
+
$(rails.selectChangeSelector).live('change.rails', function(e) {
|
274
|
+
var link = $(this);
|
275
|
+
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
276
|
+
|
277
|
+
rails.handleRemote(link);
|
278
|
+
return false;
|
279
|
+
});
|
280
|
+
|
281
|
+
$(rails.formSubmitSelector).live('submit.rails', function(e) {
|
282
|
+
var form = $(this),
|
283
|
+
remote = form.data('remote') !== undefined,
|
284
|
+
blankRequiredInputs = rails.blankInputs(form, rails.requiredInputSelector),
|
285
|
+
nonBlankFileInputs = rails.nonBlankInputs(form, rails.fileInputSelector);
|
286
|
+
|
287
|
+
if (!rails.allowAction(form)) return rails.stopEverything(e);
|
288
|
+
|
289
|
+
// skip other logic when required values are missing or file upload is present
|
290
|
+
if (blankRequiredInputs && form.attr("novalidate") == undefined && rails.fire(form, 'ajax:aborted:required', [blankRequiredInputs])) {
|
291
|
+
return rails.stopEverything(e);
|
292
|
+
}
|
293
|
+
|
294
|
+
if (remote) {
|
295
|
+
if (nonBlankFileInputs) {
|
296
|
+
return rails.fire(form, 'ajax:aborted:file', [nonBlankFileInputs]);
|
297
|
+
}
|
298
|
+
|
299
|
+
// If browser does not support submit bubbling, then this live-binding will be called before direct
|
300
|
+
// bindings. Therefore, we should directly call any direct bindings before remotely submitting form.
|
301
|
+
if (!$.support.submitBubbles && rails.callFormSubmitBindings(form) === false) return rails.stopEverything(e);
|
302
|
+
|
303
|
+
rails.handleRemote(form);
|
304
|
+
return false;
|
305
|
+
} else {
|
306
|
+
// slight timeout so that the submit button gets properly serialized
|
307
|
+
setTimeout(function(){ rails.disableFormElements(form); }, 13);
|
308
|
+
}
|
309
|
+
});
|
310
|
+
|
311
|
+
$(rails.formInputClickSelector).live('click.rails', function(event) {
|
312
|
+
var button = $(this);
|
313
|
+
|
314
|
+
if (!rails.allowAction(button)) return rails.stopEverything(event);
|
315
|
+
|
316
|
+
// register the pressed submit button
|
317
|
+
var name = button.attr('name'),
|
318
|
+
data = name ? {name:name, value:button.val()} : null;
|
319
|
+
|
320
|
+
button.closest('form').data('ujs:submit-button', data);
|
321
|
+
});
|
322
|
+
|
323
|
+
$(rails.formSubmitSelector).live('ajax:beforeSend.rails', function(event) {
|
324
|
+
if (this == event.target) rails.disableFormElements($(this));
|
325
|
+
});
|
326
|
+
|
327
|
+
$(rails.formSubmitSelector).live('ajax:complete.rails', function(event) {
|
328
|
+
if (this == event.target) rails.enableFormElements($(this));
|
329
|
+
});
|
330
|
+
|
331
|
+
})( jQuery );
|
File without changes
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
2
|
ENV["RAILS_ENV"] ||= 'test'
|
3
|
-
require File.expand_path("
|
3
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
4
4
|
require 'rspec/rails'
|
5
5
|
require 'capybara/rspec'
|
6
6
|
require 'capybara/rails'
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.13
|
4
|
+
version: 0.0.14
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Daniel Kirsch
|
@@ -10,50 +9,38 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-08-07 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
|
-
version_requirements: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - ! '>='
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: 3.0.0
|
21
|
-
- - <
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 4.0.0
|
24
|
-
none: false
|
25
|
-
prerelease: false
|
26
15
|
name: rails
|
27
16
|
requirement: !ruby/object:Gem::Requirement
|
28
17
|
requirements:
|
29
|
-
- -
|
18
|
+
- - '>='
|
30
19
|
- !ruby/object:Gem::Version
|
31
20
|
version: 3.0.0
|
32
|
-
- - <
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: 4.0.0
|
35
|
-
none: false
|
36
21
|
type: :runtime
|
37
|
-
|
22
|
+
prerelease: false
|
38
23
|
version_requirements: !ruby/object:Gem::Requirement
|
39
24
|
requirements:
|
40
|
-
- -
|
25
|
+
- - '>='
|
41
26
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
43
|
-
|
44
|
-
prerelease: false
|
27
|
+
version: 3.0.0
|
28
|
+
- !ruby/object:Gem::Dependency
|
45
29
|
name: jquery-rails
|
46
30
|
requirement: !ruby/object:Gem::Requirement
|
47
31
|
requirements:
|
48
|
-
- -
|
32
|
+
- - '>='
|
49
33
|
- !ruby/object:Gem::Version
|
50
34
|
version: '0'
|
51
|
-
none: false
|
52
35
|
type: :runtime
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
'
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
description: |2
|
43
|
+
Handles Flash messages in Javascript for Rails xhr-responses. Fires a dom event when flash messages are present.
|
57
44
|
email:
|
58
45
|
- daniel.kirsch@zweitag.de
|
59
46
|
executables: []
|
@@ -63,8 +50,8 @@ extra_rdoc_files:
|
|
63
50
|
- MIT-LICENSE
|
64
51
|
files:
|
65
52
|
- .gitignore
|
53
|
+
- .travis.yml
|
66
54
|
- Gemfile
|
67
|
-
- Gemfile.lock
|
68
55
|
- MIT-LICENSE
|
69
56
|
- README.md
|
70
57
|
- Rakefile
|
@@ -75,127 +62,51 @@ files:
|
|
75
62
|
- lib/glow/filter.rb
|
76
63
|
- lib/glow/railtie.rb
|
77
64
|
- lib/glow/version.rb
|
65
|
+
- spec/controllers/flash_controller_spec.rb
|
66
|
+
- spec/dummy/.rspec
|
67
|
+
- spec/dummy/Gemfile
|
68
|
+
- spec/dummy/Rakefile
|
69
|
+
- spec/dummy/app/assets/javascripts/application.js
|
70
|
+
- spec/dummy/app/assets/javascripts/glow.js
|
71
|
+
- spec/dummy/app/assets/javascripts/jquery.js
|
72
|
+
- spec/dummy/app/assets/javascripts/jquery_ujs.js
|
73
|
+
- spec/dummy/app/controllers/application_controller.rb
|
74
|
+
- spec/dummy/app/controllers/flash_controller.rb
|
75
|
+
- spec/dummy/app/views/flash/ajax.js.erb
|
76
|
+
- spec/dummy/app/views/flash/show.html.erb
|
77
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
78
|
+
- spec/dummy/config.ru
|
79
|
+
- spec/dummy/config/application.rb
|
80
|
+
- spec/dummy/config/boot.rb
|
81
|
+
- spec/dummy/config/environment.rb
|
82
|
+
- spec/dummy/config/environments/development.rb
|
83
|
+
- spec/dummy/config/environments/production.rb
|
84
|
+
- spec/dummy/config/environments/test.rb
|
85
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
86
|
+
- spec/dummy/config/initializers/inflections.rb
|
87
|
+
- spec/dummy/config/initializers/mime_types.rb
|
88
|
+
- spec/dummy/config/initializers/secret_token.rb
|
89
|
+
- spec/dummy/config/initializers/session_store.rb
|
90
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
91
|
+
- spec/dummy/config/locales/en.yml
|
92
|
+
- spec/dummy/config/routes.rb
|
93
|
+
- spec/dummy/log/.gitkeep
|
94
|
+
- spec/dummy/public/404.html
|
95
|
+
- spec/dummy/public/422.html
|
96
|
+
- spec/dummy/public/500.html
|
97
|
+
- spec/dummy/public/favicon.ico
|
98
|
+
- spec/dummy/public/javascripts/glow.js
|
99
|
+
- spec/dummy/public/javascripts/jquery.js
|
100
|
+
- spec/dummy/public/javascripts/jquery.min.js
|
101
|
+
- spec/dummy/public/javascripts/jquery_ujs.js
|
102
|
+
- spec/dummy/script/rails
|
103
|
+
- spec/features/flash_spec.rb
|
104
|
+
- spec/spec_helper.rb
|
78
105
|
- src/glow.coffee
|
79
|
-
- test/rails3/.rspec
|
80
|
-
- test/rails3/Gemfile
|
81
|
-
- test/rails3/Gemfile.lock
|
82
|
-
- test/rails3/Rakefile
|
83
|
-
- test/rails3/app/controllers/application_controller.rb
|
84
|
-
- test/rails3/app/controllers/flash_controller.rb
|
85
|
-
- test/rails3/app/views/flash/ajax.js.erb
|
86
|
-
- test/rails3/app/views/flash/show.html.erb
|
87
|
-
- test/rails3/app/views/layouts/application.html.erb
|
88
|
-
- test/rails3/config.ru
|
89
|
-
- test/rails3/config/application.rb
|
90
|
-
- test/rails3/config/boot.rb
|
91
|
-
- test/rails3/config/environment.rb
|
92
|
-
- test/rails3/config/environments/development.rb
|
93
|
-
- test/rails3/config/environments/production.rb
|
94
|
-
- test/rails3/config/environments/test.rb
|
95
|
-
- test/rails3/config/initializers/backtrace_silencers.rb
|
96
|
-
- test/rails3/config/initializers/inflections.rb
|
97
|
-
- test/rails3/config/initializers/mime_types.rb
|
98
|
-
- test/rails3/config/initializers/secret_token.rb
|
99
|
-
- test/rails3/config/initializers/session_store.rb
|
100
|
-
- test/rails3/config/initializers/wrap_parameters.rb
|
101
|
-
- test/rails3/config/locales/en.yml
|
102
|
-
- test/rails3/config/routes.rb
|
103
|
-
- test/rails3/log/.gitkeep
|
104
|
-
- test/rails3/public/404.html
|
105
|
-
- test/rails3/public/422.html
|
106
|
-
- test/rails3/public/500.html
|
107
|
-
- test/rails3/public/favicon.ico
|
108
|
-
- test/rails3/public/javascripts/glow.js
|
109
|
-
- test/rails3/public/javascripts/jquery.js
|
110
|
-
- test/rails3/public/javascripts/jquery.min.js
|
111
|
-
- test/rails3/public/javascripts/jquery_ujs.js
|
112
|
-
- test/rails3/script/rails
|
113
|
-
- test/rails3/spec/controllers/.flash_controller_spec.rb.swn
|
114
|
-
- test/rails3/spec/controllers/.flash_controller_spec.rb.swo
|
115
|
-
- test/rails3/spec/controllers/flash_controller_spec.rb
|
116
|
-
- test/rails3/spec/integration/flash_spec.rb
|
117
|
-
- test/rails3/spec/spec_helper.rb
|
118
|
-
- test/rails31/.gitignore
|
119
|
-
- test/rails31/Gemfile
|
120
|
-
- test/rails31/Gemfile.lock
|
121
|
-
- test/rails31/Rakefile
|
122
|
-
- test/rails31/app/assets/images/rails.png
|
123
|
-
- test/rails31/app/assets/javascripts/application.js
|
124
|
-
- test/rails31/app/assets/stylesheets/application.css
|
125
|
-
- test/rails31/app/controllers/application_controller.rb
|
126
|
-
- test/rails31/app/controllers/flash_controller.rb
|
127
|
-
- test/rails31/app/views/flash/ajax.js.erb
|
128
|
-
- test/rails31/app/views/flash/show.html.erb
|
129
|
-
- test/rails31/app/views/layouts/application.html.erb
|
130
|
-
- test/rails31/config.ru
|
131
|
-
- test/rails31/config/application.rb
|
132
|
-
- test/rails31/config/boot.rb
|
133
|
-
- test/rails31/config/environment.rb
|
134
|
-
- test/rails31/config/environments/development.rb
|
135
|
-
- test/rails31/config/environments/production.rb
|
136
|
-
- test/rails31/config/environments/test.rb
|
137
|
-
- test/rails31/config/initializers/backtrace_silencers.rb
|
138
|
-
- test/rails31/config/initializers/inflections.rb
|
139
|
-
- test/rails31/config/initializers/mime_types.rb
|
140
|
-
- test/rails31/config/initializers/secret_token.rb
|
141
|
-
- test/rails31/config/initializers/session_store.rb
|
142
|
-
- test/rails31/config/initializers/wrap_parameters.rb
|
143
|
-
- test/rails31/config/locales/en.yml
|
144
|
-
- test/rails31/config/routes.rb
|
145
|
-
- test/rails31/log/.gitkeep
|
146
|
-
- test/rails31/public/404.html
|
147
|
-
- test/rails31/public/422.html
|
148
|
-
- test/rails31/public/500.html
|
149
|
-
- test/rails31/public/favicon.ico
|
150
|
-
- test/rails31/public/robots.txt
|
151
|
-
- test/rails31/script/rails
|
152
|
-
- test/rails31/spec/controllers/.flash_controller_spec.rb.swn
|
153
|
-
- test/rails31/spec/controllers/.flash_controller_spec.rb.swo
|
154
|
-
- test/rails31/spec/controllers/flash_controller_spec.rb
|
155
|
-
- test/rails31/spec/integration/flash_spec.rb
|
156
|
-
- test/rails31/spec/spec_helper.rb
|
157
|
-
- test/rails32/.gitignore
|
158
|
-
- test/rails32/Gemfile
|
159
|
-
- test/rails32/Gemfile.lock
|
160
|
-
- test/rails32/Rakefile
|
161
|
-
- test/rails32/app/assets/images/rails.png
|
162
|
-
- test/rails32/app/assets/javascripts/application.js
|
163
|
-
- test/rails32/app/assets/stylesheets/application.css
|
164
|
-
- test/rails32/app/controllers/application_controller.rb
|
165
|
-
- test/rails32/app/controllers/flash_controller.rb
|
166
|
-
- test/rails32/app/views/flash/ajax.js.erb
|
167
|
-
- test/rails32/app/views/flash/show.html.erb
|
168
|
-
- test/rails32/app/views/layouts/application.html.erb
|
169
|
-
- test/rails32/config.ru
|
170
|
-
- test/rails32/config/application.rb
|
171
|
-
- test/rails32/config/boot.rb
|
172
|
-
- test/rails32/config/environment.rb
|
173
|
-
- test/rails32/config/environments/development.rb
|
174
|
-
- test/rails32/config/environments/production.rb
|
175
|
-
- test/rails32/config/environments/test.rb
|
176
|
-
- test/rails32/config/initializers/backtrace_silencers.rb
|
177
|
-
- test/rails32/config/initializers/inflections.rb
|
178
|
-
- test/rails32/config/initializers/mime_types.rb
|
179
|
-
- test/rails32/config/initializers/secret_token.rb
|
180
|
-
- test/rails32/config/initializers/session_store.rb
|
181
|
-
- test/rails32/config/initializers/wrap_parameters.rb
|
182
|
-
- test/rails32/config/locales/en.yml
|
183
|
-
- test/rails32/config/routes.rb
|
184
|
-
- test/rails32/log/.gitkeep
|
185
|
-
- test/rails32/public/404.html
|
186
|
-
- test/rails32/public/422.html
|
187
|
-
- test/rails32/public/500.html
|
188
|
-
- test/rails32/public/favicon.ico
|
189
|
-
- test/rails32/public/robots.txt
|
190
|
-
- test/rails32/script/rails
|
191
|
-
- test/rails32/spec/controllers/.flash_controller_spec.rb.swn
|
192
|
-
- test/rails32/spec/controllers/.flash_controller_spec.rb.swo
|
193
|
-
- test/rails32/spec/controllers/flash_controller_spec.rb
|
194
|
-
- test/rails32/spec/integration/flash_spec.rb
|
195
|
-
- test/rails32/spec/spec_helper.rb
|
196
106
|
- vendor/assets/javascripts/glow.js
|
197
107
|
homepage: https://github.com/zweitag/glow
|
198
108
|
licenses: []
|
109
|
+
metadata: {}
|
199
110
|
post_install_message:
|
200
111
|
rdoc_options:
|
201
112
|
- --main
|
@@ -205,143 +116,58 @@ require_paths:
|
|
205
116
|
- lib
|
206
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
207
118
|
requirements:
|
208
|
-
- -
|
119
|
+
- - '>='
|
209
120
|
- !ruby/object:Gem::Version
|
210
121
|
version: '0'
|
211
|
-
segments:
|
212
|
-
- 0
|
213
|
-
hash: -1114898616114158001
|
214
|
-
none: false
|
215
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
123
|
requirements:
|
217
|
-
- -
|
124
|
+
- - '>='
|
218
125
|
- !ruby/object:Gem::Version
|
219
126
|
version: '0'
|
220
|
-
segments:
|
221
|
-
- 0
|
222
|
-
hash: -1114898616114158001
|
223
|
-
none: false
|
224
127
|
requirements: []
|
225
128
|
rubyforge_project:
|
226
|
-
rubygems_version:
|
129
|
+
rubygems_version: 2.0.2
|
227
130
|
signing_key:
|
228
|
-
specification_version:
|
131
|
+
specification_version: 4
|
229
132
|
summary: Javascript Flash Hash handling for Rails.
|
230
133
|
test_files:
|
231
|
-
-
|
232
|
-
-
|
233
|
-
-
|
234
|
-
-
|
235
|
-
-
|
236
|
-
-
|
237
|
-
-
|
238
|
-
-
|
239
|
-
-
|
240
|
-
-
|
241
|
-
-
|
242
|
-
-
|
243
|
-
-
|
244
|
-
-
|
245
|
-
-
|
246
|
-
-
|
247
|
-
-
|
248
|
-
-
|
249
|
-
-
|
250
|
-
-
|
251
|
-
-
|
252
|
-
-
|
253
|
-
-
|
254
|
-
-
|
255
|
-
-
|
256
|
-
-
|
257
|
-
-
|
258
|
-
-
|
259
|
-
-
|
260
|
-
-
|
261
|
-
-
|
262
|
-
-
|
263
|
-
-
|
264
|
-
-
|
265
|
-
-
|
266
|
-
-
|
267
|
-
-
|
268
|
-
-
|
269
|
-
-
|
270
|
-
-
|
271
|
-
- test/rails31/Gemfile
|
272
|
-
- test/rails31/Gemfile.lock
|
273
|
-
- test/rails31/Rakefile
|
274
|
-
- test/rails31/app/assets/images/rails.png
|
275
|
-
- test/rails31/app/assets/javascripts/application.js
|
276
|
-
- test/rails31/app/assets/stylesheets/application.css
|
277
|
-
- test/rails31/app/controllers/application_controller.rb
|
278
|
-
- test/rails31/app/controllers/flash_controller.rb
|
279
|
-
- test/rails31/app/views/flash/ajax.js.erb
|
280
|
-
- test/rails31/app/views/flash/show.html.erb
|
281
|
-
- test/rails31/app/views/layouts/application.html.erb
|
282
|
-
- test/rails31/config.ru
|
283
|
-
- test/rails31/config/application.rb
|
284
|
-
- test/rails31/config/boot.rb
|
285
|
-
- test/rails31/config/environment.rb
|
286
|
-
- test/rails31/config/environments/development.rb
|
287
|
-
- test/rails31/config/environments/production.rb
|
288
|
-
- test/rails31/config/environments/test.rb
|
289
|
-
- test/rails31/config/initializers/backtrace_silencers.rb
|
290
|
-
- test/rails31/config/initializers/inflections.rb
|
291
|
-
- test/rails31/config/initializers/mime_types.rb
|
292
|
-
- test/rails31/config/initializers/secret_token.rb
|
293
|
-
- test/rails31/config/initializers/session_store.rb
|
294
|
-
- test/rails31/config/initializers/wrap_parameters.rb
|
295
|
-
- test/rails31/config/locales/en.yml
|
296
|
-
- test/rails31/config/routes.rb
|
297
|
-
- test/rails31/log/.gitkeep
|
298
|
-
- test/rails31/public/404.html
|
299
|
-
- test/rails31/public/422.html
|
300
|
-
- test/rails31/public/500.html
|
301
|
-
- test/rails31/public/favicon.ico
|
302
|
-
- test/rails31/public/robots.txt
|
303
|
-
- test/rails31/script/rails
|
304
|
-
- test/rails31/spec/controllers/.flash_controller_spec.rb.swn
|
305
|
-
- test/rails31/spec/controllers/.flash_controller_spec.rb.swo
|
306
|
-
- test/rails31/spec/controllers/flash_controller_spec.rb
|
307
|
-
- test/rails31/spec/integration/flash_spec.rb
|
308
|
-
- test/rails31/spec/spec_helper.rb
|
309
|
-
- test/rails32/.gitignore
|
310
|
-
- test/rails32/Gemfile
|
311
|
-
- test/rails32/Gemfile.lock
|
312
|
-
- test/rails32/Rakefile
|
313
|
-
- test/rails32/app/assets/images/rails.png
|
314
|
-
- test/rails32/app/assets/javascripts/application.js
|
315
|
-
- test/rails32/app/assets/stylesheets/application.css
|
316
|
-
- test/rails32/app/controllers/application_controller.rb
|
317
|
-
- test/rails32/app/controllers/flash_controller.rb
|
318
|
-
- test/rails32/app/views/flash/ajax.js.erb
|
319
|
-
- test/rails32/app/views/flash/show.html.erb
|
320
|
-
- test/rails32/app/views/layouts/application.html.erb
|
321
|
-
- test/rails32/config.ru
|
322
|
-
- test/rails32/config/application.rb
|
323
|
-
- test/rails32/config/boot.rb
|
324
|
-
- test/rails32/config/environment.rb
|
325
|
-
- test/rails32/config/environments/development.rb
|
326
|
-
- test/rails32/config/environments/production.rb
|
327
|
-
- test/rails32/config/environments/test.rb
|
328
|
-
- test/rails32/config/initializers/backtrace_silencers.rb
|
329
|
-
- test/rails32/config/initializers/inflections.rb
|
330
|
-
- test/rails32/config/initializers/mime_types.rb
|
331
|
-
- test/rails32/config/initializers/secret_token.rb
|
332
|
-
- test/rails32/config/initializers/session_store.rb
|
333
|
-
- test/rails32/config/initializers/wrap_parameters.rb
|
334
|
-
- test/rails32/config/locales/en.yml
|
335
|
-
- test/rails32/config/routes.rb
|
336
|
-
- test/rails32/log/.gitkeep
|
337
|
-
- test/rails32/public/404.html
|
338
|
-
- test/rails32/public/422.html
|
339
|
-
- test/rails32/public/500.html
|
340
|
-
- test/rails32/public/favicon.ico
|
341
|
-
- test/rails32/public/robots.txt
|
342
|
-
- test/rails32/script/rails
|
343
|
-
- test/rails32/spec/controllers/.flash_controller_spec.rb.swn
|
344
|
-
- test/rails32/spec/controllers/.flash_controller_spec.rb.swo
|
345
|
-
- test/rails32/spec/controllers/flash_controller_spec.rb
|
346
|
-
- test/rails32/spec/integration/flash_spec.rb
|
347
|
-
- test/rails32/spec/spec_helper.rb
|
134
|
+
- spec/controllers/flash_controller_spec.rb
|
135
|
+
- spec/dummy/.rspec
|
136
|
+
- spec/dummy/Gemfile
|
137
|
+
- spec/dummy/Rakefile
|
138
|
+
- spec/dummy/app/assets/javascripts/application.js
|
139
|
+
- spec/dummy/app/assets/javascripts/glow.js
|
140
|
+
- spec/dummy/app/assets/javascripts/jquery.js
|
141
|
+
- spec/dummy/app/assets/javascripts/jquery_ujs.js
|
142
|
+
- spec/dummy/app/controllers/application_controller.rb
|
143
|
+
- spec/dummy/app/controllers/flash_controller.rb
|
144
|
+
- spec/dummy/app/views/flash/ajax.js.erb
|
145
|
+
- spec/dummy/app/views/flash/show.html.erb
|
146
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
147
|
+
- spec/dummy/config.ru
|
148
|
+
- spec/dummy/config/application.rb
|
149
|
+
- spec/dummy/config/boot.rb
|
150
|
+
- spec/dummy/config/environment.rb
|
151
|
+
- spec/dummy/config/environments/development.rb
|
152
|
+
- spec/dummy/config/environments/production.rb
|
153
|
+
- spec/dummy/config/environments/test.rb
|
154
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
155
|
+
- spec/dummy/config/initializers/inflections.rb
|
156
|
+
- spec/dummy/config/initializers/mime_types.rb
|
157
|
+
- spec/dummy/config/initializers/secret_token.rb
|
158
|
+
- spec/dummy/config/initializers/session_store.rb
|
159
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
160
|
+
- spec/dummy/config/locales/en.yml
|
161
|
+
- spec/dummy/config/routes.rb
|
162
|
+
- spec/dummy/log/.gitkeep
|
163
|
+
- spec/dummy/public/404.html
|
164
|
+
- spec/dummy/public/422.html
|
165
|
+
- spec/dummy/public/500.html
|
166
|
+
- spec/dummy/public/favicon.ico
|
167
|
+
- spec/dummy/public/javascripts/glow.js
|
168
|
+
- spec/dummy/public/javascripts/jquery.js
|
169
|
+
- spec/dummy/public/javascripts/jquery.min.js
|
170
|
+
- spec/dummy/public/javascripts/jquery_ujs.js
|
171
|
+
- spec/dummy/script/rails
|
172
|
+
- spec/features/flash_spec.rb
|
173
|
+
- spec/spec_helper.rb
|