kaminari-jets 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,650 @@
1
+ ## 1.2.2
2
+
3
+ ### Enhancements:
4
+
5
+ * Rails 7 support via [dbac7d4](https://github.com/kaminari/kaminari/commit/dbac7d476f39f8a17a35aba7e528aec7c589b3e5) and [07fafc0](https://github.com/kaminari/kaminari/commit/07fafc0561b307b6fbf40e9ec6ab52a6ec5102b4)
6
+
7
+ ### Bug Fixes:
8
+
9
+ * Restored `path_to_next_url` helper that was accidentally deleted in v1.2.0 #1027 [@ryym]
10
+ * Fixed invalid link tag HTML output from `rel_next_prev_link_tags` helper #1045 [@dlackty]
11
+ * Fixed Errno::ENOENT error for views generator on Ruby 3 #1050 [@ar31an]
12
+ * Suppress warnings about keyword args on Ruby 2.7 #1053 [@mishina]
13
+
14
+
15
+ ## 1.2.1
16
+
17
+ ### Security Fixes:
18
+
19
+ * Added `original_script_name` parameter to the ignore list: #1020 [@viseztrance]
20
+ See CVE-2020-11082 for full details.
21
+
22
+ ### Bug Fixes:
23
+
24
+ * Fixed a couple of grouped `total_count` regressions by reverting #979
25
+
26
+
27
+ ## 1.2.0
28
+
29
+ ### Deprecations:
30
+
31
+ * Deprecated `current_per_page` in favor of `limit_value`
32
+
33
+ ### Enhancements:
34
+
35
+ * Added `#url_to_next_page` and `#url_to_prev_page` helper methods: [38e95a2](https://github.com/kaminari/kaminari/commit/38e95a262a210548c4f892aaa69d09ca8ecdce7f)
36
+ * Extracted url helper methods and packed them in `Kaminari::Helpers::UrlHelper`: [ff38bee](https://github.com/kaminari/kaminari/commit/ff38bee54b5be1a948f1118c0bfd829a72a1a502)
37
+ * Improved performance of `total_count` for grouped queries by explicitly giving SQL `select` clause #979 [@MmKolodziej]
38
+ * Added `LIMIT` to `total_count` query when `max_pages` presents #981 [@rymai]
39
+
40
+ ### Bug Fixes:
41
+
42
+ * Fixed a bug where the `kaminari-mongoid` gem was not loaded properly: kaminari/kaminari-mongoid#9 [@DenniJensen]
43
+ * Fixed a bug where the `#total_count` method incorrectly calculates the total count: #932 [@tumayun]
44
+ * Fixed a bug where `empty?` breaks subsequent `last_page?` in without_count mode #1009 [@montdidier]
45
+ * Fixed kwargs warnings on Ruby 2.7 #1010 [@connorshea]
46
+
47
+
48
+ ## 1.1.1
49
+
50
+ ### Bug Fixes:
51
+
52
+ * Fixed a bug where `paginate ..., params: { controller: ..., action: ... }` didn't override the `params[:controller]` and `params[:action]` #919 [@chao-mu]
53
+
54
+
55
+ ## 1.1.0
56
+
57
+ ### Enhancements:
58
+
59
+ * Now the `page_entries_info` method respects the `I18n.locale` value when pluralizing the `entry_name` option #899 [@hundred]
60
+ * `require 'kaminari/core'` is no longer necessary when using `require 'kaminari/activerecord'` #896 [@yhara]
61
+ * Added the `#current_per_page` method to inspect current value of `per_page` #875 [#bfad]
62
+ * Better accesibility support by adding accessibility roles to pagination nav #848 [@frrrances]
63
+
64
+ ### Bug Fixes:
65
+
66
+ * Fixed an issue where the command `rails g kaminari:views ...` stopped working due to a missing require #912 [@jvsoares]
67
+ * Fixed a bug where passing in `params` to the `link_to_next_page` or `link_to_previous_page` method raises an exception #874 [@5t111111]
68
+
69
+
70
+ ## 1.0.1
71
+
72
+ ### Bug Fixes:
73
+
74
+ * Added `required_ruby_version` to the gemspec #847 [@timoschilling]
75
+
76
+ * Fixed a regression where `per(nil)` uses `max_per_page` instead of `default_per_page` #813 [@merqlove]
77
+
78
+ * Fixed a regression where passing a String to `per()` aborts with ArgumentError #849 [@rafaelgonzalez]
79
+
80
+ * Fixed a bug where calling deprecated `max_pages_per` caused an Error on Rails 4 #852 [@tsuwatch]
81
+
82
+
83
+ ## 1.0.0
84
+
85
+ ### Breaking Changes:
86
+
87
+ * Dropped Ruby 1.9 support
88
+
89
+ * Dropped Rails 3.2 support
90
+
91
+ * Dropped Rails 4.0 support
92
+
93
+ * Removed Sinatra support that has been extracted to kaminari-sinatra gem
94
+
95
+ * Removed Mongoid support that has been extracted to kaminari-mongoid gem
96
+
97
+ * Removed MongoMapper support that has been extracted to kaminari-mongo_mapper gem
98
+
99
+ * Removed DataMapper support that has been extracted to kaminari-data_mapper gem
100
+
101
+ * Extracted Grape support to kaminari-grape gem and removed it from the core
102
+
103
+ * Splitted the gem into 3 internal gems:
104
+ * The core pagination logic (kaminari-core)
105
+ * Active Record adapter (kaminari-activerecord)
106
+ * Action View adapter (kaminari-actionview)
107
+
108
+ * Removed deprecated `num_pages` API in favor of `total_pages`
109
+
110
+ * Deprecated `-e haml` and `-e slim` options for the views generator
111
+
112
+ * Renamed the model class method for configuring `max_pages` from `max_pages_per` to `max_pages`
113
+
114
+ * Raise ZeroPerPageOperation when The number of pages was incalculable of `total_pages`, `current_page` methods
115
+
116
+ ### Enhancements:
117
+
118
+ * Exposed `path_to_prev_page`, `path_to_next_page` helpers as public API #683 [@neilang]
119
+
120
+ * Added `--views_prefix` option for the views generator #668 [@antstorm]
121
+
122
+ * Added `max_paginates_per` scope method to overwrite model `max_paginates_per` config #754 [@rubyonme]
123
+
124
+ * Added `:paginator_class` option to specify a custom Paginator for `paginate` #740 [@watsonbox]
125
+
126
+ * Use I18n to pluralize entries in `page_entries_info` #694 [@Linuus]
127
+
128
+ * Added `without_count` #681 [@bryanrite]
129
+
130
+ * Omit select count query for `total_count` if it's calculable in Ruby level from loaded records
131
+
132
+ ### Bug Fixes:
133
+
134
+ * Fixed a bug that a single page gap was displayed as "…"
135
+
136
+ ```
137
+ before: ‹ 1 2 … 4 5 [6] 7 8 … 15 16 ›
138
+ after: ‹ 1 2 3 4 5 [6] 7 8 … 15 16 ›
139
+ ```
140
+
141
+ * Fixed a bug where `paginate` changes request.format #540 [@jasonkim]
142
+
143
+ * Fixed a bug where `per(nil)` didn't respect `max_per_page` configuration #800 [@jonathanhefner]
144
+
145
+ * Fixed a bug that model class' `max_paginates_per` was ignored when it's smaller than the default `per_page`
146
+
147
+ * Preserve source location of the pagination method #812 [@ka8725]
148
+
149
+ * Preserve source location of the tag helpers
150
+
151
+ * Hide Next & Last buttons if page is out of range #712 [@igorkasyanchuk]
152
+
153
+ * Always buffer with `ActionView::OutputBuffer` if Action View is loaded #804 [@onemanstartup]
154
+
155
+ * Fixed `padding()` not to accept negative value #839 [@yo-gen]
156
+
157
+ * Fixed a bug where `total_count` used to return a wrong value with larger page value than total pages in `without_count` mode #845 [@denislins]
158
+
159
+ * Coerce `padding()` argument to Integer #840 [@pablocrivella]
160
+
161
+
162
+ ## 0.17.0
163
+
164
+ * Rails 5 ready!
165
+
166
+ * Mongoid 5.0 support
167
+
168
+ * Dropped Ruby 1.8 support
169
+
170
+ * Dropped Mongoid 2.x support
171
+
172
+ * Extracted Sinatra support to kaminari-sinatra gem
173
+
174
+ * Extracted DataMapper support to kaminari-data_mapper gem
175
+
176
+ * Extracted Mongoid support to kaminari-mongoid gem
177
+
178
+ * Extracted MongoMapper support to kaminari-mongo_mapper gem
179
+
180
+ * Deprecated `Kaminari::PageScopeMethods#num_pages` in favor of `total_pages`
181
+
182
+ * Deprecated `:num_pages` option for `paginate` in favor of `:total_pages`
183
+
184
+ * Fixed mangled params in pagination links on Rails 5 #766 [@audionerd]
185
+
186
+ * Fixed a bug where the range of the records displayed on the last page doesn't match #718 [@danzanzini]
187
+
188
+
189
+ ## 0.16.3
190
+
191
+ * Fixed a "stack level too deep" bug in mongoid #642 [@bartes]
192
+
193
+ * Fixed a bug that Kaminari possibly crashes when combined with other gems that define `inherited` method on model classes, such as aasm. #651 [@zeitnot]
194
+
195
+
196
+ ## 0.16.2
197
+
198
+ * Fixed a bug where cloned Relations remember previous relations' `@total_count` value #565 [@inkstak]
199
+
200
+ * Fixed a bug where `paginate_array()` with `total_count` option returns whole array for every page #516 [@abhichvn]
201
+
202
+ * Fixed a bug where `:num_pages` option was backwards-incompatible #605 [@klebershimabuku]
203
+
204
+ * Fixed a bug where themed views generator attempts to overwrite README.md #623 [@swrobel]
205
+
206
+ * Fixed a bug that ruby raises a NameError when theme was not found #622 [@maxprokopiev]
207
+
208
+ * Fixed a bug that `paginates_per` does not work with subclasses on mongoid #634 [@kouyaf77]
209
+
210
+ * Show an error message if a proper template was not found for the generator theme #600 [@meltedice]
211
+
212
+
213
+ ## 0.16.1
214
+
215
+ * Fix a bug where `:theme` option for #paginate method doesn't work properly #566 [@commstratdev]
216
+
217
+
218
+ ## 0.16.0
219
+
220
+ * Add support for mongoid `max_scan` option #500 [@aptx4869]
221
+
222
+ * Add `link_to_previous_page` helper for Sinatra #504 [@ikeay]
223
+
224
+ * Add `:views_prefix` option to `#paginate` for alternative views directory #552 [@apotonick]
225
+
226
+ * Simplify `page_entries_info` by adding `entry_name` interface to each ORM
227
+
228
+ * Refer ActiveRecord::Base from top level namespace for more safety when inherited class's namespace has `ActiveRecord` constant #522 [@yuroyoro]
229
+
230
+ * Fix a bug where runtime persistence not taken into account with mongoid/kaminari #326 [@nubeod]
231
+
232
+ * Fix a bug where helper methods were not available from inside `paginator.render do ... end` block #239 [@damien-roche]
233
+
234
+ * Fix a bug where theme generator didn't work on Rails 4.1 #526 [@jimryan]
235
+
236
+ * Fix a bug that paginatable arrays with `total_count` option always returns whole array #516 [@abhichvn]
237
+
238
+
239
+ ## 0.15.1
240
+
241
+ * `page_method_name` option was not working in 0.15.0 #481 [@mauriciopasquier]
242
+
243
+ * Use the mongoid criteria #length method to cache the count of the collection per criteria #484 [@camallen]
244
+
245
+ * Don't inherit `host`, `port`, and `protocol` from the given params
246
+
247
+
248
+ ## 0.15.0
249
+
250
+ * Allow `count`, `total_count` to pass parameters to super #193 [@bsimpson]
251
+
252
+ * Add `max_pages` and `max_pages_per` methods to limit displayed pages per model or globally #301 [@zpieslak]
253
+
254
+ * Add support for Sinatra views overrides (add app views paths) #332 [@j15e]
255
+
256
+ * Fix wrong pagination when used with `padding` #359 [@vladimir-vg, @negipo]
257
+
258
+ * check for Hash in addition to OrderedHash, which seems to break in Rails 4, for total_count #369 [@aew]
259
+
260
+ * Make `to_s` in paginator threadsafe #374 [@bf4]
261
+
262
+ * Fix Missing partial Error when `paginate` called from different format template #381 [@joker1007]
263
+
264
+ * Add `PageScopeMethods#next_page`, `prev_page`, and `out_of_range?` [@yuki24]
265
+
266
+ * Use `html_safe` in view partials instead of `raw` fixed #73 [@zzak]
267
+
268
+ * Fix a bug that `PaginatableArray#total_pages` returns the wrong value #416 [@yuki24]
269
+
270
+ * Make `num_pages` to return the same value as `total_pages` for backward compat [@yuki24, @eitoball]
271
+
272
+ * Change `#page_entries_info` to use model name #340, #348 [@znz, @eitoball]
273
+
274
+ * Change scope to class method #433 [@kolodovskyy]
275
+
276
+ * Fix arity problem with Rails 4.1.0 #449 [@bricker]
277
+
278
+
279
+ ## 0.14.1
280
+
281
+ * Changed the default "truncation" String from "..." to "…" #264 [@pjaspers]
282
+
283
+ * The theme generator is Github API v3 compatible now! #279 [@eitoball]
284
+
285
+ * Made `Kaminari.config.default_per_page` changeable again #280 [@yuki24]
286
+
287
+
288
+ ## 0.14.0
289
+
290
+ * Grape framework support! #218 [@mrplum]
291
+
292
+ * Mongoid 3 ready! #238 [@shingara]
293
+
294
+ * Added `link_to_previous_page` helper #191 [@timgremore]
295
+
296
+ * Added helper to generate rel="next" and rel="prev" link tags for SEO #200 [@joe1chen]
297
+
298
+ * Added `max_per_page` configuration option #274 [@keiko0713]
299
+
300
+ This would be useful for the case when you are using user input `per_page` value but want to impose the upper bound.
301
+
302
+ * Added I18n to `page_entries_info` #207 [@plribeiro3000]
303
+
304
+ * Changed method name `num_pages` to `total_pages`
305
+
306
+ `num_pages` is still available as an alias of `total_pages`, but will be deprecated or removed in some future version.
307
+
308
+ * Changed the way `page_entries_info` behave so it can show appropriate names for models with namespace #207 [@plribeiro3000]
309
+
310
+ * Added `html_safe` to `page_entries_info` helper #190 [@lucapette]
311
+
312
+ * Fixed displayed number of items on each page w/ Mongoid 2.4.x and MongoMapper #194 [@dblock]
313
+
314
+ * Removed a unused local variable from templates from default tamplate #245 [@juno]
315
+
316
+ * Fixed `page_entry_info` to use the value of `entry_name` option when given collection is empty or a PaginatableArray #265, #277 [@eitoball]
317
+
318
+ * Added require 'dm-aggregates' in DataMapper hook #259 [@shingara]
319
+
320
+
321
+ ## 0.13.0
322
+
323
+ * Rails 3.2 ready! #180 [@slbug]
324
+
325
+ * DataMapper support! #149 [@NoICE, @Ragmaanir]
326
+
327
+ * Sinatra & Padrino support! #179 [@udzura, @mlightner, @aereal]
328
+
329
+ * Added mongoid embedded documents support! #155 [@yuki24]
330
+
331
+ * Added `each_relevant_page` that only visits pages in the inner or outer windows. Performance improved, particularly with very large number of pages. #154 [@cbeer]
332
+
333
+ * Memoize count for AR when calling `total_count`. Increases performance for large datasets. #138 [@sarmiena]
334
+
335
+ * Added `page_entries_info` view helper #140 [@jeffreyiacono]
336
+ ```
337
+ <%= page_entries_info @posts %>
338
+ #=> Displaying posts 6 - 10 of 26 in total
339
+ ```
340
+
341
+ * Added `link_to_next_page` helper method that simply links to the next page
342
+ ```
343
+ <%= link_to_next_page @posts, 'More' %>
344
+ #=> <a href="/posts?page=7" rel="next">More</a>
345
+ ```
346
+
347
+ * Let one override the `rel` attribute for `link_to_next_page` helper #177 [@webmat]
348
+
349
+ * Added `total_count` param for PaginatableArray. Useful for when working with RSolr #141 [@samdalton]
350
+
351
+ * Changed `Kaminari.paginate_array` API to take a Hash `options` And specifying :limit & :offset immediately builds a pagination ready object
352
+ ```ruby
353
+ # the following two are equivalent. Use whichever you like
354
+ Kaminari.paginate_array((1..100).to_a, limit: 10, offset: 10)
355
+ Kaminari.paginate_array((1..100).to_a).page(2).per(10)
356
+ ```
357
+
358
+ * Added `padding` method to skip an arbitrary record count #60 [@aaronjensen]
359
+ ```ruby
360
+ User.page(2).per(10).padding(3) # this will return users 14..23
361
+ ```
362
+
363
+ * Made the pagination method name (defaulted to `page`) configurable #57, #162
364
+ ```ruby
365
+ # you can use the config file and its generator for this
366
+ Kaminari.config.page_method_name = :paging
367
+ Article.paging(3).per(30)
368
+ ```
369
+
370
+ * Only add extensions to direct descendents of ActiveRecord::Base #108 [@seejohnrun]
371
+
372
+ * AR models that were subclassed before Kaminari::ActiveRecordExtension is included pick up the extensions #119 [@pivotal-casebook]
373
+
374
+ * Avoid overwriting AR::Base inherited method #165 [@briandmcnabb]
375
+
376
+ * Stopped depending on Rails gem #159 [@alsemyonov]
377
+
378
+ * introduced Travis CI #181 [@hsbt]
379
+
380
+
381
+ ## 0.12.4
382
+
383
+ * Support for `config.param_name` as lambda #102 [@ajrkerr]
384
+
385
+ * Stop duplicating `order_values` #65 [@zettabyte]
386
+
387
+ * Preserve select value (e.g. "distinct") when counting #77, #104 [@tbeauvais, @beatlevic]
388
+
389
+
390
+ ## 0.12.3
391
+
392
+ * Haml 3.1 Support #96 [@FlyboyArt, @sonic921]
393
+
394
+
395
+ ## 0.12.2
396
+
397
+ * Added MongoMapper Support #101 [@hamin]
398
+
399
+ * Add `first_page?` and `last_page?` to `page_scope_methods` #51 [@holinnn]
400
+
401
+ * Make sure that the paginate helper always returns a String #99 [@Draiken]
402
+
403
+ * Don't remove includes scopes from count if they are needed #100 [@flop]
404
+
405
+
406
+ ## 0.12.1
407
+
408
+ * Slim template support #93 [@detrain]
409
+
410
+ * Use Kaminari.config to specify default value for `param_name` #94 [@avsej]
411
+
412
+ * Fixed "super called outside of method" error happened in particular versions of Ruby 1.8.7 #91 [@Skulli]
413
+
414
+ * `_paginate.html.erb` isn't rendered with custom theme #97 [@danlunde]
415
+
416
+
417
+ ## 0.12.0
418
+
419
+ * General configuration options #41 #62 [@javierv, @iain]
420
+
421
+ You can now globally override some default values such as `default_per_page`, `window`, etc. via configuration file.
422
+ Also, here comes a generator command that generates the default configuration file into your app's config/initilizers directory.
423
+
424
+ * Generic pagination support for Array object #47 #68 #74 [@lda, @ened, @jianlin]
425
+
426
+ You can now paginate through any kind of Arrayish object in this way:
427
+ ```ruby
428
+ Kaminari.paginate_array(my_array_object).page(params[:page]).per(10)
429
+ ```
430
+
431
+ * Fixed a serious performance regression on #count method in 0.11.0 [@ankane]
432
+
433
+ * Bugfix: Pass the real @params to `url_for` #90 [@utkarshkukreti]
434
+
435
+ * Fixed a gem packaging problem (circular dependency)
436
+
437
+ There was a packaging problem with Kaminari 0.11.0 that the gem depends on Kaminari gem. Maybe Jeweler + "gemspec" method didn't work well...
438
+
439
+
440
+ ## 0.11.0
441
+
442
+ This release contains several backward incompatibilities on template API. You probably need to update your existing templates if you're already using your own custom theme.
443
+
444
+ * Merge `_current_page`, `_first_page_link`, `_last_page_link` and `_page_link` into one `_page` partial #28 [@GarthSnyder]
445
+
446
+ * Add real first/last page links, and use them by default instead of outer window #30 [@GarthSnyder]
447
+
448
+ * The disabled items should simply not be emitted, even as an empty span #30 [@GarthSnyder]
449
+
450
+ * Skip :order in `#count_all` so complex groups with generated columns don't blow up in SQL-land #61 [@keeran, @Empact]
451
+
452
+ * Ignore :include in `#count_all` to make it work better with polymorphic eager loading #80 [@njakobsen]
453
+
454
+ * Quick fix on `#count` to return the actual number of records on AR 3.0 #45 #50
455
+
456
+ * Removed "TERRIBLE HORRIBLE NO GOOD VERY BAD HACK" #82 [@janx, @flop, @pda]
457
+
458
+ * Allow for Multiple Themes #64 [@tmilewski]
459
+
460
+ * Themes can contain the whole application directory structure now
461
+
462
+ * Use `gemspec` method in Gemfile [@p_elliott]
463
+
464
+
465
+ ## 0.10.4
466
+
467
+ * Do not break ActiveRecord::Base.descendants, by making sure to call super from ActiveRecord::Base.inherited #34 [@rolftimmermans]
468
+
469
+ * Fixed vanishing mongoid criteria after calling `page()` #26 [@tyok]
470
+
471
+
472
+ ## 0.10.3
473
+
474
+ * Fixed a bug that `total_count()` didn't work when chained with `group()` scope #21 [@jgeiger]
475
+
476
+ * Fixed a bug that the paginate helper didn't work properly with an Ajax call #23 [@hjuskewycz]
477
+
478
+
479
+ ## 0.10.2
480
+
481
+ * Added `:param_name` option to the pagination helper #10 [@ivanvr]
482
+
483
+ ```haml
484
+ = paginate @users, :param_name => :pagina
485
+ ```
486
+
487
+
488
+ ## 0.10.1
489
+
490
+ * Fixed a bug that the whole `<nav>` section was not rendered in some cases [@GarthSnyder]
491
+
492
+
493
+ ## 0.10.0
494
+
495
+ * Railtie initializer name is "kaminari" from now
496
+
497
+ * Changed bundler settings to work both on 1.9.2 and 1.8.7 #12 [@l15n]
498
+
499
+ * Fixed bugs encountered when running specs on Ruby 1.9.2 #12 [@l15n]
500
+
501
+ * Clean up documentation (formatting and editing) #12 [@l15n]
502
+
503
+ * Use `Proc.new` instead of lambda for `scoped_options` #13 [@l15n]
504
+
505
+ * Use AS hooks for loading AR #14 [@hasimo]
506
+
507
+ * Refactor scope definition with Concerns #15 [@l15n]
508
+
509
+ * Ensure `output_buffer` is always initialized #11 [@kichiro]
510
+
511
+
512
+ ## 0.9.13
513
+
514
+ * Added Mongoid support #5 [@juno, @hibariya]
515
+
516
+ This means, Kaminari is now *ORM agnostic* ☇3☇3☇3
517
+
518
+
519
+ ## 0.9.12
520
+
521
+ * Moved the whole pagination logic to the paginator partial so that users can touch it
522
+
523
+ Note: You need to update your `_paginator.html.*` if you've already customized it.
524
+ If you haven't overridden `_paginator.html.*` files, then probably there're nothing you have to do.
525
+ See this commit for the example: https://github.com/amatsuda/kaminari_themes/commit/2dfb41c
526
+
527
+ ## 0.9.10
528
+
529
+ * the `per()` method accepts String, zero and minus value now #7 [@koic]
530
+
531
+ This enables you to do something like this:
532
+ ```ruby
533
+ Model.page(params[:page]).per(params[:per])
534
+ ```
535
+
536
+ * Added support for Gem Testers (http://gem-testers.org/) #8 [@joealba]
537
+
538
+
539
+ ## 0.9.9
540
+
541
+ * `:params` option for the helper [@yomukaku_memo]
542
+
543
+ You can override each link's `url_for` option by this option
544
+ ```haml
545
+ = paginate @users, :params => {:controller => 'users', :action => 'index2'}
546
+ ```
547
+
548
+ * refactor tags
549
+
550
+
551
+ ## 0.9.8
552
+
553
+ * I18n for the partials `:previous`, `:next`, and `:truncate` are externalized to the I18n resource.
554
+
555
+
556
+ ## 0.9.7
557
+
558
+ * moved template themes to another repo https://github.com/amatsuda/kaminari_themes
559
+
560
+
561
+ ## 0.9.6
562
+
563
+ * added `paginates_per` method for setting default `per_page` value for each model in a declarative way
564
+
565
+ ```ruby
566
+ class Article < ActiveRecord::Base
567
+ paginates_per 10
568
+ end
569
+ ```
570
+
571
+
572
+ ## 0.9.5
573
+
574
+ * works on AR 3.0.0 and 3.0.1 now #4 [@danillos]
575
+
576
+
577
+ ## 0.9.4
578
+
579
+ * introduced module based tags
580
+
581
+ As a side effect of this internal change, I have to confess that this version brings you a slight backward incompatibility on template API.
582
+ If you're using custom templates, be sure to update your existing templates. To catch up the new API, you need to update %w[next_url prev_url page_url] local variables to simple 'url' like this. https://github.com/amatsuda/kaminari/commit/da88729
583
+
584
+
585
+ ## 0.9.3
586
+
587
+ * improved template detection logic
588
+
589
+ When a template for a tag could not be found in the app/views/kaminari/ directory, it searches the tag's ancestor template files before falling back to engine's default template. This may help keeping your custom templates DRY.
590
+
591
+ * simplified bundled template themes
592
+
593
+
594
+ ## 0.9.2
595
+
596
+ * stop adding extra LF between templates when joining
597
+
598
+ * githubish template theme [@maztomo]
599
+
600
+
601
+ ## 0.9.1
602
+
603
+ * googlish template theme [@maztomo]
604
+
605
+
606
+ ## 0.9.0
607
+
608
+ * added `per_page` to the template local variables #3 [@hsbt]
609
+
610
+ * show no contents when the current page is the only page (in other words, `num_pages == 1`) #2 [@hsbt]
611
+
612
+
613
+ ## 0.8.0
614
+
615
+ * using HTML5 `<nav>` tag rather than `<div>` for the container tag
616
+
617
+
618
+ ## 0.7.0
619
+
620
+ * Ajaxified paginator templates
621
+
622
+
623
+ ## 0.6.0
624
+
625
+ * Hamlized paginator templates
626
+
627
+
628
+ ## 0.5.0
629
+
630
+ * reset `content_for :kaminari_paginator_tags` before rendering #1 [@hsbt]
631
+
632
+
633
+ ## 0.4.0
634
+
635
+ * partialize the outer div
636
+
637
+
638
+ ## 0.3.0
639
+
640
+ * suppress logging when rendering each partial
641
+
642
+
643
+ ## 0.2.0
644
+
645
+ * default `PER_PAGE` to 25 [@hsbt]
646
+
647
+
648
+ ## 0.1.0
649
+
650
+ * First release
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,22 @@
1
+ Kaminari is a volunteer effort. We encourage you to pitch in.
2
+
3
+ __*We only accept bug reports and pull requests in GitHub*__. Join the team!
4
+
5
+ * If you have a support question about how to use kaminari, please [ask on StackOverflow](http://stackoverflow.com/search?tab=newest&q=kaminari).
6
+ * Bug reports should include the following:
7
+ - Minimal example of code to reproduce the bug
8
+ - Stacktrace
9
+ - What you expected to see, and what you actually saw.
10
+
11
+ * Feature requests should be accompanied by a patch, that includes tests.
12
+ * We won't accept any feature requests that come without a patch.
13
+
14
+ In addition, we generally don't accept requests that fall within one or more of the following categories:
15
+
16
+ * Requests without any legitimate use cases
17
+ * Requests for which the primary goal is to make a certain piece of code consistent
18
+ * [Cosmetic changes](https://github.com/rails/rails/pull/13771#issuecomment-32746700)
19
+
20
+ Thanks! :heart: :heart: :heart:
21
+
22
+ Kaminari Team
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in kaminari.gemspec
6
+ gemspec
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Akira Matsuda
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.