kaminari 1.2.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

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