2012-09-11 08:31:57 -04:00
|
|
|
== 0.14.1
|
|
|
|
|
|
|
|
* Changed the default "truncation" String from "..." to … #264 [pjaspers]
|
|
|
|
|
|
|
|
* The theme generator is Github API v3 compatible now! #279 [eitoball]
|
|
|
|
|
|
|
|
* Made Kaminari.config.default_per_page changeable again #280 [yuki24]
|
|
|
|
|
2012-09-02 14:00:02 -04:00
|
|
|
== 0.14.0
|
|
|
|
|
|
|
|
* Grape framework support! #218 [mrplum]
|
|
|
|
|
|
|
|
* Mongoid 3 ready! #238 [shingara]
|
|
|
|
|
|
|
|
* Added link_to_previous_page helper #191 [timgremore]
|
|
|
|
|
|
|
|
* Added helper to generate rel="next" and rel="prev" link tags for SEO #200
|
|
|
|
[joe1chen]
|
|
|
|
|
|
|
|
* Added `max_per_page` configuration option #274 [keiko0713]
|
|
|
|
This would be useful for the case when you are using user input `per_page`
|
|
|
|
value but want to impose the upper bound.
|
|
|
|
|
|
|
|
* Added I18n to page_entries_info #207 [plribeiro3000]
|
|
|
|
|
|
|
|
* Changed method name "num_pages" to "total_pages"
|
|
|
|
num_pages" is still available as an alias of "total_pages", but will be
|
|
|
|
deprecated or removed in some future version.
|
|
|
|
|
|
|
|
* Changed the way page_entries_info behave so it can show appropriate names
|
|
|
|
for models with namespace #207 [plribeiro3000]
|
|
|
|
|
|
|
|
* Added html_safe to page_entries_info helper #190 [lucapette]
|
|
|
|
|
|
|
|
* Fixed displayed number of items on each page w/ Mongoid 2.4.x and
|
|
|
|
MongoMapper #194 [dblock]
|
|
|
|
|
|
|
|
* Removed a unused local variable from templates from default tamplate #245 [juno]
|
|
|
|
|
|
|
|
* Fixed page_entry_info to use the value of `entry_name` option when given
|
|
|
|
collection is empty or a PaginatableArray #265, #277 [eitoball]
|
|
|
|
|
|
|
|
* Added require 'dm-aggregates' in DataMapper hook #259 [shingara]
|
|
|
|
|
2011-12-21 18:51:31 -05:00
|
|
|
== 0.13.0
|
|
|
|
|
|
|
|
* Rails 3.2 ready! #180 [slbug]
|
|
|
|
|
|
|
|
* DataMapper support! #149 [NoICE, Ragmaanir]
|
|
|
|
|
|
|
|
* Sinatra & Padrino support! #179 [udzura, mlightner, aereal]
|
|
|
|
|
|
|
|
* Added mongoid embedded documents support! #155 [yuki24]
|
|
|
|
|
|
|
|
* Added `each_relevant_page` that only visits pages in the inner or outer
|
|
|
|
windows #154 [cbeer]
|
|
|
|
Performance improved, particularly with very large number of pages.
|
|
|
|
|
|
|
|
* Memoize count for AR when calling `total_count` #138 [sarmiena]
|
|
|
|
Increases performance for large datasets.
|
|
|
|
|
|
|
|
* Added `page_entries_info` view helper #140 [jeffreyiacono]
|
|
|
|
Example:
|
|
|
|
<%= page_entries_info @posts %>
|
|
|
|
#=> Displaying posts 6 - 10 of 26 in total
|
|
|
|
|
|
|
|
* Added `link_to_next_page` helper method that simply links to the next page
|
|
|
|
Example:
|
|
|
|
<%= link_to_next_page @posts, 'More' %>
|
2012-09-02 14:05:08 -04:00
|
|
|
#=> <a href="/posts?page=7" rel="next">More</a>
|
2011-12-21 18:51:31 -05:00
|
|
|
|
|
|
|
* Let one override the `rel` attribute for 'link_to_next_page` helper #177
|
|
|
|
[webmat]
|
|
|
|
|
|
|
|
* Added `total_count` param for PaginatableArray. Useful for when working with
|
|
|
|
RSolr #141 [samdalton]
|
|
|
|
|
|
|
|
* Changed `Kaminari.paginate_array` API to take a Hash `options`
|
|
|
|
And specifying :limit & :offset immediately builds a pagination ready object
|
2012-09-02 14:05:08 -04:00
|
|
|
Example:
|
2011-12-21 18:51:31 -05:00
|
|
|
# the following two are equivalent. Use whichever you like
|
|
|
|
Kaminari.paginate_array((1..100).to_a, limit: 10, offset: 10)
|
|
|
|
Kaminari.paginate_array((1..100).to_a).page(2).per(10)
|
|
|
|
|
|
|
|
* Added `padding` method to skip an arbitrary record count #60 [aaronjensen]
|
|
|
|
Example:
|
|
|
|
User.page(2).per(10).padding(3) # this will return users 14..23
|
|
|
|
|
|
|
|
* Made the pagination method name (defaulted to `page`) configurable #57, #162
|
|
|
|
Example:
|
|
|
|
# you can use the config file and its generator for this
|
2012-09-02 14:05:08 -04:00
|
|
|
Kaminari.config.page_method_name = :paging
|
|
|
|
Article.paging(3).per(30)
|
2011-12-21 18:51:31 -05:00
|
|
|
|
|
|
|
* Only add extensions to direct descendents of ActiveRecord::Base #108
|
|
|
|
[seejohnrun]
|
|
|
|
|
|
|
|
* AR models that were subclassed before Kaminari::ActiveRecordExtension is
|
|
|
|
included pick up the extensions #119 [pivotal-casebook]
|
|
|
|
|
|
|
|
* Avoid overwriting AR::Base inherited method #165 [briandmcnabb]
|
|
|
|
|
|
|
|
* Stopped depending on Rails gem #159 [alsemyonov]
|
|
|
|
|
|
|
|
* introduced Travis CI #181 [hsbt]
|
|
|
|
|
2011-05-02 13:37:18 -04:00
|
|
|
== 0.12.4
|
|
|
|
|
2011-05-03 21:40:53 -04:00
|
|
|
* Support for config.param_name as lambda #102 [ajrkerr]
|
|
|
|
|
|
|
|
* Stop duplicating order_values #65 [zettabyte]
|
|
|
|
|
|
|
|
* Preserve select value (e.g. "distinct") when counting #77, #104 [tbeauvais,
|
|
|
|
beatlevic]
|
2011-05-02 13:37:18 -04:00
|
|
|
|
2011-04-27 14:51:13 -04:00
|
|
|
== 0.12.3
|
|
|
|
|
2011-04-27 14:53:51 -04:00
|
|
|
* Haml 3.1 Support #96 [FlyboyArt, sonic921]
|
2011-04-27 14:51:13 -04:00
|
|
|
|
2011-04-26 22:46:04 -04:00
|
|
|
== 0.12.2
|
|
|
|
|
|
|
|
* Added MongoMapper Support #101 [hamin]
|
|
|
|
|
|
|
|
* Add first_page? and last_page? to page_scope_methods #51 [holinnn]
|
|
|
|
|
|
|
|
* Make sure that the paginate helper always returns a String #99 [Draiken]
|
|
|
|
|
|
|
|
* Don't remove includes scopes from count if they are needed #100 [flop]
|
|
|
|
|
2011-04-25 03:20:07 -04:00
|
|
|
== 0.12.1
|
|
|
|
|
|
|
|
* Slim template support #93 [detrain]
|
|
|
|
|
|
|
|
* Use Kaminari.config to specify default value for param_name #94 [avsej]
|
|
|
|
|
|
|
|
* Fixed "super called outside of method" error happened in particular versions
|
|
|
|
of Ruby 1.8.7 #91 [Skulli]
|
|
|
|
|
2011-04-25 03:26:08 -04:00
|
|
|
* _paginate.html.erb isn't rendered with custom theme #97 [danlunde]
|
|
|
|
|
2011-04-21 23:52:25 -04:00
|
|
|
== 0.12.0
|
|
|
|
|
|
|
|
* General configuration options #41 #62 [javierv, iain]
|
|
|
|
You can now globally override some default values such as default_per_page,
|
|
|
|
window, etc. via configuration file.
|
|
|
|
Also, here comes a generator command that generates the default
|
|
|
|
configuration file into your app's config/initilizers directory.
|
|
|
|
|
2011-04-25 03:20:07 -04:00
|
|
|
* Generic pagination support for Array object #47 #68 #74 [lda, ened, jianlin]
|
2011-04-21 23:52:25 -04:00
|
|
|
You can now paginate through any kind of Arrayish object in this way:
|
|
|
|
Kaminari.paginate_array(my_array_object).page(params[:page]).per(10)
|
|
|
|
|
|
|
|
* Fixed a serious performance regression in 0.11.0 [ankane]
|
|
|
|
There was a critical performance issue on #count method in 0.11.0 gem.
|
|
|
|
|
|
|
|
* Bugfix: Pass the real @params to url_for #90 [utkarshkukreti]
|
|
|
|
|
|
|
|
* Fixed a gem packaging problem (circular dependency)
|
|
|
|
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...
|
|
|
|
|
2011-04-19 09:15:34 -04:00
|
|
|
== 0.11.0
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
* Merge _current_page, _first_page_link, _last_page_link and _page_link into
|
|
|
|
one _page partial #28 [GarthSnyder]
|
|
|
|
|
|
|
|
* Add real first/last page links, and use them by default instead of outer
|
|
|
|
window #30 [GarthSnyder]
|
|
|
|
|
|
|
|
* The disabled items should simply not be emitted, even as an empty span #30
|
|
|
|
[GarthSnyder]
|
|
|
|
|
|
|
|
* Skip :order in #count_all so complex groups with generated columns don't
|
|
|
|
blow up in SQL-land #61 [keeran, Empact]
|
|
|
|
|
|
|
|
* Ignore :include in #count_all to make it work better with polymorphic eager
|
|
|
|
loading #80 [njakobsen]
|
|
|
|
|
|
|
|
* Quick fix on #count to return the actual number of records on AR 3.0 #45 #50
|
|
|
|
|
|
|
|
* Removed "TERRIBLE HORRIBLE NO GOOD VERY BAD HACK" #82 [janx, flop, pda]
|
|
|
|
|
|
|
|
* Allow for Multiple Themes #64 [tmilewski]
|
|
|
|
|
|
|
|
* Themes can contain the whole application directory structure now
|
|
|
|
|
|
|
|
* Use gemspec method in Gemfile [p_elliott]
|
|
|
|
|
2011-02-24 08:11:38 -05:00
|
|
|
== 0.10.4
|
|
|
|
|
|
|
|
* Do not break ActiveRecord::Base.descendants, by making sure to call super
|
|
|
|
from ActiveRecord::Base.inherited #34 [rolftimmermans]
|
|
|
|
|
|
|
|
* Fixed vanishing mongoid criteria after calling page() #26 [tyok]
|
|
|
|
|
2011-02-23 09:07:27 -05:00
|
|
|
== 0.10.3
|
|
|
|
|
|
|
|
* Fixed a bug that total_count() didn't work when chained with group() scope
|
|
|
|
#21 [jgeiger]
|
|
|
|
|
|
|
|
* Fixed a bug that the paginate helper didn't work properly with an Ajax call
|
|
|
|
#23 [hjuskewycz]
|
|
|
|
|
2011-02-21 23:06:03 -05:00
|
|
|
== 0.10.2
|
|
|
|
|
|
|
|
* Added :param_name option to the pagination helper #10 [ivanvr]
|
|
|
|
Example:
|
|
|
|
= paginate @users, :param_name => :pagina
|
|
|
|
|
2011-02-20 18:24:45 -05:00
|
|
|
== 0.10.1
|
|
|
|
|
|
|
|
* Fixed a bug that the whole <nav> section was not rendered in some cases
|
|
|
|
[GarthSnyder]
|
|
|
|
|
2011-02-20 15:38:05 -05:00
|
|
|
== 0.10.0
|
|
|
|
|
|
|
|
* Railtie initializer name is "kaminari" from now
|
|
|
|
* Changed bundler settings to work both on 1.9.2 and 1.8.7 #12 [l15n]
|
|
|
|
* Fixed bugs encountered when running specs on Ruby 1.9.2 #12 [l15n]
|
|
|
|
* Clean up documentation (formatting and editing) #12 [l15n]
|
|
|
|
* Use Proc.new instead of lambda for scoped_options #13 [l15n]
|
|
|
|
* Use AS hooks for loading AR #14 [hasimo]
|
|
|
|
* Refactor scope definition with Concerns #15 [l15n]
|
|
|
|
* Ensure output_buffer is always initialized #11 [kichiro]
|
|
|
|
|
2011-02-18 01:36:05 -05:00
|
|
|
== 0.9.13
|
|
|
|
|
|
|
|
* Added Mongoid support #5 [juno, hibariya]
|
|
|
|
This means, Kaminari is now *ORM agnostic* ☇3☇3☇3
|
|
|
|
|
2011-02-16 21:53:24 -05:00
|
|
|
== 0.9.12
|
|
|
|
|
|
|
|
* Moved the whole pagination logic to the paginator partial so that users can
|
|
|
|
touch it
|
|
|
|
Note: You need to update your _paginator.html.* if you've already customized
|
2012-09-02 14:05:08 -04:00
|
|
|
it. If you haven't overridden _paginator.html.* files, then probably
|
|
|
|
there're nothing you have to do.
|
|
|
|
See this commit for the example:
|
|
|
|
https://github.com/amatsuda/kaminari_themes/commit/2dfb41c
|
2011-02-16 21:53:24 -05:00
|
|
|
|
2011-02-16 12:43:05 -05:00
|
|
|
== 0.9.10
|
|
|
|
|
|
|
|
* the per() method accepts String, zero and minus value now #7 [koic]
|
|
|
|
This enables you to do something like this:
|
|
|
|
Model.page(params[:page]).per(params[:per])
|
|
|
|
|
|
|
|
* Added support for Gem Testers (http://gem-testers.org/) #8 [joealba]
|
|
|
|
|
2011-02-13 04:46:55 -05:00
|
|
|
== 0.9.9
|
|
|
|
|
|
|
|
* :params option for the helper [yomukaku_memo]
|
|
|
|
You can override each link's url_for option by this option
|
2012-09-02 14:05:08 -04:00
|
|
|
Example:
|
|
|
|
= paginate @users, :params => {:controller => 'users', :action => 'index2'}
|
2011-02-13 04:46:55 -05:00
|
|
|
|
|
|
|
* refactor tags
|
|
|
|
|
2011-02-12 16:27:42 -05:00
|
|
|
== 0.9.8
|
|
|
|
|
|
|
|
* I18n for the partials
|
|
|
|
[:previous, :next, :truncate] are externalized to the I18n resource.
|
|
|
|
|
2011-02-12 14:30:47 -05:00
|
|
|
== 0.9.7
|
|
|
|
|
|
|
|
* moved template themes to another repo
|
|
|
|
https://github.com/amatsuda/kaminari_themes
|
|
|
|
|
2011-02-11 11:20:48 -05:00
|
|
|
== 0.9.6
|
|
|
|
|
|
|
|
* added paginates_per method for setting default per_page value for each model
|
|
|
|
in a declarative way
|
|
|
|
Example:
|
|
|
|
class Article < ActiveRecord::Base
|
|
|
|
paginates_per 10
|
|
|
|
end
|
|
|
|
|
2011-02-11 06:48:09 -05:00
|
|
|
== 0.9.5
|
|
|
|
|
|
|
|
* works on AR 3.0.0 and 3.0.1 now #4 [danillos]
|
|
|
|
|
2011-02-11 04:29:38 -05:00
|
|
|
== 0.9.4
|
|
|
|
|
|
|
|
* introduced module based tags
|
|
|
|
As a side effect of this internal change, I have to confess that this
|
2011-02-11 05:13:02 -05:00
|
|
|
version brings you a slight backward incompatibility on template API.
|
|
|
|
If you're using custom templates, be sure to update your existing templates.
|
2011-02-11 04:29:38 -05:00
|
|
|
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
|
|
|
|
|
2011-02-10 18:35:21 -05:00
|
|
|
== 0.9.3
|
|
|
|
|
|
|
|
* improved template detection logic
|
|
|
|
When a template for a tag could not be found in the app/views/kaminari/
|
2011-02-11 04:29:38 -05:00
|
|
|
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.
|
2011-02-10 18:35:21 -05:00
|
|
|
|
|
|
|
* simplified bundled template themes
|
|
|
|
|
2011-02-09 15:35:56 -05:00
|
|
|
== 0.9.2
|
|
|
|
|
|
|
|
* stop adding extra LF between templates when joining
|
|
|
|
|
|
|
|
* githubish template theme [maztomo]
|
|
|
|
|
2011-02-09 08:06:41 -05:00
|
|
|
== 0.9.1
|
|
|
|
|
2011-02-09 10:29:48 -05:00
|
|
|
* googlish template theme [maztomo]
|
2011-02-09 08:06:41 -05:00
|
|
|
|
2011-02-08 17:53:45 -05:00
|
|
|
== 0.9.0
|
|
|
|
|
|
|
|
* added "per_page" to the template local variables #3 [hsbt]
|
|
|
|
|
|
|
|
* show no contents when the current page is the only page (in other words,
|
|
|
|
num_pages == 1) #2 [hsbt]
|
|
|
|
|
2011-02-07 21:58:41 -05:00
|
|
|
== 0.8.0
|
|
|
|
|
|
|
|
* using HTML5 <nav> tag rather than <div> for the container tag
|
|
|
|
|
2011-02-07 07:18:21 -05:00
|
|
|
== 0.7.0
|
|
|
|
|
|
|
|
* Ajaxified paginator templates
|
|
|
|
|
2011-02-06 21:34:07 -05:00
|
|
|
== 0.6.0
|
|
|
|
|
|
|
|
* Hamlized paginator templates
|
|
|
|
|
2011-02-06 21:08:50 -05:00
|
|
|
== 0.5.0
|
|
|
|
|
|
|
|
* reset content_for :kaminari_paginator_tags before rendering #1 [hsbt]
|
|
|
|
|
|
|
|
== 0.4.0
|
|
|
|
|
|
|
|
* partialize the outer div
|
|
|
|
|
|
|
|
== 0.3.0
|
|
|
|
|
|
|
|
* suppress logging when rendering each partial
|
|
|
|
|
|
|
|
== 0.2.0
|
|
|
|
|
|
|
|
* default PER_PAGE to 25 [hsbt]
|
|
|
|
|
|
|
|
== 0.1.0
|
|
|
|
|
|
|
|
* First release
|