kaminari 0.16.3 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.codeclimate.yml +19 -0
- data/.gitignore +1 -1
- data/.travis.yml +82 -47
- data/CHANGELOG.md +636 -0
- data/CONTRIBUTING.md +22 -0
- data/Gemfile +2 -0
- data/README.md +573 -0
- data/Rakefile +33 -14
- data/gemfiles/active_record_41.gemfile +10 -6
- data/gemfiles/active_record_42.gemfile +10 -6
- data/gemfiles/active_record_50.gemfile +24 -0
- data/gemfiles/active_record_51.gemfile +24 -0
- data/gemfiles/active_record_52.gemfile +24 -0
- data/gemfiles/active_record_60.gemfile +26 -0
- data/gemfiles/active_record_edge.gemfile +15 -12
- data/kaminari.gemspec +23 -27
- data/lib/kaminari/version.rb +3 -1
- data/lib/kaminari.rb +4 -38
- data/misc/bug_report_template.rb +57 -0
- metadata +48 -186
- data/.gemtest +0 -0
- data/.rspec +0 -2
- data/CHANGELOG.rdoc +0 -453
- data/README.rdoc +0 -336
- data/app/views/kaminari/_first_page.html.erb +0 -11
- data/app/views/kaminari/_first_page.html.haml +0 -9
- data/app/views/kaminari/_first_page.html.slim +0 -10
- data/app/views/kaminari/_gap.html.erb +0 -8
- data/app/views/kaminari/_gap.html.haml +0 -8
- data/app/views/kaminari/_gap.html.slim +0 -9
- data/app/views/kaminari/_last_page.html.erb +0 -11
- data/app/views/kaminari/_last_page.html.haml +0 -9
- data/app/views/kaminari/_last_page.html.slim +0 -10
- data/app/views/kaminari/_next_page.html.erb +0 -11
- data/app/views/kaminari/_next_page.html.haml +0 -9
- data/app/views/kaminari/_next_page.html.slim +0 -10
- data/app/views/kaminari/_page.html.erb +0 -12
- data/app/views/kaminari/_page.html.haml +0 -10
- data/app/views/kaminari/_page.html.slim +0 -11
- data/app/views/kaminari/_paginator.html.erb +0 -23
- data/app/views/kaminari/_paginator.html.haml +0 -18
- data/app/views/kaminari/_paginator.html.slim +0 -19
- data/app/views/kaminari/_prev_page.html.erb +0 -11
- data/app/views/kaminari/_prev_page.html.haml +0 -9
- data/app/views/kaminari/_prev_page.html.slim +0 -10
- data/config/locales/kaminari.yml +0 -19
- data/gemfiles/active_record_30.gemfile +0 -30
- data/gemfiles/active_record_31.gemfile +0 -33
- data/gemfiles/active_record_32.gemfile +0 -33
- data/gemfiles/active_record_40.gemfile +0 -25
- data/gemfiles/data_mapper_12.gemfile +0 -39
- data/gemfiles/mongo_mapper.gemfile +0 -31
- data/gemfiles/mongoid_24.gemfile +0 -25
- data/gemfiles/mongoid_30.gemfile +0 -21
- data/gemfiles/mongoid_31.gemfile +0 -20
- data/gemfiles/mongoid_40.gemfile +0 -18
- data/gemfiles/sinatra_13.gemfile +0 -43
- data/gemfiles/sinatra_14.gemfile +0 -43
- data/lib/generators/kaminari/config_generator.rb +0 -16
- data/lib/generators/kaminari/templates/kaminari_config.rb +0 -10
- data/lib/generators/kaminari/views_generator.rb +0 -119
- data/lib/kaminari/config.rb +0 -51
- data/lib/kaminari/engine.rb +0 -4
- data/lib/kaminari/grape.rb +0 -4
- data/lib/kaminari/helpers/action_view_extension.rb +0 -132
- data/lib/kaminari/helpers/paginator.rb +0 -195
- data/lib/kaminari/helpers/sinatra_helpers.rb +0 -176
- data/lib/kaminari/helpers/tags.rb +0 -105
- data/lib/kaminari/hooks.rb +0 -36
- data/lib/kaminari/models/active_record_extension.rb +0 -22
- data/lib/kaminari/models/active_record_model_extension.rb +0 -22
- data/lib/kaminari/models/active_record_relation_methods.rb +0 -42
- data/lib/kaminari/models/array_extension.rb +0 -66
- data/lib/kaminari/models/configuration_methods.rb +0 -48
- data/lib/kaminari/models/data_mapper_collection_methods.rb +0 -19
- data/lib/kaminari/models/data_mapper_extension.rb +0 -51
- data/lib/kaminari/models/mongo_mapper_extension.rb +0 -18
- data/lib/kaminari/models/mongoid_criteria_methods.rb +0 -40
- data/lib/kaminari/models/mongoid_extension.rb +0 -26
- data/lib/kaminari/models/page_scope_methods.rb +0 -70
- data/lib/kaminari/models/plucky_criteria_methods.rb +0 -23
- data/lib/kaminari/railtie.rb +0 -7
- data/lib/kaminari/sinatra.rb +0 -5
- data/spec/config/config_spec.rb +0 -91
- data/spec/fake_app/active_record/config.rb +0 -3
- data/spec/fake_app/active_record/models.rb +0 -65
- data/spec/fake_app/data_mapper/config.rb +0 -1
- data/spec/fake_app/data_mapper/models.rb +0 -27
- data/spec/fake_app/mongo_mapper/config.rb +0 -2
- data/spec/fake_app/mongo_mapper/models.rb +0 -9
- data/spec/fake_app/mongoid/config.rb +0 -18
- data/spec/fake_app/mongoid/models.rb +0 -38
- data/spec/fake_app/rails_app.rb +0 -56
- data/spec/fake_app/sinatra_app.rb +0 -22
- data/spec/fake_app/views/alternative/kaminari/_first_page.html.erb +0 -1
- data/spec/fake_app/views/alternative/kaminari/_paginator.html.erb +0 -3
- data/spec/fake_app/views/kaminari/bootstrap/_page.html.erb +0 -1
- data/spec/fake_app/views/kaminari/bootstrap/_paginator.html.erb +0 -7
- data/spec/fake_gem.rb +0 -20
- data/spec/generators/views_generator_spec.rb +0 -18
- data/spec/helpers/action_view_extension_spec.rb +0 -306
- data/spec/helpers/helpers_spec.rb +0 -144
- data/spec/helpers/sinatra_helpers_spec.rb +0 -223
- data/spec/helpers/tags_spec.rb +0 -140
- data/spec/models/active_record/active_record_relation_methods_spec.rb +0 -77
- data/spec/models/active_record/inherited_spec.rb +0 -9
- data/spec/models/active_record/scopes_spec.rb +0 -265
- data/spec/models/array_spec.rb +0 -172
- data/spec/models/configuration_methods_spec.rb +0 -125
- data/spec/models/data_mapper/data_mapper_spec.rb +0 -205
- data/spec/models/mongo_mapper/mongo_mapper_spec.rb +0 -84
- data/spec/models/mongoid/mongoid_spec.rb +0 -228
- data/spec/requests/users_spec.rb +0 -53
- data/spec/spec_helper.rb +0 -34
- data/spec/spec_helper_for_sinatra.rb +0 -34
- data/spec/support/database_cleaner.rb +0 -19
- data/spec/support/matchers.rb +0 -52
data/CHANGELOG.rdoc
DELETED
@@ -1,453 +0,0 @@
|
|
1
|
-
== 0.16.3
|
2
|
-
|
3
|
-
* Fixed a "stack level too deep" bug in mongoid #642 [bartes]
|
4
|
-
|
5
|
-
* Fixed a bug that Kaminari possibly crashes when combined with other gems
|
6
|
-
that define `inherited` method on model classes, such as aasm. #651 [zeitnot]
|
7
|
-
|
8
|
-
== 0.16.2
|
9
|
-
|
10
|
-
* Fixed a bug where cloned Relations remember previous relations'
|
11
|
-
@total_count value #565 [inkstak]
|
12
|
-
|
13
|
-
* Fixed a bug where `paginate_array()` with total_count option returns whole
|
14
|
-
array for every page #516 [abhichvn]
|
15
|
-
|
16
|
-
* Fixed a bug where :num_pages option was backwards-incompatible #605
|
17
|
-
[klebershimabuku]
|
18
|
-
|
19
|
-
* Fixed a bug where themed views generator attempts to overwrite README.md
|
20
|
-
#623 [swrobel]
|
21
|
-
|
22
|
-
* Fixed a bug that ruby raises a NameError when theme was not found #622
|
23
|
-
[maxprokopiev]
|
24
|
-
|
25
|
-
* Fixed a bug that paginates_per does not work with subclasses on mongoid #634
|
26
|
-
[kouyaf77]
|
27
|
-
|
28
|
-
* Show an error message if a proper template was not found for the generator
|
29
|
-
theme #600 [meltedice]
|
30
|
-
|
31
|
-
== 0.16.1
|
32
|
-
|
33
|
-
* Fix a bug where :theme option for #paginate method doesn't work properly
|
34
|
-
#566 [commstratdev]
|
35
|
-
|
36
|
-
== 0.16.0
|
37
|
-
|
38
|
-
* Add support for mongoid max_scan option #500 [aptx4869]
|
39
|
-
|
40
|
-
* Add `link_to_previous_page` helper for Sinatra #504 [ikeay]
|
41
|
-
|
42
|
-
* Add :views_prefix option to #paginate for alternative views directory #552
|
43
|
-
[apotonick]
|
44
|
-
|
45
|
-
* Simplify `page_entries_info` by adding entry_name interface to each ORM
|
46
|
-
|
47
|
-
* Refer ActiveRecord::Base from top level namespace for more safety when
|
48
|
-
inherited class's namespace has 'ActiveRecord' constant #522 [yuroyoro]
|
49
|
-
|
50
|
-
* Fix a bug where runtime persistence not taken into account with
|
51
|
-
mongoid/kaminari #326 [nubeod]
|
52
|
-
|
53
|
-
* Fix a bug where helper methods were not available from inside
|
54
|
-
`paginator.render do ... end` block #239 [damien-roche]
|
55
|
-
|
56
|
-
* Fix a bug where theme generator didn't work on Rails 4.1 #526 [jimryan]
|
57
|
-
|
58
|
-
* Fix a bug that paginatable arrays with `total_count` option always returns
|
59
|
-
whole array #516 [abhichvn]
|
60
|
-
|
61
|
-
== 0.15.1
|
62
|
-
|
63
|
-
* page_method_name option was not working in 0.15.0 #481 [mauriciopasquier]
|
64
|
-
|
65
|
-
* Use the mongoid criteria #length method to cache the count of the collection
|
66
|
-
per criteria #484 [camallen]
|
67
|
-
|
68
|
-
* Don't inherit host, port, and protocol from the given params
|
69
|
-
|
70
|
-
== 0.15.0
|
71
|
-
|
72
|
-
* Allow count, total count to pass parameters to super #193 [bsimpson]
|
73
|
-
|
74
|
-
* Add `max_pages` and `max_pages_per` methods to limit displayed pages per
|
75
|
-
model or globally #301 [zpieslak]
|
76
|
-
|
77
|
-
* Add support for Sinatra views overrides (add app views paths) #332 [j15e]
|
78
|
-
|
79
|
-
* Fix wrong pagination when used with `padding` #359 [vladimir-vg, negipo]
|
80
|
-
|
81
|
-
* check for Hash in addition to OrderedHash, which seems to break in Rails 4,
|
82
|
-
for total_count #369 [aew]
|
83
|
-
|
84
|
-
* Make `to_s` in paginator threadsafe #374 [bf4]
|
85
|
-
|
86
|
-
* Fix Missing partial Error when 'paginate' called from different format
|
87
|
-
template #381 [joker1007]
|
88
|
-
|
89
|
-
* Add `PageScopeMethods#next_page`, `prev_page`, and `out_of_range?` [yuki24]
|
90
|
-
|
91
|
-
* Use html_safe in view partials instead of raw fixed #73 [zzak]
|
92
|
-
|
93
|
-
* Fix a bug that `PaginatableArray#total_pages` returns the wrong value #416 [yuki24]
|
94
|
-
|
95
|
-
* Make `num_pages` to return the same value as `total_pages` for backward compat [yuki24, eitoball]
|
96
|
-
|
97
|
-
* Change #page_entries_info to use model name #340, #348 [znz, eitoball]
|
98
|
-
|
99
|
-
* Change scope to class method #433 [kolodovskyy]
|
100
|
-
|
101
|
-
* Fix arity problem with Rails 4.1.0 #449 [bricker]
|
102
|
-
|
103
|
-
== 0.14.1
|
104
|
-
|
105
|
-
* Changed the default "truncation" String from "..." to … #264 [pjaspers]
|
106
|
-
|
107
|
-
* The theme generator is Github API v3 compatible now! #279 [eitoball]
|
108
|
-
|
109
|
-
* Made Kaminari.config.default_per_page changeable again #280 [yuki24]
|
110
|
-
|
111
|
-
== 0.14.0
|
112
|
-
|
113
|
-
* Grape framework support! #218 [mrplum]
|
114
|
-
|
115
|
-
* Mongoid 3 ready! #238 [shingara]
|
116
|
-
|
117
|
-
* Added link_to_previous_page helper #191 [timgremore]
|
118
|
-
|
119
|
-
* Added helper to generate rel="next" and rel="prev" link tags for SEO #200
|
120
|
-
[joe1chen]
|
121
|
-
|
122
|
-
* Added `max_per_page` configuration option #274 [keiko0713]
|
123
|
-
This would be useful for the case when you are using user input `per_page`
|
124
|
-
value but want to impose the upper bound.
|
125
|
-
|
126
|
-
* Added I18n to page_entries_info #207 [plribeiro3000]
|
127
|
-
|
128
|
-
* Changed method name "num_pages" to "total_pages"
|
129
|
-
num_pages" is still available as an alias of "total_pages", but will be
|
130
|
-
deprecated or removed in some future version.
|
131
|
-
|
132
|
-
* Changed the way page_entries_info behave so it can show appropriate names
|
133
|
-
for models with namespace #207 [plribeiro3000]
|
134
|
-
|
135
|
-
* Added html_safe to page_entries_info helper #190 [lucapette]
|
136
|
-
|
137
|
-
* Fixed displayed number of items on each page w/ Mongoid 2.4.x and
|
138
|
-
MongoMapper #194 [dblock]
|
139
|
-
|
140
|
-
* Removed a unused local variable from templates from default tamplate #245 [juno]
|
141
|
-
|
142
|
-
* Fixed page_entry_info to use the value of `entry_name` option when given
|
143
|
-
collection is empty or a PaginatableArray #265, #277 [eitoball]
|
144
|
-
|
145
|
-
* Added require 'dm-aggregates' in DataMapper hook #259 [shingara]
|
146
|
-
|
147
|
-
== 0.13.0
|
148
|
-
|
149
|
-
* Rails 3.2 ready! #180 [slbug]
|
150
|
-
|
151
|
-
* DataMapper support! #149 [NoICE, Ragmaanir]
|
152
|
-
|
153
|
-
* Sinatra & Padrino support! #179 [udzura, mlightner, aereal]
|
154
|
-
|
155
|
-
* Added mongoid embedded documents support! #155 [yuki24]
|
156
|
-
|
157
|
-
* Added `each_relevant_page` that only visits pages in the inner or outer
|
158
|
-
windows #154 [cbeer]
|
159
|
-
Performance improved, particularly with very large number of pages.
|
160
|
-
|
161
|
-
* Memoize count for AR when calling `total_count` #138 [sarmiena]
|
162
|
-
Increases performance for large datasets.
|
163
|
-
|
164
|
-
* Added `page_entries_info` view helper #140 [jeffreyiacono]
|
165
|
-
Example:
|
166
|
-
<%= page_entries_info @posts %>
|
167
|
-
#=> Displaying posts 6 - 10 of 26 in total
|
168
|
-
|
169
|
-
* Added `link_to_next_page` helper method that simply links to the next page
|
170
|
-
Example:
|
171
|
-
<%= link_to_next_page @posts, 'More' %>
|
172
|
-
#=> <a href="/posts?page=7" rel="next">More</a>
|
173
|
-
|
174
|
-
* Let one override the `rel` attribute for 'link_to_next_page` helper #177
|
175
|
-
[webmat]
|
176
|
-
|
177
|
-
* Added `total_count` param for PaginatableArray. Useful for when working with
|
178
|
-
RSolr #141 [samdalton]
|
179
|
-
|
180
|
-
* Changed `Kaminari.paginate_array` API to take a Hash `options`
|
181
|
-
And specifying :limit & :offset immediately builds a pagination ready object
|
182
|
-
Example:
|
183
|
-
# the following two are equivalent. Use whichever you like
|
184
|
-
Kaminari.paginate_array((1..100).to_a, limit: 10, offset: 10)
|
185
|
-
Kaminari.paginate_array((1..100).to_a).page(2).per(10)
|
186
|
-
|
187
|
-
* Added `padding` method to skip an arbitrary record count #60 [aaronjensen]
|
188
|
-
Example:
|
189
|
-
User.page(2).per(10).padding(3) # this will return users 14..23
|
190
|
-
|
191
|
-
* Made the pagination method name (defaulted to `page`) configurable #57, #162
|
192
|
-
Example:
|
193
|
-
# you can use the config file and its generator for this
|
194
|
-
Kaminari.config.page_method_name = :paging
|
195
|
-
Article.paging(3).per(30)
|
196
|
-
|
197
|
-
* Only add extensions to direct descendents of ActiveRecord::Base #108
|
198
|
-
[seejohnrun]
|
199
|
-
|
200
|
-
* AR models that were subclassed before Kaminari::ActiveRecordExtension is
|
201
|
-
included pick up the extensions #119 [pivotal-casebook]
|
202
|
-
|
203
|
-
* Avoid overwriting AR::Base inherited method #165 [briandmcnabb]
|
204
|
-
|
205
|
-
* Stopped depending on Rails gem #159 [alsemyonov]
|
206
|
-
|
207
|
-
* introduced Travis CI #181 [hsbt]
|
208
|
-
|
209
|
-
== 0.12.4
|
210
|
-
|
211
|
-
* Support for config.param_name as lambda #102 [ajrkerr]
|
212
|
-
|
213
|
-
* Stop duplicating order_values #65 [zettabyte]
|
214
|
-
|
215
|
-
* Preserve select value (e.g. "distinct") when counting #77, #104 [tbeauvais,
|
216
|
-
beatlevic]
|
217
|
-
|
218
|
-
== 0.12.3
|
219
|
-
|
220
|
-
* Haml 3.1 Support #96 [FlyboyArt, sonic921]
|
221
|
-
|
222
|
-
== 0.12.2
|
223
|
-
|
224
|
-
* Added MongoMapper Support #101 [hamin]
|
225
|
-
|
226
|
-
* Add first_page? and last_page? to page_scope_methods #51 [holinnn]
|
227
|
-
|
228
|
-
* Make sure that the paginate helper always returns a String #99 [Draiken]
|
229
|
-
|
230
|
-
* Don't remove includes scopes from count if they are needed #100 [flop]
|
231
|
-
|
232
|
-
== 0.12.1
|
233
|
-
|
234
|
-
* Slim template support #93 [detrain]
|
235
|
-
|
236
|
-
* Use Kaminari.config to specify default value for param_name #94 [avsej]
|
237
|
-
|
238
|
-
* Fixed "super called outside of method" error happened in particular versions
|
239
|
-
of Ruby 1.8.7 #91 [Skulli]
|
240
|
-
|
241
|
-
* _paginate.html.erb isn't rendered with custom theme #97 [danlunde]
|
242
|
-
|
243
|
-
== 0.12.0
|
244
|
-
|
245
|
-
* General configuration options #41 #62 [javierv, iain]
|
246
|
-
You can now globally override some default values such as default_per_page,
|
247
|
-
window, etc. via configuration file.
|
248
|
-
Also, here comes a generator command that generates the default
|
249
|
-
configuration file into your app's config/initilizers directory.
|
250
|
-
|
251
|
-
* Generic pagination support for Array object #47 #68 #74 [lda, ened, jianlin]
|
252
|
-
You can now paginate through any kind of Arrayish object in this way:
|
253
|
-
Kaminari.paginate_array(my_array_object).page(params[:page]).per(10)
|
254
|
-
|
255
|
-
* Fixed a serious performance regression in 0.11.0 [ankane]
|
256
|
-
There was a critical performance issue on #count method in 0.11.0 gem.
|
257
|
-
|
258
|
-
* Bugfix: Pass the real @params to url_for #90 [utkarshkukreti]
|
259
|
-
|
260
|
-
* Fixed a gem packaging problem (circular dependency)
|
261
|
-
There was a packaging problem with Kaminari 0.11.0 that the gem depends on
|
262
|
-
Kaminari gem. Maybe Jeweler + "gemspec" method didn't work well...
|
263
|
-
|
264
|
-
== 0.11.0
|
265
|
-
|
266
|
-
This release contains several backward incompatibilities on template API.
|
267
|
-
You probably need to update your existing templates if you're already using
|
268
|
-
your own custom theme.
|
269
|
-
|
270
|
-
* Merge _current_page, _first_page_link, _last_page_link and _page_link into
|
271
|
-
one _page partial #28 [GarthSnyder]
|
272
|
-
|
273
|
-
* Add real first/last page links, and use them by default instead of outer
|
274
|
-
window #30 [GarthSnyder]
|
275
|
-
|
276
|
-
* The disabled items should simply not be emitted, even as an empty span #30
|
277
|
-
[GarthSnyder]
|
278
|
-
|
279
|
-
* Skip :order in #count_all so complex groups with generated columns don't
|
280
|
-
blow up in SQL-land #61 [keeran, Empact]
|
281
|
-
|
282
|
-
* Ignore :include in #count_all to make it work better with polymorphic eager
|
283
|
-
loading #80 [njakobsen]
|
284
|
-
|
285
|
-
* Quick fix on #count to return the actual number of records on AR 3.0 #45 #50
|
286
|
-
|
287
|
-
* Removed "TERRIBLE HORRIBLE NO GOOD VERY BAD HACK" #82 [janx, flop, pda]
|
288
|
-
|
289
|
-
* Allow for Multiple Themes #64 [tmilewski]
|
290
|
-
|
291
|
-
* Themes can contain the whole application directory structure now
|
292
|
-
|
293
|
-
* Use gemspec method in Gemfile [p_elliott]
|
294
|
-
|
295
|
-
== 0.10.4
|
296
|
-
|
297
|
-
* Do not break ActiveRecord::Base.descendants, by making sure to call super
|
298
|
-
from ActiveRecord::Base.inherited #34 [rolftimmermans]
|
299
|
-
|
300
|
-
* Fixed vanishing mongoid criteria after calling page() #26 [tyok]
|
301
|
-
|
302
|
-
== 0.10.3
|
303
|
-
|
304
|
-
* Fixed a bug that total_count() didn't work when chained with group() scope
|
305
|
-
#21 [jgeiger]
|
306
|
-
|
307
|
-
* Fixed a bug that the paginate helper didn't work properly with an Ajax call
|
308
|
-
#23 [hjuskewycz]
|
309
|
-
|
310
|
-
== 0.10.2
|
311
|
-
|
312
|
-
* Added :param_name option to the pagination helper #10 [ivanvr]
|
313
|
-
Example:
|
314
|
-
= paginate @users, :param_name => :pagina
|
315
|
-
|
316
|
-
== 0.10.1
|
317
|
-
|
318
|
-
* Fixed a bug that the whole <nav> section was not rendered in some cases
|
319
|
-
[GarthSnyder]
|
320
|
-
|
321
|
-
== 0.10.0
|
322
|
-
|
323
|
-
* Railtie initializer name is "kaminari" from now
|
324
|
-
* Changed bundler settings to work both on 1.9.2 and 1.8.7 #12 [l15n]
|
325
|
-
* Fixed bugs encountered when running specs on Ruby 1.9.2 #12 [l15n]
|
326
|
-
* Clean up documentation (formatting and editing) #12 [l15n]
|
327
|
-
* Use Proc.new instead of lambda for scoped_options #13 [l15n]
|
328
|
-
* Use AS hooks for loading AR #14 [hasimo]
|
329
|
-
* Refactor scope definition with Concerns #15 [l15n]
|
330
|
-
* Ensure output_buffer is always initialized #11 [kichiro]
|
331
|
-
|
332
|
-
== 0.9.13
|
333
|
-
|
334
|
-
* Added Mongoid support #5 [juno, hibariya]
|
335
|
-
This means, Kaminari is now *ORM agnostic* ☇3☇3☇3
|
336
|
-
|
337
|
-
== 0.9.12
|
338
|
-
|
339
|
-
* Moved the whole pagination logic to the paginator partial so that users can
|
340
|
-
touch it
|
341
|
-
Note: You need to update your _paginator.html.* if you've already customized
|
342
|
-
it. If you haven't overridden _paginator.html.* files, then probably
|
343
|
-
there're nothing you have to do.
|
344
|
-
See this commit for the example:
|
345
|
-
https://github.com/amatsuda/kaminari_themes/commit/2dfb41c
|
346
|
-
|
347
|
-
== 0.9.10
|
348
|
-
|
349
|
-
* the per() method accepts String, zero and minus value now #7 [koic]
|
350
|
-
This enables you to do something like this:
|
351
|
-
Model.page(params[:page]).per(params[:per])
|
352
|
-
|
353
|
-
* Added support for Gem Testers (http://gem-testers.org/) #8 [joealba]
|
354
|
-
|
355
|
-
== 0.9.9
|
356
|
-
|
357
|
-
* :params option for the helper [yomukaku_memo]
|
358
|
-
You can override each link's url_for option by this option
|
359
|
-
Example:
|
360
|
-
= paginate @users, :params => {:controller => 'users', :action => 'index2'}
|
361
|
-
|
362
|
-
* refactor tags
|
363
|
-
|
364
|
-
== 0.9.8
|
365
|
-
|
366
|
-
* I18n for the partials
|
367
|
-
[:previous, :next, :truncate] are externalized to the I18n resource.
|
368
|
-
|
369
|
-
== 0.9.7
|
370
|
-
|
371
|
-
* moved template themes to another repo
|
372
|
-
https://github.com/amatsuda/kaminari_themes
|
373
|
-
|
374
|
-
== 0.9.6
|
375
|
-
|
376
|
-
* added paginates_per method for setting default per_page value for each model
|
377
|
-
in a declarative way
|
378
|
-
Example:
|
379
|
-
class Article < ActiveRecord::Base
|
380
|
-
paginates_per 10
|
381
|
-
end
|
382
|
-
|
383
|
-
== 0.9.5
|
384
|
-
|
385
|
-
* works on AR 3.0.0 and 3.0.1 now #4 [danillos]
|
386
|
-
|
387
|
-
== 0.9.4
|
388
|
-
|
389
|
-
* introduced module based tags
|
390
|
-
As a side effect of this internal change, I have to confess that this
|
391
|
-
version brings you a slight backward incompatibility on template API.
|
392
|
-
If you're using custom templates, be sure to update your existing templates.
|
393
|
-
To catch up the new API, you need to update %w[next_url prev_url page_url]
|
394
|
-
local variables to simple 'url' like this.
|
395
|
-
https://github.com/amatsuda/kaminari/commit/da88729
|
396
|
-
|
397
|
-
== 0.9.3
|
398
|
-
|
399
|
-
* improved template detection logic
|
400
|
-
When a template for a tag could not be found in the app/views/kaminari/
|
401
|
-
directory, it searches the tag's ancestor template files before falling back
|
402
|
-
to engine's default template. This may help keeping your custom templates DRY.
|
403
|
-
|
404
|
-
* simplified bundled template themes
|
405
|
-
|
406
|
-
== 0.9.2
|
407
|
-
|
408
|
-
* stop adding extra LF between templates when joining
|
409
|
-
|
410
|
-
* githubish template theme [maztomo]
|
411
|
-
|
412
|
-
== 0.9.1
|
413
|
-
|
414
|
-
* googlish template theme [maztomo]
|
415
|
-
|
416
|
-
== 0.9.0
|
417
|
-
|
418
|
-
* added "per_page" to the template local variables #3 [hsbt]
|
419
|
-
|
420
|
-
* show no contents when the current page is the only page (in other words,
|
421
|
-
num_pages == 1) #2 [hsbt]
|
422
|
-
|
423
|
-
== 0.8.0
|
424
|
-
|
425
|
-
* using HTML5 <nav> tag rather than <div> for the container tag
|
426
|
-
|
427
|
-
== 0.7.0
|
428
|
-
|
429
|
-
* Ajaxified paginator templates
|
430
|
-
|
431
|
-
== 0.6.0
|
432
|
-
|
433
|
-
* Hamlized paginator templates
|
434
|
-
|
435
|
-
== 0.5.0
|
436
|
-
|
437
|
-
* reset content_for :kaminari_paginator_tags before rendering #1 [hsbt]
|
438
|
-
|
439
|
-
== 0.4.0
|
440
|
-
|
441
|
-
* partialize the outer div
|
442
|
-
|
443
|
-
== 0.3.0
|
444
|
-
|
445
|
-
* suppress logging when rendering each partial
|
446
|
-
|
447
|
-
== 0.2.0
|
448
|
-
|
449
|
-
* default PER_PAGE to 25 [hsbt]
|
450
|
-
|
451
|
-
== 0.1.0
|
452
|
-
|
453
|
-
* First release
|