paginated_table 0.0.1 → 0.0.2
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.
- data/README.md +30 -4
- data/lib/paginated_table.rb +1 -0
- data/lib/paginated_table/config.rb +25 -0
- data/lib/paginated_table/page.rb +1 -2
- data/lib/paginated_table/version.rb +1 -1
- data/lib/paginated_table/view_helpers.rb +1 -1
- data/test/dummy/log/test.log +3644 -0
- data/test/dummy/tmp/cache/assets/D4B/960/sprockets%2F67b395978dc0e3bf33d86d1723a9eba5 +9409 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D5F/7C0/sprockets%2F1dec5fa0315164b27675d43ca2ad8cf2 +381 -0
- data/test/dummy/tmp/cache/assets/D8C/030/sprockets%2F0ced4287b390f2130dfa3e2b811de0ef +9409 -0
- data/test/dummy/tmp/cache/assets/DA7/7E0/sprockets%2Ff2f62e3986a0555f3d7ce7ae16cacf27 +381 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/units/config_test.rb +19 -0
- data/test/units/view_helpers_test.rb +3 -1
- metadata +30 -19
@@ -0,0 +1,381 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@expires_in0:@value"�?{"content_type"application/javascript"dependency_paths[{"digest"%401cc42d66b077ad71301ec21f8091ed"
|
2
|
+
mtime"2012-04-10T12:40:27-04:00" path"u/Users/dball/.rvm/gems/ree-1.8.7-2012.02@decisiv/gems/jquery-rails-2.0.2/vendor/assets/javascripts/jquery_ujs.js"
|
3
|
+
class"ProcessedAsset"source"�<(function($, undefined) {
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Unobtrusive scripting adapter for jQuery
|
7
|
+
*
|
8
|
+
* Requires jQuery 1.6.0 or later.
|
9
|
+
* https://github.com/rails/jquery-ujs
|
10
|
+
|
11
|
+
* Uploading file using rails.js
|
12
|
+
* =============================
|
13
|
+
*
|
14
|
+
* By default, browsers do not allow files to be uploaded via AJAX. As a result, if there are any non-blank file fields
|
15
|
+
* in the remote form, this adapter aborts the AJAX submission and allows the form to submit through standard means.
|
16
|
+
*
|
17
|
+
* The `ajax:aborted:file` event allows you to bind your own handler to process the form submission however you wish.
|
18
|
+
*
|
19
|
+
* Ex:
|
20
|
+
* $('form').live('ajax:aborted:file', function(event, elements){
|
21
|
+
* // Implement own remote file-transfer handler here for non-blank file inputs passed in `elements`.
|
22
|
+
* // Returning false in this handler tells rails.js to disallow standard form submission
|
23
|
+
* return false;
|
24
|
+
* });
|
25
|
+
*
|
26
|
+
* The `ajax:aborted:file` event is fired when a file-type input is detected with a non-blank value.
|
27
|
+
*
|
28
|
+
* Third-party tools can use this hook to detect when an AJAX file upload is attempted, and then use
|
29
|
+
* techniques like the iframe method to upload the file instead.
|
30
|
+
*
|
31
|
+
* Required fields in rails.js
|
32
|
+
* ===========================
|
33
|
+
*
|
34
|
+
* If any blank required inputs (required="required") are detected in the remote form, the whole form submission
|
35
|
+
* is canceled. Note that this is unlike file inputs, which still allow standard (non-AJAX) form submission.
|
36
|
+
*
|
37
|
+
* The `ajax:aborted:required` event allows you to bind your own handler to inform the user of blank required inputs.
|
38
|
+
*
|
39
|
+
* !! Note that Opera does not fire the form's submit event if there are blank required inputs, so this event may never
|
40
|
+
* get fired in Opera. This event is what causes other browsers to exhibit the same submit-aborting behavior.
|
41
|
+
*
|
42
|
+
* Ex:
|
43
|
+
* $('form').live('ajax:aborted:required', function(event, elements){
|
44
|
+
* // Returning false in this handler tells rails.js to submit the form anyway.
|
45
|
+
* // The blank required inputs are passed to this function in `elements`.
|
46
|
+
* return ! confirm("Would you like to submit the form with missing info?");
|
47
|
+
* });
|
48
|
+
*/
|
49
|
+
|
50
|
+
// Shorthand to make it a little easier to call public rails functions from within rails.js
|
51
|
+
var rails;
|
52
|
+
|
53
|
+
$.rails = rails = {
|
54
|
+
// Link elements bound by jquery-ujs
|
55
|
+
linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]',
|
56
|
+
|
57
|
+
// Select elements bound by jquery-ujs
|
58
|
+
inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',
|
59
|
+
|
60
|
+
// Form elements bound by jquery-ujs
|
61
|
+
formSubmitSelector: 'form',
|
62
|
+
|
63
|
+
// Form input elements bound by jquery-ujs
|
64
|
+
formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not(button[type])',
|
65
|
+
|
66
|
+
// Form input elements disabled during form submission
|
67
|
+
disableSelector: 'input[data-disable-with], button[data-disable-with], textarea[data-disable-with]',
|
68
|
+
|
69
|
+
// Form input elements re-enabled after form submission
|
70
|
+
enableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled',
|
71
|
+
|
72
|
+
// Form required input elements
|
73
|
+
requiredInputSelector: 'input[name][required]:not([disabled]),textarea[name][required]:not([disabled])',
|
74
|
+
|
75
|
+
// Form file input elements
|
76
|
+
fileInputSelector: 'input:file',
|
77
|
+
|
78
|
+
// Link onClick disable selector with possible reenable after remote submission
|
79
|
+
linkDisableSelector: 'a[data-disable-with]',
|
80
|
+
|
81
|
+
// Make sure that every Ajax request sends the CSRF token
|
82
|
+
CSRFProtection: function(xhr) {
|
83
|
+
var token = $('meta[name="csrf-token"]').attr('content');
|
84
|
+
if (token) xhr.setRequestHeader('X-CSRF-Token', token);
|
85
|
+
},
|
86
|
+
|
87
|
+
// Triggers an event on an element and returns false if the event result is false
|
88
|
+
fire: function(obj, name, data) {
|
89
|
+
var event = $.Event(name);
|
90
|
+
obj.trigger(event, data);
|
91
|
+
return event.result !== false;
|
92
|
+
},
|
93
|
+
|
94
|
+
// Default confirm dialog, may be overridden with custom confirm dialog in $.rails.confirm
|
95
|
+
confirm: function(message) {
|
96
|
+
return confirm(message);
|
97
|
+
},
|
98
|
+
|
99
|
+
// Default ajax function, may be overridden with custom function in $.rails.ajax
|
100
|
+
ajax: function(options) {
|
101
|
+
return $.ajax(options);
|
102
|
+
},
|
103
|
+
|
104
|
+
// Default way to get an element's href. May be overridden at $.rails.href.
|
105
|
+
href: function(element) {
|
106
|
+
return element.attr('href');
|
107
|
+
},
|
108
|
+
|
109
|
+
// Submits "remote" forms and links with ajax
|
110
|
+
handleRemote: function(element) {
|
111
|
+
var method, url, data, crossDomain, dataType, options;
|
112
|
+
|
113
|
+
if (rails.fire(element, 'ajax:before')) {
|
114
|
+
crossDomain = element.data('cross-domain') || null;
|
115
|
+
dataType = element.data('type') || ($.ajaxSettings && $.ajaxSettings.dataType);
|
116
|
+
|
117
|
+
if (element.is('form')) {
|
118
|
+
method = element.attr('method');
|
119
|
+
url = element.attr('action');
|
120
|
+
data = element.serializeArray();
|
121
|
+
// memoized value from clicked submit button
|
122
|
+
var button = element.data('ujs:submit-button');
|
123
|
+
if (button) {
|
124
|
+
data.push(button);
|
125
|
+
element.data('ujs:submit-button', null);
|
126
|
+
}
|
127
|
+
} else if (element.is(rails.inputChangeSelector)) {
|
128
|
+
method = element.data('method');
|
129
|
+
url = element.data('url');
|
130
|
+
data = element.serialize();
|
131
|
+
if (element.data('params')) data = data + "&" + element.data('params');
|
132
|
+
} else {
|
133
|
+
method = element.data('method');
|
134
|
+
url = rails.href(element);
|
135
|
+
data = element.data('params') || null;
|
136
|
+
}
|
137
|
+
|
138
|
+
options = {
|
139
|
+
type: method || 'GET', data: data, dataType: dataType, crossDomain: crossDomain,
|
140
|
+
// stopping the "ajax:beforeSend" event will cancel the ajax request
|
141
|
+
beforeSend: function(xhr, settings) {
|
142
|
+
if (settings.dataType === undefined) {
|
143
|
+
xhr.setRequestHeader('accept', '*/*;q=0.5, ' + settings.accepts.script);
|
144
|
+
}
|
145
|
+
return rails.fire(element, 'ajax:beforeSend', [xhr, settings]);
|
146
|
+
},
|
147
|
+
success: function(data, status, xhr) {
|
148
|
+
element.trigger('ajax:success', [data, status, xhr]);
|
149
|
+
},
|
150
|
+
complete: function(xhr, status) {
|
151
|
+
element.trigger('ajax:complete', [xhr, status]);
|
152
|
+
},
|
153
|
+
error: function(xhr, status, error) {
|
154
|
+
element.trigger('ajax:error', [xhr, status, error]);
|
155
|
+
}
|
156
|
+
};
|
157
|
+
// Only pass url to `ajax` options if not blank
|
158
|
+
if (url) { options.url = url; }
|
159
|
+
|
160
|
+
return rails.ajax(options);
|
161
|
+
} else {
|
162
|
+
return false;
|
163
|
+
}
|
164
|
+
},
|
165
|
+
|
166
|
+
// Handles "data-method" on links such as:
|
167
|
+
// <a href="/users/5" data-method="delete" rel="nofollow" data-confirm="Are you sure?">Delete</a>
|
168
|
+
handleMethod: function(link) {
|
169
|
+
var href = rails.href(link),
|
170
|
+
method = link.data('method'),
|
171
|
+
target = link.attr('target'),
|
172
|
+
csrf_token = $('meta[name=csrf-token]').attr('content'),
|
173
|
+
csrf_param = $('meta[name=csrf-param]').attr('content'),
|
174
|
+
form = $('<form method="post" action="' + href + '"></form>'),
|
175
|
+
metadata_input = '<input name="_method" value="' + method + '" type="hidden" />';
|
176
|
+
|
177
|
+
if (csrf_param !== undefined && csrf_token !== undefined) {
|
178
|
+
metadata_input += '<input name="' + csrf_param + '" value="' + csrf_token + '" type="hidden" />';
|
179
|
+
}
|
180
|
+
|
181
|
+
if (target) { form.attr('target', target); }
|
182
|
+
|
183
|
+
form.hide().append(metadata_input).appendTo('body');
|
184
|
+
form.submit();
|
185
|
+
},
|
186
|
+
|
187
|
+
/* Disables form elements:
|
188
|
+
- Caches element value in 'ujs:enable-with' data store
|
189
|
+
- Replaces element text with value of 'data-disable-with' attribute
|
190
|
+
- Sets disabled property to true
|
191
|
+
*/
|
192
|
+
disableFormElements: function(form) {
|
193
|
+
form.find(rails.disableSelector).each(function() {
|
194
|
+
var element = $(this), method = element.is('button') ? 'html' : 'val';
|
195
|
+
element.data('ujs:enable-with', element[method]());
|
196
|
+
element[method](element.data('disable-with'));
|
197
|
+
element.prop('disabled', true);
|
198
|
+
});
|
199
|
+
},
|
200
|
+
|
201
|
+
/* Re-enables disabled form elements:
|
202
|
+
- Replaces element text with cached value from 'ujs:enable-with' data store (created in `disableFormElements`)
|
203
|
+
- Sets disabled property to false
|
204
|
+
*/
|
205
|
+
enableFormElements: function(form) {
|
206
|
+
form.find(rails.enableSelector).each(function() {
|
207
|
+
var element = $(this), method = element.is('button') ? 'html' : 'val';
|
208
|
+
if (element.data('ujs:enable-with')) element[method](element.data('ujs:enable-with'));
|
209
|
+
element.prop('disabled', false);
|
210
|
+
});
|
211
|
+
},
|
212
|
+
|
213
|
+
/* For 'data-confirm' attribute:
|
214
|
+
- Fires `confirm` event
|
215
|
+
- Shows the confirmation dialog
|
216
|
+
- Fires the `confirm:complete` event
|
217
|
+
|
218
|
+
Returns `true` if no function stops the chain and user chose yes; `false` otherwise.
|
219
|
+
Attaching a handler to the element's `confirm` event that returns a `falsy` value cancels the confirmation dialog.
|
220
|
+
Attaching a handler to the element's `confirm:complete` event that returns a `falsy` value makes this function
|
221
|
+
return false. The `confirm:complete` event is fired whether or not the user answered true or false to the dialog.
|
222
|
+
*/
|
223
|
+
allowAction: function(element) {
|
224
|
+
var message = element.data('confirm'),
|
225
|
+
answer = false, callback;
|
226
|
+
if (!message) { return true; }
|
227
|
+
|
228
|
+
if (rails.fire(element, 'confirm')) {
|
229
|
+
answer = rails.confirm(message);
|
230
|
+
callback = rails.fire(element, 'confirm:complete', [answer]);
|
231
|
+
}
|
232
|
+
return answer && callback;
|
233
|
+
},
|
234
|
+
|
235
|
+
// Helper function which checks for blank inputs in a form that match the specified CSS selector
|
236
|
+
blankInputs: function(form, specifiedSelector, nonBlank) {
|
237
|
+
var inputs = $(), input,
|
238
|
+
selector = specifiedSelector || 'input,textarea';
|
239
|
+
form.find(selector).each(function() {
|
240
|
+
input = $(this);
|
241
|
+
// Collect non-blank inputs if nonBlank option is true, otherwise, collect blank inputs
|
242
|
+
if (nonBlank ? input.val() : !input.val()) {
|
243
|
+
inputs = inputs.add(input);
|
244
|
+
}
|
245
|
+
});
|
246
|
+
return inputs.length ? inputs : false;
|
247
|
+
},
|
248
|
+
|
249
|
+
// Helper function which checks for non-blank inputs in a form that match the specified CSS selector
|
250
|
+
nonBlankInputs: function(form, specifiedSelector) {
|
251
|
+
return rails.blankInputs(form, specifiedSelector, true); // true specifies nonBlank
|
252
|
+
},
|
253
|
+
|
254
|
+
// Helper function, needed to provide consistent behavior in IE
|
255
|
+
stopEverything: function(e) {
|
256
|
+
$(e.target).trigger('ujs:everythingStopped');
|
257
|
+
e.stopImmediatePropagation();
|
258
|
+
return false;
|
259
|
+
},
|
260
|
+
|
261
|
+
// find all the submit events directly bound to the form and
|
262
|
+
// manually invoke them. If anyone returns false then stop the loop
|
263
|
+
callFormSubmitBindings: function(form, event) {
|
264
|
+
var events = form.data('events'), continuePropagation = true;
|
265
|
+
if (events !== undefined && events['submit'] !== undefined) {
|
266
|
+
$.each(events['submit'], function(i, obj){
|
267
|
+
if (typeof obj.handler === 'function') return continuePropagation = obj.handler(event);
|
268
|
+
});
|
269
|
+
}
|
270
|
+
return continuePropagation;
|
271
|
+
},
|
272
|
+
|
273
|
+
// replace element's html with the 'data-disable-with' after storing original html
|
274
|
+
// and prevent clicking on it
|
275
|
+
disableElement: function(element) {
|
276
|
+
element.data('ujs:enable-with', element.html()); // store enabled state
|
277
|
+
element.html(element.data('disable-with')); // set to disabled state
|
278
|
+
element.bind('click.railsDisable', function(e) { // prevent further clicking
|
279
|
+
return rails.stopEverything(e)
|
280
|
+
});
|
281
|
+
},
|
282
|
+
|
283
|
+
// restore element to its original state which was disabled by 'disableElement' above
|
284
|
+
enableElement: function(element) {
|
285
|
+
if (element.data('ujs:enable-with') !== undefined) {
|
286
|
+
element.html(element.data('ujs:enable-with')); // set to old enabled state
|
287
|
+
// this should be element.removeData('ujs:enable-with')
|
288
|
+
// but, there is currently a bug in jquery which makes hyphenated data attributes not get removed
|
289
|
+
element.data('ujs:enable-with', false); // clean up cache
|
290
|
+
}
|
291
|
+
element.unbind('click.railsDisable'); // enable element
|
292
|
+
}
|
293
|
+
|
294
|
+
};
|
295
|
+
|
296
|
+
$.ajaxPrefilter(function(options, originalOptions, xhr){ if ( !options.crossDomain ) { rails.CSRFProtection(xhr); }});
|
297
|
+
|
298
|
+
$(document).delegate(rails.linkDisableSelector, 'ajax:complete', function() {
|
299
|
+
rails.enableElement($(this));
|
300
|
+
});
|
301
|
+
|
302
|
+
$(document).delegate(rails.linkClickSelector, 'click.rails', function(e) {
|
303
|
+
var link = $(this), method = link.data('method'), data = link.data('params');
|
304
|
+
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
305
|
+
|
306
|
+
if (link.is(rails.linkDisableSelector)) rails.disableElement(link);
|
307
|
+
|
308
|
+
if (link.data('remote') !== undefined) {
|
309
|
+
if ( (e.metaKey || e.ctrlKey) && (!method || method === 'GET') && !data ) { return true; }
|
310
|
+
|
311
|
+
if (rails.handleRemote(link) === false) { rails.enableElement(link); }
|
312
|
+
return false;
|
313
|
+
|
314
|
+
} else if (link.data('method')) {
|
315
|
+
rails.handleMethod(link);
|
316
|
+
return false;
|
317
|
+
}
|
318
|
+
});
|
319
|
+
|
320
|
+
$(document).delegate(rails.inputChangeSelector, 'change.rails', function(e) {
|
321
|
+
var link = $(this);
|
322
|
+
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
323
|
+
|
324
|
+
rails.handleRemote(link);
|
325
|
+
return false;
|
326
|
+
});
|
327
|
+
|
328
|
+
$(document).delegate(rails.formSubmitSelector, 'submit.rails', function(e) {
|
329
|
+
var form = $(this),
|
330
|
+
remote = form.data('remote') !== undefined,
|
331
|
+
blankRequiredInputs = rails.blankInputs(form, rails.requiredInputSelector),
|
332
|
+
nonBlankFileInputs = rails.nonBlankInputs(form, rails.fileInputSelector);
|
333
|
+
|
334
|
+
if (!rails.allowAction(form)) return rails.stopEverything(e);
|
335
|
+
|
336
|
+
// skip other logic when required values are missing or file upload is present
|
337
|
+
if (blankRequiredInputs && form.attr("novalidate") == undefined && rails.fire(form, 'ajax:aborted:required', [blankRequiredInputs])) {
|
338
|
+
return rails.stopEverything(e);
|
339
|
+
}
|
340
|
+
|
341
|
+
if (remote) {
|
342
|
+
if (nonBlankFileInputs) {
|
343
|
+
return rails.fire(form, 'ajax:aborted:file', [nonBlankFileInputs]);
|
344
|
+
}
|
345
|
+
|
346
|
+
// If browser does not support submit bubbling, then this live-binding will be called before direct
|
347
|
+
// bindings. Therefore, we should directly call any direct bindings before remotely submitting form.
|
348
|
+
if (!$.support.submitBubbles && $().jquery < '1.7' && rails.callFormSubmitBindings(form, e) === false) return rails.stopEverything(e);
|
349
|
+
|
350
|
+
rails.handleRemote(form);
|
351
|
+
return false;
|
352
|
+
|
353
|
+
} else {
|
354
|
+
// slight timeout so that the submit button gets properly serialized
|
355
|
+
setTimeout(function(){ rails.disableFormElements(form); }, 13);
|
356
|
+
}
|
357
|
+
});
|
358
|
+
|
359
|
+
$(document).delegate(rails.formInputClickSelector, 'click.rails', function(event) {
|
360
|
+
var button = $(this);
|
361
|
+
|
362
|
+
if (!rails.allowAction(button)) return rails.stopEverything(event);
|
363
|
+
|
364
|
+
// register the pressed submit button
|
365
|
+
var name = button.attr('name'),
|
366
|
+
data = name ? {name:name, value:button.val()} : null;
|
367
|
+
|
368
|
+
button.closest('form').data('ujs:submit-button', data);
|
369
|
+
});
|
370
|
+
|
371
|
+
$(document).delegate(rails.formSubmitSelector, 'ajax:beforeSend.rails', function(event) {
|
372
|
+
if (this == event.target) rails.disableFormElements($(this));
|
373
|
+
});
|
374
|
+
|
375
|
+
$(document).delegate(rails.formSubmitSelector, 'ajax:complete.rails', function(event) {
|
376
|
+
if (this == event.target) rails.enableFormElements($(this));
|
377
|
+
});
|
378
|
+
|
379
|
+
})( jQuery );
|
380
|
+
"
|
381
|
+
mtime"2012-04-10T12:40:27-04:00"dependency_digest"%b1d3892a1a25de0a96969e940ac85a64"lengthi�<"required_paths["u/Users/dball/.rvm/gems/ree-1.8.7-2012.02@decisiv/gems/jquery-rails-2.0.2/vendor/assets/javascripts/jquery_ujs.js"logical_path"jquery_ujs.js:@compressedF:@created_atf1334118347.7235091M�
|
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module PaginatedTable
|
2
|
+
describe "configuration" do
|
3
|
+
let(:configuration) { PaginatedTable.configuration }
|
4
|
+
after do
|
5
|
+
PaginatedTable.set_default_configuration
|
6
|
+
end
|
7
|
+
|
8
|
+
it "should have default rows_per_page" do
|
9
|
+
configuration.rows_per_page.must_equal 10
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should let us set rows_per_page" do
|
13
|
+
PaginatedTable.configure do |config|
|
14
|
+
config.rows_per_page = 20
|
15
|
+
end
|
16
|
+
configuration.rows_per_page.must_equal 20
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -137,8 +137,10 @@ module PaginatedTable
|
|
137
137
|
|
138
138
|
describe "#tag" do
|
139
139
|
it "calls link_to on the view with the :remote option for :a tags" do
|
140
|
+
html_safe_text = stub("html_safe_text")
|
141
|
+
text = stub("text", :to_s => stub("string", :html_safe => html_safe_text))
|
140
142
|
view.expects(:link_to).
|
141
|
-
with(
|
143
|
+
with(html_safe_text, href, { :class => 'highlight', :remote => true }).
|
142
144
|
returns(link)
|
143
145
|
renderer.tag(:a, text, :class => 'highlight', :href => href).must_equal link
|
144
146
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paginated_table
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Donald Ball
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-05-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
@@ -28,9 +28,9 @@ dependencies:
|
|
28
28
|
- 3
|
29
29
|
- 2
|
30
30
|
version: "3.2"
|
31
|
-
name: rails
|
32
|
-
type: :runtime
|
33
31
|
prerelease: false
|
32
|
+
type: :runtime
|
33
|
+
name: rails
|
34
34
|
requirement: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
@@ -43,9 +43,9 @@ dependencies:
|
|
43
43
|
- 3
|
44
44
|
- 0
|
45
45
|
version: "3.0"
|
46
|
-
name: will_paginate
|
47
|
-
type: :runtime
|
48
46
|
prerelease: false
|
47
|
+
type: :runtime
|
48
|
+
name: will_paginate
|
49
49
|
requirement: *id002
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
@@ -57,9 +57,9 @@ dependencies:
|
|
57
57
|
segments:
|
58
58
|
- 0
|
59
59
|
version: "0"
|
60
|
-
name: jquery-rails
|
61
|
-
type: :runtime
|
62
60
|
prerelease: false
|
61
|
+
type: :runtime
|
62
|
+
name: jquery-rails
|
63
63
|
requirement: *id003
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
@@ -71,9 +71,9 @@ dependencies:
|
|
71
71
|
segments:
|
72
72
|
- 0
|
73
73
|
version: "0"
|
74
|
-
name: minitest
|
75
|
-
type: :development
|
76
74
|
prerelease: false
|
75
|
+
type: :development
|
76
|
+
name: minitest
|
77
77
|
requirement: *id004
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
@@ -85,9 +85,9 @@ dependencies:
|
|
85
85
|
segments:
|
86
86
|
- 0
|
87
87
|
version: "0"
|
88
|
-
name: capybara
|
89
|
-
type: :development
|
90
88
|
prerelease: false
|
89
|
+
type: :development
|
90
|
+
name: capybara
|
91
91
|
requirement: *id005
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
@@ -99,9 +99,9 @@ dependencies:
|
|
99
99
|
segments:
|
100
100
|
- 0
|
101
101
|
version: "0"
|
102
|
-
name: capybara-webkit
|
103
|
-
type: :development
|
104
102
|
prerelease: false
|
103
|
+
type: :development
|
104
|
+
name: capybara-webkit
|
105
105
|
requirement: *id006
|
106
106
|
- !ruby/object:Gem::Dependency
|
107
107
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
@@ -113,9 +113,9 @@ dependencies:
|
|
113
113
|
segments:
|
114
114
|
- 0
|
115
115
|
version: "0"
|
116
|
-
name: mocha
|
117
|
-
type: :development
|
118
116
|
prerelease: false
|
117
|
+
type: :development
|
118
|
+
name: mocha
|
119
119
|
requirement: *id007
|
120
120
|
description: Provides AJAX paginated, sorted tables in rails with will_paginate and arel
|
121
121
|
email:
|
@@ -127,6 +127,7 @@ extensions: []
|
|
127
127
|
extra_rdoc_files: []
|
128
128
|
|
129
129
|
files:
|
130
|
+
- lib/paginated_table/config.rb
|
130
131
|
- lib/paginated_table/controller_helpers.rb
|
131
132
|
- lib/paginated_table/engine.rb
|
132
133
|
- lib/paginated_table/page.rb
|
@@ -175,10 +176,14 @@ files:
|
|
175
176
|
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
176
177
|
- test/dummy/tmp/cache/assets/D25/810/sprockets%2F4ff88255fbab9775241c5d8c8c6e2088
|
177
178
|
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
179
|
+
- test/dummy/tmp/cache/assets/D4B/960/sprockets%2F67b395978dc0e3bf33d86d1723a9eba5
|
178
180
|
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
179
181
|
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
182
|
+
- test/dummy/tmp/cache/assets/D5F/7C0/sprockets%2F1dec5fa0315164b27675d43ca2ad8cf2
|
180
183
|
- test/dummy/tmp/cache/assets/D62/6D0/sprockets%2F9b8014b0c5371c3bf5dd4f018a5ec71e
|
181
184
|
- test/dummy/tmp/cache/assets/D71/1A0/sprockets%2F32c631252aee35736d93e06f3edffd6d
|
185
|
+
- test/dummy/tmp/cache/assets/D8C/030/sprockets%2F0ced4287b390f2130dfa3e2b811de0ef
|
186
|
+
- test/dummy/tmp/cache/assets/DA7/7E0/sprockets%2Ff2f62e3986a0555f3d7ce7ae16cacf27
|
182
187
|
- test/dummy/tmp/cache/assets/DD3/F90/sprockets%2Fc24290dff33aff9c3d2f971f6d8ae04b
|
183
188
|
- test/dummy/tmp/cache/assets/DD4/950/sprockets%2F09e7f24ef1ff59b4fc390bdf415c60af
|
184
189
|
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
@@ -186,6 +191,7 @@ files:
|
|
186
191
|
- test/dummy/tmp/capybara/capybara-201204041545476374284085.html
|
187
192
|
- test/integration/paginated_table_integration_test.rb
|
188
193
|
- test/test_helper.rb
|
194
|
+
- test/units/config_test.rb
|
189
195
|
- test/units/controller_helpers_test.rb
|
190
196
|
- test/units/page_test.rb
|
191
197
|
- test/units/view_helpers_test.rb
|
@@ -218,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
224
|
requirements: []
|
219
225
|
|
220
226
|
rubyforge_project:
|
221
|
-
rubygems_version: 1.8.
|
227
|
+
rubygems_version: 1.8.23
|
222
228
|
signing_key:
|
223
229
|
specification_version: 3
|
224
230
|
summary: Easy paginated, sorted tables in rails
|
@@ -260,10 +266,14 @@ test_files:
|
|
260
266
|
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
261
267
|
- test/dummy/tmp/cache/assets/D25/810/sprockets%2F4ff88255fbab9775241c5d8c8c6e2088
|
262
268
|
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
269
|
+
- test/dummy/tmp/cache/assets/D4B/960/sprockets%2F67b395978dc0e3bf33d86d1723a9eba5
|
263
270
|
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
264
271
|
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
272
|
+
- test/dummy/tmp/cache/assets/D5F/7C0/sprockets%2F1dec5fa0315164b27675d43ca2ad8cf2
|
265
273
|
- test/dummy/tmp/cache/assets/D62/6D0/sprockets%2F9b8014b0c5371c3bf5dd4f018a5ec71e
|
266
274
|
- test/dummy/tmp/cache/assets/D71/1A0/sprockets%2F32c631252aee35736d93e06f3edffd6d
|
275
|
+
- test/dummy/tmp/cache/assets/D8C/030/sprockets%2F0ced4287b390f2130dfa3e2b811de0ef
|
276
|
+
- test/dummy/tmp/cache/assets/DA7/7E0/sprockets%2Ff2f62e3986a0555f3d7ce7ae16cacf27
|
267
277
|
- test/dummy/tmp/cache/assets/DD3/F90/sprockets%2Fc24290dff33aff9c3d2f971f6d8ae04b
|
268
278
|
- test/dummy/tmp/cache/assets/DD4/950/sprockets%2F09e7f24ef1ff59b4fc390bdf415c60af
|
269
279
|
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
@@ -271,6 +281,7 @@ test_files:
|
|
271
281
|
- test/dummy/tmp/capybara/capybara-201204041545476374284085.html
|
272
282
|
- test/integration/paginated_table_integration_test.rb
|
273
283
|
- test/test_helper.rb
|
284
|
+
- test/units/config_test.rb
|
274
285
|
- test/units/controller_helpers_test.rb
|
275
286
|
- test/units/page_test.rb
|
276
287
|
- test/units/view_helpers_test.rb
|