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