kaminari 1.1.0

This diff has not been reviewed by any users.

Potentially problematic release.


This version of kaminari might be problematic. Click here for more details.

Log in in order to be able to vote.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e327d193e7503f8605000e9f9b50d8a49ad1b5891db7b63f2a2b52e17570f3f0
4
+ data.tar.gz: 83d6e7245420c50fd8678fdefbe4ba923df61d3b85c0b7439e1c55880e09c5bd
5
+ SHA512:
6
+ metadata.gz: 3192413803fb8dcd518b0412ebd3d0d008692f4ced0576f1c5887ed36d5b45d0c067a029187b0be84fc701fcbf3240a72c90431f8bdf5dc363d85dda5e340980
7
+ data.tar.gz: '018fa6b74c07c7e77ef824b53354818305fe096d6aeaaecf0a76d28df3953b9d8b4ad287ecc96142efc33746b1d8beb8ed844722173510671e4c053a99c99c46'
@@ -0,0 +1,19 @@
1
+ ---
2
+ engines:
3
+ duplication:
4
+ enabled: true
5
+ config:
6
+ languages:
7
+ - ruby
8
+ fixme:
9
+ enabled: true
10
+ rubocop:
11
+ enabled: true
12
+ ratings:
13
+ paths:
14
+ - "**.rb"
15
+ exclude_paths:
16
+ - test/
17
+ - "*/test/"
18
+ - "**/*.gemspec"
19
+ - "**/*.md"
@@ -0,0 +1,2 @@
1
+ lib/**/*.rb
2
+ MIT-LICENSE
@@ -0,0 +1,10 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ gemfiles/*.lock
5
+ coverage/*
6
+ pkg/*
7
+
8
+ doc
9
+ log
10
+ *.sqlite3
@@ -0,0 +1,56 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.4.2
5
+ - 2.3.5
6
+ - ruby-head
7
+ - jruby-9.1.13.0
8
+ # - rbx-3
9
+
10
+ gemfile:
11
+ - gemfiles/active_record_51.gemfile
12
+ - gemfiles/active_record_50.gemfile
13
+ - gemfiles/active_record_42.gemfile
14
+ - gemfiles/active_record_41.gemfile
15
+ - gemfiles/active_record_edge.gemfile
16
+
17
+ env:
18
+ - DB=sqlite3
19
+ - DB=postgresql
20
+ - DB=mysql
21
+
22
+ sudo: false
23
+
24
+ before_install:
25
+ - gem update --system
26
+ - gem update bundler --no-document
27
+ script: 'bundle exec rake test'
28
+
29
+ cache: bundler
30
+
31
+ matrix:
32
+ exclude:
33
+ - rvm: 2.4.2
34
+ gemfile: gemfiles/active_record_42.gemfile
35
+ - rvm: 2.4.2
36
+ gemfile: gemfiles/active_record_41.gemfile
37
+ - rvm: ruby-head
38
+ gemfile: gemfiles/active_record_42.gemfile
39
+ - rvm: ruby-head
40
+ gemfile: gemfiles/active_record_41.gemfile
41
+ include:
42
+ - rvm: 2.2.8
43
+ gemfile: gemfiles/active_record_51.gemfile
44
+ env: DB=sqlite3
45
+ - rvm: 2.1.10
46
+ gemfile: gemfiles/active_record_42.gemfile
47
+ env: DB=sqlite3
48
+ - rvm: 2.0.0
49
+ gemfile: gemfiles/active_record_42.gemfile
50
+ env: DB=sqlite3
51
+ allow_failures:
52
+ - rvm: ruby-head
53
+ - rvm: jruby-9.1.13.0
54
+ # - rvm: rbx-3
55
+ - gemfile: gemfiles/active_record_edge.gemfile
56
+ fast_finish: true
@@ -0,0 +1,594 @@
1
+ ## 1.1.0
2
+
3
+ ### Enhancements:
4
+
5
+ * Now the `page_entries_info` method respects the `I18n.locale` value when pluralizing the `entry_name` option #899 [@hundred]
6
+ * `require 'kaminari/core'` is no longer necessary when using `require 'kaminari/activerecord'` #896 [@yhara]
7
+ * Added the `#current_per_page` method to inspect current value of `per_page` #875 [#bfad]
8
+ * Better accesibility support by adding accessibility roles to pagination nav #848 [@frrrances]
9
+
10
+ ### Bug Fixes:
11
+
12
+ * Fixed an issue where the command `rails g kaminari:views ...` stopped working due to a missing require #912 [@jvsoares]
13
+ * Fixed a bug where passing in `params` to the `link_to_next_page` or `link_to_previous_page` method raises an exception #874 [@5t111111]
14
+
15
+
16
+ ## 1.0.1
17
+
18
+ ### Bug Fixes:
19
+
20
+ * Added `required_ruby_version` to the gemspec #847 [@timoschilling]
21
+
22
+ * Fixed a regression where `per(nil)` uses `max_per_page` instead of `default_per_page` #813 [@merqlove]
23
+
24
+ * Fixed a regression where passing a String to `per()` aborts with ArgumentError #849 [@rafaelgonzalez]
25
+
26
+ * Fixed a bug where calling deprecated `max_pages_per` caused an Error on Rails 4 #852 [@tsuwatch]
27
+
28
+
29
+ ## 1.0.0
30
+
31
+ ### Breaking Changes:
32
+
33
+ * Dropped Ruby 1.9 support
34
+
35
+ * Dropped Rails 3.2 support
36
+
37
+ * Dropped Rails 4.0 support
38
+
39
+ * Removed Sinatra support that has been extracted to kaminari-sinatra gem
40
+
41
+ * Removed Mongoid support that has been extracted to kaminari-mongoid gem
42
+
43
+ * Removed MongoMapper support that has been extracted to kaminari-mongo_mapper gem
44
+
45
+ * Removed DataMapper support that has been extracted to kaminari-data_mapper gem
46
+
47
+ * Extracted Grape support to kaminari-grape gem and removed it from the core
48
+
49
+ * Splitted the gem into 3 internal gems:
50
+ * The core pagination logic (kaminari-core)
51
+ * Active Record adapter (kaminari-activerecord)
52
+ * Action View adapter (kaminari-actionview)
53
+
54
+ * Removed deprecated `num_pages` API in favor of `total_pages`
55
+
56
+ * Deprecated `-e haml` and `-e slim` options for the views generator
57
+
58
+ * Renamed the model class method for configuring `max_pages` from `max_pages_per` to `max_pages`
59
+
60
+ ### Enhancements:
61
+
62
+ * Exposed `path_to_prev_page`, `path_to_next_page` helpers as public API #683 [@neilang]
63
+
64
+ * Added `--views_prefix` option for the views generator #668 [@antstorm]
65
+
66
+ * Added `max_paginates_per` scope method to overwrite model `max_paginates_per` config #754 [@rubyonme]
67
+
68
+ * Added `:paginator_class` option to specify a custom Paginator for `paginate` #740 [@watsonbox]
69
+
70
+ * Use I18n to pluralize entries in `page_entries_info` #694 [@Linuus]
71
+
72
+ * Added `without_count` #681 [@bryanrite]
73
+
74
+ * Omit select count query for `total_count` if it's calculable in Ruby level from loaded records
75
+
76
+ ### Bug Fixes:
77
+
78
+ * Fixed a bug that a single page gap was displayed as "…"
79
+
80
+ ```
81
+ before: ‹ 1 2 … 4 5 [6] 7 8 … 15 16 ›
82
+ after: ‹ 1 2 3 4 5 [6] 7 8 … 15 16 ›
83
+ ```
84
+
85
+ * Fixed a bug where `paginate` changes request.format #540 [@jasonkim]
86
+
87
+ * Fixed a bug where `per(nil)` didn't respect `max_per_page` configuration #800 [@jonathanhefner]
88
+
89
+ * Fixed a bug that model class' `max_paginates_per` was ignored when it's smaller than the default `per_page`
90
+
91
+ * Preserve source location of the pagination method #812 [@ka8725]
92
+
93
+ * Preserve source location of the tag helpers
94
+
95
+ * Hide Next & Last buttons if page is out of range #712 [@igorkasyanchuk]
96
+
97
+ * Always buffer with `ActionView::OutputBuffer` if Action View is loaded #804 [@onemanstartup]
98
+
99
+ * Fixed `padding()` not to accept negative value #839 [@yo-gen]
100
+
101
+ * 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]
102
+
103
+ * Coerce `padding()` argument to Integer #840 [@pablocrivella]
104
+
105
+
106
+ ## 0.17.0
107
+
108
+ * Rails 5 ready!
109
+
110
+ * Mongoid 5.0 support
111
+
112
+ * Dropped Ruby 1.8 support
113
+
114
+ * Dropped Mongoid 2.x support
115
+
116
+ * Extracted Sinatra support to kaminari-sinatra gem
117
+
118
+ * Extracted DataMapper support to kaminari-data_mapper gem
119
+
120
+ * Extracted Mongoid support to kaminari-mongoid gem
121
+
122
+ * Extracted MongoMapper support to kaminari-mongo_mapper gem
123
+
124
+ * Deprecated `Kaminari::PageScopeMethods#num_pages` in favor of `total_pages`
125
+
126
+ * Deprecated `:num_pages` option for `paginate` in favor of `:total_pages`
127
+
128
+ * Fixed mangled params in pagination links on Rails 5 #766 [@audionerd]
129
+
130
+ * Fixed a bug where the range of the records displayed on the last page doesn't match #718 [@danzanzini]
131
+
132
+
133
+ ## 0.16.3
134
+
135
+ * Fixed a "stack level too deep" bug in mongoid #642 [@bartes]
136
+
137
+ * Fixed a bug that Kaminari possibly crashes when combined with other gems that define `inherited` method on model classes, such as aasm. #651 [@zeitnot]
138
+
139
+
140
+ ## 0.16.2
141
+
142
+ * Fixed a bug where cloned Relations remember previous relations' `@total_count` value #565 [@inkstak]
143
+
144
+ * Fixed a bug where `paginate_array()` with `total_count` option returns whole array for every page #516 [@abhichvn]
145
+
146
+ * Fixed a bug where `:num_pages` option was backwards-incompatible #605 [@klebershimabuku]
147
+
148
+ * Fixed a bug where themed views generator attempts to overwrite README.md #623 [@swrobel]
149
+
150
+ * Fixed a bug that ruby raises a NameError when theme was not found #622 [@maxprokopiev]
151
+
152
+ * Fixed a bug that `paginates_per` does not work with subclasses on mongoid #634 [@kouyaf77]
153
+
154
+ * Show an error message if a proper template was not found for the generator theme #600 [@meltedice]
155
+
156
+
157
+ ## 0.16.1
158
+
159
+ * Fix a bug where `:theme` option for #paginate method doesn't work properly #566 [@commstratdev]
160
+
161
+
162
+ ## 0.16.0
163
+
164
+ * Add support for mongoid `max_scan` option #500 [@aptx4869]
165
+
166
+ * Add `link_to_previous_page` helper for Sinatra #504 [@ikeay]
167
+
168
+ * Add `:views_prefix` option to `#paginate` for alternative views directory #552 [@apotonick]
169
+
170
+ * Simplify `page_entries_info` by adding `entry_name` interface to each ORM
171
+
172
+ * Refer ActiveRecord::Base from top level namespace for more safety when inherited class's namespace has `ActiveRecord` constant #522 [@yuroyoro]
173
+
174
+ * Fix a bug where runtime persistence not taken into account with mongoid/kaminari #326 [@nubeod]
175
+
176
+ * Fix a bug where helper methods were not available from inside `paginator.render do ... end` block #239 [@damien-roche]
177
+
178
+ * Fix a bug where theme generator didn't work on Rails 4.1 #526 [@jimryan]
179
+
180
+ * Fix a bug that paginatable arrays with `total_count` option always returns whole array #516 [@abhichvn]
181
+
182
+
183
+ ## 0.15.1
184
+
185
+ * `page_method_name` option was not working in 0.15.0 #481 [@mauriciopasquier]
186
+
187
+ * Use the mongoid criteria #length method to cache the count of the collection per criteria #484 [@camallen]
188
+
189
+ * Don't inherit `host`, `port`, and `protocol` from the given params
190
+
191
+
192
+ ## 0.15.0
193
+
194
+ * Allow `count`, `total_count` to pass parameters to super #193 [@bsimpson]
195
+
196
+ * Add `max_pages` and `max_pages_per` methods to limit displayed pages per model or globally #301 [@zpieslak]
197
+
198
+ * Add support for Sinatra views overrides (add app views paths) #332 [@j15e]
199
+
200
+ * Fix wrong pagination when used with `padding` #359 [@vladimir-vg, @negipo]
201
+
202
+ * check for Hash in addition to OrderedHash, which seems to break in Rails 4, for total_count #369 [@aew]
203
+
204
+ * Make `to_s` in paginator threadsafe #374 [@bf4]
205
+
206
+ * Fix Missing partial Error when `paginate` called from different format template #381 [@joker1007]
207
+
208
+ * Add `PageScopeMethods#next_page`, `prev_page`, and `out_of_range?` [@yuki24]
209
+
210
+ * Use `html_safe` in view partials instead of `raw` fixed #73 [@zzak]
211
+
212
+ * Fix a bug that `PaginatableArray#total_pages` returns the wrong value #416 [@yuki24]
213
+
214
+ * Make `num_pages` to return the same value as `total_pages` for backward compat [@yuki24, @eitoball]
215
+
216
+ * Change `#page_entries_info` to use model name #340, #348 [@znz, @eitoball]
217
+
218
+ * Change scope to class method #433 [@kolodovskyy]
219
+
220
+ * Fix arity problem with Rails 4.1.0 #449 [@bricker]
221
+
222
+
223
+ ## 0.14.1
224
+
225
+ * Changed the default "truncation" String from "..." to "…" #264 [@pjaspers]
226
+
227
+ * The theme generator is Github API v3 compatible now! #279 [@eitoball]
228
+
229
+ * Made `Kaminari.config.default_per_page` changeable again #280 [@yuki24]
230
+
231
+
232
+ ## 0.14.0
233
+
234
+ * Grape framework support! #218 [@mrplum]
235
+
236
+ * Mongoid 3 ready! #238 [@shingara]
237
+
238
+ * Added `link_to_previous_page` helper #191 [@timgremore]
239
+
240
+ * Added helper to generate rel="next" and rel="prev" link tags for SEO #200 [@joe1chen]
241
+
242
+ * Added `max_per_page` configuration option #274 [@keiko0713]
243
+
244
+ This would be useful for the case when you are using user input `per_page` value but want to impose the upper bound.
245
+
246
+ * Added I18n to `page_entries_info` #207 [@plribeiro3000]
247
+
248
+ * Changed method name `num_pages` to `total_pages`
249
+
250
+ `num_pages` is still available as an alias of `total_pages`, but will be deprecated or removed in some future version.
251
+
252
+ * Changed the way `page_entries_info` behave so it can show appropriate names for models with namespace #207 [@plribeiro3000]
253
+
254
+ * Added `html_safe` to `page_entries_info` helper #190 [@lucapette]
255
+
256
+ * Fixed displayed number of items on each page w/ Mongoid 2.4.x and MongoMapper #194 [@dblock]
257
+
258
+ * Removed a unused local variable from templates from default tamplate #245 [@juno]
259
+
260
+ * Fixed `page_entry_info` to use the value of `entry_name` option when given collection is empty or a PaginatableArray #265, #277 [@eitoball]
261
+
262
+ * Added require 'dm-aggregates' in DataMapper hook #259 [@shingara]
263
+
264
+
265
+ ## 0.13.0
266
+
267
+ * Rails 3.2 ready! #180 [@slbug]
268
+
269
+ * DataMapper support! #149 [@NoICE, @Ragmaanir]
270
+
271
+ * Sinatra & Padrino support! #179 [@udzura, @mlightner, @aereal]
272
+
273
+ * Added mongoid embedded documents support! #155 [@yuki24]
274
+
275
+ * 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]
276
+
277
+ * Memoize count for AR when calling `total_count`. Increases performance for large datasets. #138 [@sarmiena]
278
+
279
+ * Added `page_entries_info` view helper #140 [@jeffreyiacono]
280
+ ```
281
+ <%= page_entries_info @posts %>
282
+ #=> Displaying posts 6 - 10 of 26 in total
283
+ ```
284
+
285
+ * Added `link_to_next_page` helper method that simply links to the next page
286
+ ```
287
+ <%= link_to_next_page @posts, 'More' %>
288
+ #=> <a href="/posts?page=7" rel="next">More</a>
289
+ ```
290
+
291
+ * Let one override the `rel` attribute for `link_to_next_page` helper #177 [@webmat]
292
+
293
+ * Added `total_count` param for PaginatableArray. Useful for when working with RSolr #141 [@samdalton]
294
+
295
+ * Changed `Kaminari.paginate_array` API to take a Hash `options` And specifying :limit & :offset immediately builds a pagination ready object
296
+ ```ruby
297
+ # the following two are equivalent. Use whichever you like
298
+ Kaminari.paginate_array((1..100).to_a, limit: 10, offset: 10)
299
+ Kaminari.paginate_array((1..100).to_a).page(2).per(10)
300
+ ```
301
+
302
+ * Added `padding` method to skip an arbitrary record count #60 [@aaronjensen]
303
+ ```ruby
304
+ User.page(2).per(10).padding(3) # this will return users 14..23
305
+ ```
306
+
307
+ * Made the pagination method name (defaulted to `page`) configurable #57, #162
308
+ ```ruby
309
+ # you can use the config file and its generator for this
310
+ Kaminari.config.page_method_name = :paging
311
+ Article.paging(3).per(30)
312
+ ```
313
+
314
+ * Only add extensions to direct descendents of ActiveRecord::Base #108 [@seejohnrun]
315
+
316
+ * AR models that were subclassed before Kaminari::ActiveRecordExtension is included pick up the extensions #119 [@pivotal-casebook]
317
+
318
+ * Avoid overwriting AR::Base inherited method #165 [@briandmcnabb]
319
+
320
+ * Stopped depending on Rails gem #159 [@alsemyonov]
321
+
322
+ * introduced Travis CI #181 [@hsbt]
323
+
324
+
325
+ ## 0.12.4
326
+
327
+ * Support for `config.param_name` as lambda #102 [@ajrkerr]
328
+
329
+ * Stop duplicating `order_values` #65 [@zettabyte]
330
+
331
+ * Preserve select value (e.g. "distinct") when counting #77, #104 [@tbeauvais, @beatlevic]
332
+
333
+
334
+ ## 0.12.3
335
+
336
+ * Haml 3.1 Support #96 [@FlyboyArt, @sonic921]
337
+
338
+
339
+ ## 0.12.2
340
+
341
+ * Added MongoMapper Support #101 [@hamin]
342
+
343
+ * Add `first_page?` and `last_page?` to `page_scope_methods` #51 [@holinnn]
344
+
345
+ * Make sure that the paginate helper always returns a String #99 [@Draiken]
346
+
347
+ * Don't remove includes scopes from count if they are needed #100 [@flop]
348
+
349
+
350
+ ## 0.12.1
351
+
352
+ * Slim template support #93 [@detrain]
353
+
354
+ * Use Kaminari.config to specify default value for `param_name` #94 [@avsej]
355
+
356
+ * Fixed "super called outside of method" error happened in particular versions of Ruby 1.8.7 #91 [@Skulli]
357
+
358
+ * `_paginate.html.erb` isn't rendered with custom theme #97 [@danlunde]
359
+
360
+
361
+ ## 0.12.0
362
+
363
+ * General configuration options #41 #62 [@javierv, @iain]
364
+
365
+ You can now globally override some default values such as `default_per_page`, `window`, etc. via configuration file.
366
+ Also, here comes a generator command that generates the default configuration file into your app's config/initilizers directory.
367
+
368
+ * Generic pagination support for Array object #47 #68 #74 [@lda, @ened, @jianlin]
369
+
370
+ You can now paginate through any kind of Arrayish object in this way:
371
+ ```ruby
372
+ Kaminari.paginate_array(my_array_object).page(params[:page]).per(10)
373
+ ```
374
+
375
+ * Fixed a serious performance regression on #count method in 0.11.0 [@ankane]
376
+
377
+ * Bugfix: Pass the real @params to `url_for` #90 [@utkarshkukreti]
378
+
379
+ * Fixed a gem packaging problem (circular dependency)
380
+
381
+ 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...
382
+
383
+
384
+ ## 0.11.0
385
+
386
+ 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.
387
+
388
+ * Merge `_current_page`, `_first_page_link`, `_last_page_link` and `_page_link` into one `_page` partial #28 [@GarthSnyder]
389
+
390
+ * Add real first/last page links, and use them by default instead of outer window #30 [@GarthSnyder]
391
+
392
+ * The disabled items should simply not be emitted, even as an empty span #30 [@GarthSnyder]
393
+
394
+ * Skip :order in `#count_all` so complex groups with generated columns don't blow up in SQL-land #61 [@keeran, @Empact]
395
+
396
+ * Ignore :include in `#count_all` to make it work better with polymorphic eager loading #80 [@njakobsen]
397
+
398
+ * Quick fix on `#count` to return the actual number of records on AR 3.0 #45 #50
399
+
400
+ * Removed "TERRIBLE HORRIBLE NO GOOD VERY BAD HACK" #82 [@janx, @flop, @pda]
401
+
402
+ * Allow for Multiple Themes #64 [@tmilewski]
403
+
404
+ * Themes can contain the whole application directory structure now
405
+
406
+ * Use `gemspec` method in Gemfile [@p_elliott]
407
+
408
+
409
+ ## 0.10.4
410
+
411
+ * Do not break ActiveRecord::Base.descendants, by making sure to call super from ActiveRecord::Base.inherited #34 [@rolftimmermans]
412
+
413
+ * Fixed vanishing mongoid criteria after calling `page()` #26 [@tyok]
414
+
415
+
416
+ ## 0.10.3
417
+
418
+ * Fixed a bug that `total_count()` didn't work when chained with `group()` scope #21 [@jgeiger]
419
+
420
+ * Fixed a bug that the paginate helper didn't work properly with an Ajax call #23 [@hjuskewycz]
421
+
422
+
423
+ ## 0.10.2
424
+
425
+ * Added `:param_name` option to the pagination helper #10 [@ivanvr]
426
+
427
+ ```haml
428
+ = paginate @users, :param_name => :pagina
429
+ ```
430
+
431
+
432
+ ## 0.10.1
433
+
434
+ * Fixed a bug that the whole `<nav>` section was not rendered in some cases [@GarthSnyder]
435
+
436
+
437
+ ## 0.10.0
438
+
439
+ * Railtie initializer name is "kaminari" from now
440
+
441
+ * Changed bundler settings to work both on 1.9.2 and 1.8.7 #12 [@l15n]
442
+
443
+ * Fixed bugs encountered when running specs on Ruby 1.9.2 #12 [@l15n]
444
+
445
+ * Clean up documentation (formatting and editing) #12 [@l15n]
446
+
447
+ * Use `Proc.new` instead of lambda for `scoped_options` #13 [@l15n]
448
+
449
+ * Use AS hooks for loading AR #14 [@hasimo]
450
+
451
+ * Refactor scope definition with Concerns #15 [@l15n]
452
+
453
+ * Ensure `output_buffer` is always initialized #11 [@kichiro]
454
+
455
+
456
+ ## 0.9.13
457
+
458
+ * Added Mongoid support #5 [@juno, @hibariya]
459
+
460
+ This means, Kaminari is now *ORM agnostic* ☇3☇3☇3
461
+
462
+
463
+ ## 0.9.12
464
+
465
+ * Moved the whole pagination logic to the paginator partial so that users can touch it
466
+
467
+ Note: You need to update your `_paginator.html.*` if you've already customized it.
468
+ If you haven't overridden `_paginator.html.*` files, then probably there're nothing you have to do.
469
+ See this commit for the example: https://github.com/amatsuda/kaminari_themes/commit/2dfb41c
470
+
471
+ ## 0.9.10
472
+
473
+ * the `per()` method accepts String, zero and minus value now #7 [@koic]
474
+
475
+ This enables you to do something like this:
476
+ ```ruby
477
+ Model.page(params[:page]).per(params[:per])
478
+ ```
479
+
480
+ * Added support for Gem Testers (http://gem-testers.org/) #8 [@joealba]
481
+
482
+
483
+ ## 0.9.9
484
+
485
+ * `:params` option for the helper [@yomukaku_memo]
486
+
487
+ You can override each link's `url_for` option by this option
488
+ ```haml
489
+ = paginate @users, :params => {:controller => 'users', :action => 'index2'}
490
+ ```
491
+
492
+ * refactor tags
493
+
494
+
495
+ ## 0.9.8
496
+
497
+ * I18n for the partials `:previous`, `:next`, and `:truncate` are externalized to the I18n resource.
498
+
499
+
500
+ ## 0.9.7
501
+
502
+ * moved template themes to another repo https://github.com/amatsuda/kaminari_themes
503
+
504
+
505
+ ## 0.9.6
506
+
507
+ * added `paginates_per` method for setting default `per_page` value for each model in a declarative way
508
+
509
+ ```ruby
510
+ class Article < ActiveRecord::Base
511
+ paginates_per 10
512
+ end
513
+ ```
514
+
515
+
516
+ ## 0.9.5
517
+
518
+ * works on AR 3.0.0 and 3.0.1 now #4 [@danillos]
519
+
520
+
521
+ ## 0.9.4
522
+
523
+ * introduced module based tags
524
+
525
+ As a side effect of this internal change, I have to confess that this version brings you a slight backward incompatibility on template API.
526
+ 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
527
+
528
+
529
+ ## 0.9.3
530
+
531
+ * improved template detection logic
532
+
533
+ 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.
534
+
535
+ * simplified bundled template themes
536
+
537
+
538
+ ## 0.9.2
539
+
540
+ * stop adding extra LF between templates when joining
541
+
542
+ * githubish template theme [@maztomo]
543
+
544
+
545
+ ## 0.9.1
546
+
547
+ * googlish template theme [@maztomo]
548
+
549
+
550
+ ## 0.9.0
551
+
552
+ * added `per_page` to the template local variables #3 [@hsbt]
553
+
554
+ * show no contents when the current page is the only page (in other words, `num_pages == 1`) #2 [@hsbt]
555
+
556
+
557
+ ## 0.8.0
558
+
559
+ * using HTML5 `<nav>` tag rather than `<div>` for the container tag
560
+
561
+
562
+ ## 0.7.0
563
+
564
+ * Ajaxified paginator templates
565
+
566
+
567
+ ## 0.6.0
568
+
569
+ * Hamlized paginator templates
570
+
571
+
572
+ ## 0.5.0
573
+
574
+ * reset `content_for :kaminari_paginator_tags` before rendering #1 [@hsbt]
575
+
576
+
577
+ ## 0.4.0
578
+
579
+ * partialize the outer div
580
+
581
+
582
+ ## 0.3.0
583
+
584
+ * suppress logging when rendering each partial
585
+
586
+
587
+ ## 0.2.0
588
+
589
+ * default `PER_PAGE` to 25 [@hsbt]
590
+
591
+
592
+ ## 0.1.0
593
+
594
+ * First release