Skip to content
Newer
Older
100644 308 lines (196 sloc) 8.72 KB
e90bdc9 @amatsuda version 0.13.0
authored Dec 22, 2011
1 == 0.13.0
2
3 * Rails 3.2 ready! #180 [slbug]
4
5 * DataMapper support! #149 [NoICE, Ragmaanir]
6
7 * Sinatra & Padrino support! #179 [udzura, mlightner, aereal]
8
9 * Added mongoid embedded documents support! #155 [yuki24]
10
11 * Added `each_relevant_page` that only visits pages in the inner or outer
12 windows #154 [cbeer]
13 Performance improved, particularly with very large number of pages.
14
15 * Memoize count for AR when calling `total_count` #138 [sarmiena]
16 Increases performance for large datasets.
17
18 * Added `page_entries_info` view helper #140 [jeffreyiacono]
19 Example:
20 <%= page_entries_info @posts %>
21 #=> Displaying posts 6 - 10 of 26 in total
22
23 * Added `link_to_next_page` helper method that simply links to the next page
24 Example:
25 <%= link_to_next_page @posts, 'More' %>
26 #=> <a href="/posts?page=7" rel="next">More</a>
27
28 * Let one override the `rel` attribute for 'link_to_next_page` helper #177
29 [webmat]
30
31 * Added `total_count` param for PaginatableArray. Useful for when working with
32 RSolr #141 [samdalton]
33
34 * Changed `Kaminari.paginate_array` API to take a Hash `options`
35 And specifying :limit & :offset immediately builds a pagination ready object
36 Example:
37 # the following two are equivalent. Use whichever you like
38 Kaminari.paginate_array((1..100).to_a, limit: 10, offset: 10)
39 Kaminari.paginate_array((1..100).to_a).page(2).per(10)
40
41 * Added `padding` method to skip an arbitrary record count #60 [aaronjensen]
42 Example:
43 User.page(2).per(10).padding(3) # this will return users 14..23
44
45 * Made the pagination method name (defaulted to `page`) configurable #57, #162
46 Example:
47 # you can use the config file and its generator for this
48 Kaminari.config.page_method_name = :paging
49 Article.paging(3).per(30)
50
51 * Only add extensions to direct descendents of ActiveRecord::Base #108
52 [seejohnrun]
53
54 * AR models that were subclassed before Kaminari::ActiveRecordExtension is
55 included pick up the extensions #119 [pivotal-casebook]
56
57 * Avoid overwriting AR::Base inherited method #165 [briandmcnabb]
58
59 * Stopped depending on Rails gem #159 [alsemyonov]
60
61 * introduced Travis CI #181 [hsbt]
62
1636a28 @ajrkerr param_name configure via block
ajrkerr authored May 2, 2011
63 == 0.12.4
64
2d030d6 @amatsuda documentation
authored May 4, 2011
65 * Support for config.param_name as lambda #102 [ajrkerr]
66
67 * Stop duplicating order_values #65 [zettabyte]
68
69 * Preserve select value (e.g. "distinct") when counting #77, #104 [tbeauvais,
70 beatlevic]
1636a28 @ajrkerr param_name configure via block
ajrkerr authored May 2, 2011
71
7688b74 @amatsuda bump version
authored Apr 28, 2011
72 == 0.12.3
73
cde294b @amatsuda documentation
authored Apr 28, 2011
74 * Haml 3.1 Support #96 [FlyboyArt, sonic921]
7688b74 @amatsuda bump version
authored Apr 27, 2011
75
eee9ae3 @amatsuda documentation
authored Apr 27, 2011
76 == 0.12.2
77
78 * Added MongoMapper Support #101 [hamin]
79
80 * Add first_page? and last_page? to page_scope_methods #51 [holinnn]
81
82 * Make sure that the paginate helper always returns a String #99 [Draiken]
83
84 * Don't remove includes scopes from count if they are needed #100 [flop]
85
2dd0626 @amatsuda fixes #97 _paginate.html.erb isn't rendered with custom theme
authored Apr 25, 2011
86 == 0.12.1
87
88 * Slim template support #93 [detrain]
89
90 * Use Kaminari.config to specify default value for param_name #94 [avsej]
91
92 * Fixed "super called outside of method" error happened in particular versions
93 of Ruby 1.8.7 #91 [Skulli]
94
d6eb7c8 @amatsuda documentation
authored Apr 25, 2011
95 * _paginate.html.erb isn't rendered with custom theme #97 [danlunde]
96
eb38f31 @amatsuda documentation
authored Apr 22, 2011
97 == 0.12.0
98
99 * General configuration options #41 #62 [javierv, iain]
100 You can now globally override some default values such as default_per_page,
101 window, etc. via configuration file.
102 Also, here comes a generator command that generates the default
103 configuration file into your app's config/initilizers directory.
104
2dd0626 @amatsuda fixes #97 _paginate.html.erb isn't rendered with custom theme
authored Apr 25, 2011
105 * Generic pagination support for Array object #47 #68 #74 [lda, ened, jianlin]
eb38f31 @amatsuda documentation
authored Apr 22, 2011
106 You can now paginate through any kind of Arrayish object in this way:
107 Kaminari.paginate_array(my_array_object).page(params[:page]).per(10)
108
109 * Fixed a serious performance regression in 0.11.0 [ankane]
110 There was a critical performance issue on #count method in 0.11.0 gem.
111
112 * Bugfix: Pass the real @params to url_for #90 [utkarshkukreti]
113
114 * Fixed a gem packaging problem (circular dependency)
115 There was a packaging problem with Kaminari 0.11.0 that the gem depends on
116 Kaminari gem. Maybe Jeweler + "gemspec" method didn't work well...
117
c615fd5 @amatsuda documentation
authored Apr 19, 2011
118 == 0.11.0
119
120 This release contains several backward incompatibilities on template API.
121 You probably need to update your existing templates if you're already using
122 your own custom theme.
123
124 * Merge _current_page, _first_page_link, _last_page_link and _page_link into
125 one _page partial #28 [GarthSnyder]
126
127 * Add real first/last page links, and use them by default instead of outer
128 window #30 [GarthSnyder]
129
130 * The disabled items should simply not be emitted, even as an empty span #30
131 [GarthSnyder]
132
133 * Skip :order in #count_all so complex groups with generated columns don't
134 blow up in SQL-land #61 [keeran, Empact]
135
136 * Ignore :include in #count_all to make it work better with polymorphic eager
137 loading #80 [njakobsen]
138
139 * Quick fix on #count to return the actual number of records on AR 3.0 #45 #50
140
141 * Removed "TERRIBLE HORRIBLE NO GOOD VERY BAD HACK" #82 [janx, flop, pda]
142
143 * Allow for Multiple Themes #64 [tmilewski]
144
145 * Themes can contain the whole application directory structure now
146
147 * Use gemspec method in Gemfile [p_elliott]
148
97d6fbe @amatsuda documentation
authored Feb 24, 2011
149 == 0.10.4
150
151 * Do not break ActiveRecord::Base.descendants, by making sure to call super
152 from ActiveRecord::Base.inherited #34 [rolftimmermans]
153
154 * Fixed vanishing mongoid criteria after calling page() #26 [tyok]
155
1de6798 @amatsuda documentation
authored Feb 23, 2011
156 == 0.10.3
157
158 * Fixed a bug that total_count() didn't work when chained with group() scope
159 #21 [jgeiger]
160
161 * Fixed a bug that the paginate helper didn't work properly with an Ajax call
162 #23 [hjuskewycz]
163
3c44a21 @amatsuda documentation
authored Feb 22, 2011
164 == 0.10.2
165
166 * Added :param_name option to the pagination helper #10 [ivanvr]
167 Example:
168 = paginate @users, :param_name => :pagina
169
14a458e @amatsuda documentation
authored Feb 21, 2011
170 == 0.10.1
171
172 * Fixed a bug that the whole <nav> section was not rendered in some cases
173 [GarthSnyder]
174
cfaad78 @amatsuda documentation
authored Feb 21, 2011
175 == 0.10.0
176
177 * Railtie initializer name is "kaminari" from now
178 * Changed bundler settings to work both on 1.9.2 and 1.8.7 #12 [l15n]
179 * Fixed bugs encountered when running specs on Ruby 1.9.2 #12 [l15n]
180 * Clean up documentation (formatting and editing) #12 [l15n]
181 * Use Proc.new instead of lambda for scoped_options #13 [l15n]
182 * Use AS hooks for loading AR #14 [hasimo]
183 * Refactor scope definition with Concerns #15 [l15n]
184 * Ensure output_buffer is always initialized #11 [kichiro]
185
6f892df @amatsuda documentation
authored Feb 18, 2011
186 == 0.9.13
187
188 * Added Mongoid support #5 [juno, hibariya]
189 This means, Kaminari is now *ORM agnostic* ☇3☇3☇3
190
01fe46c @amatsuda documentation
authored Feb 17, 2011
191 == 0.9.12
192
193 * Moved the whole pagination logic to the paginator partial so that users can
194 touch it
195 Note: You need to update your _paginator.html.* if you've already customized
196 it. If you haven't overridden _paginator.html.* files, then probably
197 there're nothing you have to do.
198 See this commit for the example:
199 https://github.com/amatsuda/kaminari_themes/commit/2dfb41c
200
aae63bd @amatsuda documentation
authored Feb 17, 2011
201 == 0.9.10
202
203 * the per() method accepts String, zero and minus value now #7 [koic]
204 This enables you to do something like this:
205 Model.page(params[:page]).per(params[:per])
206
207 * Added support for Gem Testers (http://gem-testers.org/) #8 [joealba]
208
fb7241e @amatsuda documentation
authored Feb 13, 2011
209 == 0.9.9
210
211 * :params option for the helper [yomukaku_memo]
212 You can override each link's url_for option by this option
213 Example:
214 = paginate @users, :params => {:controller => 'users', :action => 'index2'}
215
216 * refactor tags
217
2347a99 @amatsuda documentation
authored Feb 13, 2011
218 == 0.9.8
219
220 * I18n for the partials
221 [:previous, :next, :truncate] are externalized to the I18n resource.
222
eac89cc @amatsuda documentation
authored Feb 13, 2011
223 == 0.9.7
224
225 * moved template themes to another repo
226 https://github.com/amatsuda/kaminari_themes
227
07b5405 @amatsuda documentation
authored Feb 12, 2011
228 == 0.9.6
229
230 * added paginates_per method for setting default per_page value for each model
231 in a declarative way
232 Example:
233 class Article < ActiveRecord::Base
234 paginates_per 10
235 end
236
ecf8316 @amatsuda Version bump to 0.9.5
authored Feb 11, 2011
237 == 0.9.5
238
239 * works on AR 3.0.0 and 3.0.1 now #4 [danillos]
240
c926e0d @amatsuda documentation
authored Feb 11, 2011
241 == 0.9.4
242
243 * introduced module based tags
244 As a side effect of this internal change, I have to confess that this
caadaa6 @amatsuda typos
authored Feb 11, 2011
245 version brings you a slight backward incompatibility on template API.
246 If you're using custom templates, be sure to update your existing templates.
c926e0d @amatsuda documentation
authored Feb 11, 2011
247 To catch up the new API, you need to update %w[next_url prev_url page_url]
248 local variables to simple 'url' like this.
249 https://github.com/amatsuda/kaminari/commit/da88729
250
ac85de6 @amatsuda documentation
authored Feb 11, 2011
251 == 0.9.3
252
253 * improved template detection logic
254 When a template for a tag could not be found in the app/views/kaminari/
c926e0d @amatsuda documentation
authored Feb 11, 2011
255 directory, it searches the tag's ancestor template files before falling back
256 to engine's default template. This may help keeping your custom templates DRY.
ac85de6 @amatsuda documentation
authored Feb 10, 2011
257
258 * simplified bundled template themes
259
bf3fa28 @amatsuda documentation
authored Feb 10, 2011
260 == 0.9.2
261
262 * stop adding extra LF between templates when joining
263
264 * githubish template theme [maztomo]
265
d250be5 @amatsuda documentation
authored Feb 9, 2011
266 == 0.9.1
267
b803108 @amatsuda documentation
authored Feb 10, 2011
268 * googlish template theme [maztomo]
d250be5 @amatsuda documentation
authored Feb 9, 2011
269
df87abd @amatsuda documentation
authored Feb 9, 2011
270 == 0.9.0
271
272 * added "per_page" to the template local variables #3 [hsbt]
273
274 * show no contents when the current page is the only page (in other words,
275 num_pages == 1) #2 [hsbt]
276
0499de6 @amatsuda documentation
authored Feb 8, 2011
277 == 0.8.0
278
279 * using HTML5 <nav> tag rather than <div> for the container tag
280
0d00d43 @amatsuda documentation
authored Feb 7, 2011
281 == 0.7.0
282
283 * Ajaxified paginator templates
284
da335fd @amatsuda Version bump to 0.6.0
authored Feb 7, 2011
285 == 0.6.0
286
287 * Hamlized paginator templates
288
c1fbe97 @amatsuda add CHANGELOG
authored Feb 7, 2011
289 == 0.5.0
290
291 * reset content_for :kaminari_paginator_tags before rendering #1 [hsbt]
292
293 == 0.4.0
294
295 * partialize the outer div
296
297 == 0.3.0
298
299 * suppress logging when rendering each partial
300
301 == 0.2.0
302
303 * default PER_PAGE to 25 [hsbt]
304
305 == 0.1.0
306
307 * First release
Something went wrong with that request. Please try again.