Skip to content
Browse files

release 2.3.0

  • Loading branch information...
1 parent 2e45f01 commit 87d3d8df099b08e3b5d81a5aaa1064325a7edbca @mislav committed
Showing with 27 additions and 5 deletions.
  1. +15 −0 CHANGELOG
  2. +1 −1 README.rdoc
  3. +2 −2 lib/will_paginate/version.rb
  4. +8 −1 lib/will_paginate/view_helpers.rb
  5. +1 −1 will_paginate.gemspec
View
15 CHANGELOG
@@ -1,3 +1,18 @@
+== 2.3.0, released 2008-04-29
+
+* Changed LinkRenderer to receive collection, options and reference to view template NOT in
+ constructor, but with the #prepare method. This is a step towards supporting passing of
+ LinkRenderer (or subclass) instances that may be preconfigured in some way
+* LinkRenderer now has #page_link and #page_span methods for easier customization of output in
+ subclasses
+* Changed page_entries_info() method to adjust its output according to humanized class name of
+ collection items. Override this with :entry_name parameter (singular).
+
+ page_entries_info(@posts)
+ #-> "Displaying all 12 posts"
+ page_entries_info(@posts, :entry_name => 'item')
+ #-> "Displaying all 12 items"
+
== 2.2.3, released 2008-04-26
* will_paginate gem is no longer published on RubyForge, but on
View
2 README.rdoc
@@ -113,7 +113,7 @@ contributions or just simply awesome ideas:
Chris Wanstrath, Dr. Nic Williams, K. Adam Christensen, Mike Garey, Bence
Golda, Matt Aimonetti, Charles Brian Quinn, Desi McAdam, James Coglan, Matijs
van Zuijlen, Maria, Brendan Ribera, Todd Willey, Bryan Helmkamp, Jan Berkel,
-Lourens Naudé, Rick Olson, Russell Norris.
+Lourens Naudé, Rick Olson, Russell Norris, Piotr Usewicz, Chris Eppstein.
== Usable pagination in the UI
View
4 lib/will_paginate/version.rb
@@ -1,8 +1,8 @@
module WillPaginate #:nodoc:
module VERSION #:nodoc:
MAJOR = 2
- MINOR = 2
- TINY = 3
+ MINOR = 3
+ TINY = 0
STRING = [MAJOR, MINOR, TINY].join('.')
end
View
9 lib/will_paginate/view_helpers.rb
@@ -139,7 +139,14 @@ def paginated_section(*args, &block)
# You can use this as a blueprint for your own, similar helpers.
#
# <%= page_entries_info @posts %>
- # #-> Displaying entries 6 - 10 of 26 in total
+ # #-> Displaying posts 6 - 10 of 26 in total
+ #
+ # By default, the message will use the humanized class name of objects
+ # in collection: for instance, "project types" for ProjectType models.
+ # Override this to your liking with the <tt>:entry_name</tt> parameter:
+ #
+ # <%= page_entries_info @posts, :entry_name => 'item' %>
+ # #-> Displaying items 6 - 10 of 26 in total
def page_entries_info(collection, options = {})
entry_name = options[:entry_name] ||
(collection.empty?? 'entry' : collection.first.class.name.underscore.sub('_', ' '))
View
2 will_paginate.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'will_paginate'
- s.version = '2.2.3'
+ s.version = '2.3.0'
s.date = '2008-04-26'
s.summary = "Most awesome pagination solution for Rails"

0 comments on commit 87d3d8d

Please sign in to comment.
Something went wrong with that request. Please try again.