CHANGELOG 8.7 KB

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