Skip to content

Commit

Permalink
add CHANGELOG covering the 2.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Apr 7, 2008
1 parent 7525ee8 commit 4ca58bb
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
1 change: 1 addition & 0 deletions .manifest
@@ -1,3 +1,4 @@
CHANGELOG
LICENSE
README.rdoc
Rakefile
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG
@@ -0,0 +1,33 @@
== 2.2.0, released 2008-04-07

=== API changes
* Rename WillPaginate::Collection#page_count to "total_pages" for consistency.
If you implemented this interface, change your implementation accordingly.
* Remove old, deprecated style of calling Array#paginate as "paginate(page,
per_page)". If you want to specify :page, :per_page or :total_entries, use a
parameter hash.
* Rename LinkRenderer#url_options to "url_for" and drastically optimize it

=== View changes
* Added "prev_page" and "next_page" CSS classes on previous/next page buttons
* Add examples of pagination links styling in "examples/index.html"
* Change gap in pagination links from "..." to
"<span class="gap">&hellip;</span>".
* Add "paginated_section", a block helper that renders pagination both above and
below content in the block
* Add rel="prev|next|start" to page links

=== Other

* Add ability to opt-in for Rails 2.1 feature "named_scope" by calling
WillPaginate.enable_named_scope (tested in Rails 1.2.6 and 2.0.2)
* Support complex page parameters like "developers[page]"
* Move Array#paginate definition to will_paginate/array.rb. You can now easily
use pagination on arrays outside of Rails:

gem 'will_paginate'
require 'will_paginate/array'

* Add "paginated_each" method for iterating through every record by loading only
one page of records at the time
* Rails 2: Rescue from WillPaginate::InvalidPage error with 404 Not Found by default
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -53,7 +53,7 @@ end

desc 'Generate RDoc documentation for the will_paginate plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
files = ['README.rdoc', 'LICENSE']
files = ['README.rdoc', 'LICENSE', 'CHANGELOG']
files << FileList.new('lib/**/*.rb').
exclude('lib/will_paginate/named_scope*').
exclude('lib/will_paginate/array.rb').
Expand Down
1 change: 0 additions & 1 deletion init.rb
@@ -1,2 +1 @@
require 'will_paginate'
WillPaginate.enable
4 changes: 4 additions & 0 deletions lib/will_paginate.rb
Expand Up @@ -80,3 +80,7 @@ def self.silenced?
end
end
end

if defined?(Rails) and defined?(ActiveRecord) and defined?(ActionController)
WillPaginate.enable
end

0 comments on commit 4ca58bb

Please sign in to comment.