<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>will_paginate.gemspec</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,16 @@
+== 2.2.3, released 2008-04-26
+
+* will_paginate gem is no longer published on RubyForge, but on
+  gems.github.com:
+  
+    gem sources -a http://gems.github.com/  (you only need to do this once)
+    gem install mislav-will_paginate
+    
+* extract reusable pagination testing stuff into WillPaginate::View
+* rethink the page URL construction mechanizm to be more bulletproof when
+  combined with custom routing for page parameter
+* test that anchor parameter can be used in pagination links
+
 == 2.2.2, released 2008-04-21
 
 * Add support for page parameter in custom routes like &quot;/foo/page/2&quot;</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -11,8 +11,8 @@ can.
 
 Some resources to get you started:
 
-* Your mind reels with questions? Join our Google
-  group[http://groups.google.com/group/will_paginate].
+* Your mind reels with questions? Join our
+  {Google group}[http://groups.google.com/group/will_paginate].
 * The will_paginate project page: http://github.com/mislav/will_paginate
 * How to report bugs: http://github.com/mislav/will_paginate/wikis/report-bugs
 * Ryan Bates made an awesome screencast[http://railscasts.com/episodes/51],
@@ -20,35 +20,34 @@ Some resources to get you started:
 
 == Installation
 
-Previously, the plugin was available on the following SVN location:
+The recommended way is that you get the gem:
 
-  svn://errtheblog.com/svn/plugins/will_paginate
+  # add GitHub to your local list of gem sources:
+  gem sources -a http://gems.github.com/
+  
+  # install the gem:
+  gem install mislav-will_paginate
 
-In February 2008, it moved to GitHub to be tracked with git version control.
-The SVN repo continued to have updates for some time, but now it doesn't.
-
-You should switch to using the gem:
-
-  gem install will_paginate
-
-After that, you can remove the plugin from your application and add
-a simple require to the end of config/environment.rb:
+After that you don't need the will_paginate &lt;i&gt;plugin&lt;/i&gt; in your Rails
+application anymore. Just add a simple require to the end of
+&quot;config/environment.rb&quot;:
 
+  gem 'mislav-will_paginate', '~&gt; 2.2'
   require 'will_paginate'
 
-That's it, just remember to install the gem on all machines that
-you are deploying to.
+That's it. Remember to install the gem on &lt;b&gt;all&lt;/b&gt; machines that you are
+deploying to.
 
 &lt;i&gt;There are extensive
-installation[http://github.com/mislav/will_paginate/wikis/installation]
-instructions on the wiki[http://github.com/mislav/will_paginate/wikis].&lt;/i&gt;
+{installation instructions}[http://github.com/mislav/will_paginate/wikis/installation]
+on {the wiki}[http://github.com/mislav/will_paginate/wikis].&lt;/i&gt;
 
 
 == Example usage
 
 Use a paginate finder in the controller:
 
-    @posts = Post.paginate_by_board_id @board.id, :page =&gt; params[:page], :order =&gt; 'updated_at DESC'
+  @posts = Post.paginate_by_board_id @board.id, :page =&gt; params[:page], :order =&gt; 'updated_at DESC'
 
 Yeah, +paginate+ works just like +find+ -- it just doesn't fetch all the
 records.  Don't forget to tell it which page you want, or it will complain!
@@ -57,7 +56,7 @@ Read more on WillPaginate::Finder::ClassMethods.
 Render the posts in your view like you would normally do. When you need to render
 pagination, just stick this in:
 
-    &lt;%= will_paginate @posts %&gt;
+  &lt;%= will_paginate @posts %&gt;
 
 You're done. (Copy and paste the example fancy CSS styles from the bottom.) You
 can find the option list at WillPaginate::ViewHelpers.
@@ -65,36 +64,36 @@ can find the option list at WillPaginate::ViewHelpers.
 How does it know how much items to fetch per page? It asks your model by calling
 its &lt;tt&gt;per_page&lt;/tt&gt; class method. You can define it like this:
 
-    class Post &lt; ActiveRecord::Base
-      cattr_reader :per_page
-      @@per_page = 50
-    end
+  class Post &lt; ActiveRecord::Base
+    cattr_reader :per_page
+    @@per_page = 50
+  end
 
 ... or like this:
 
-    class Post &lt; ActiveRecord::Base
-      def self.per_page
-        50
-      end
+  class Post &lt; ActiveRecord::Base
+    def self.per_page
+      50
     end
+  end
 
 ... or don't worry about it at all. WillPaginate defines it to be &lt;b&gt;30&lt;/b&gt; by default.
 But you can always specify the count explicitly when calling +paginate+:
 
-    @posts = Post.paginate :page =&gt; params[:page], :per_page =&gt; 50
+  @posts = Post.paginate :page =&gt; params[:page], :per_page =&gt; 50
 
 The +paginate+ finder wraps the original finder and returns your resultset that now has
 some new properties. You can use the collection as you would with any ActiveRecord
 resultset. WillPaginate view helpers also need that object to be able to render pagination:
 
-    &lt;ol&gt;
-      &lt;% for post in @posts -%&gt;
-        &lt;li&gt;Render `post` in some nice way.&lt;/li&gt;
-      &lt;% end -%&gt;
-    &lt;/ol&gt;
+  &lt;ol&gt;
+    &lt;% for post in @posts -%&gt;
+      &lt;li&gt;Render `post` in some nice way.&lt;/li&gt;
+    &lt;% end -%&gt;
+  &lt;/ol&gt;
 
-    &lt;p&gt;Now let's render us some pagination!&lt;/p&gt;
-    &lt;%= will_paginate @posts %&gt;
+  &lt;p&gt;Now let's render us some pagination!&lt;/p&gt;
+  &lt;%= will_paginate @posts %&gt;
 
 More detailed documentation:
 
@@ -131,5 +130,6 @@ More reading about pagination as design pattern:
 * Pagination on Yahoo Design Pattern Library:
   http://developer.yahoo.com/ypatterns/parent.php?pattern=pagination
 
-Want to discuss, request features, ask questions? Join the Google group:
-http://groups.google.com/group/will_paginate
+Want to discuss, request features, ask questions? Join the
+{Google group}[http://groups.google.com/group/will_paginate].
+</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -73,7 +73,9 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
 end
 
 task :manifest do
-  list = Dir['**/*']
+  list = Dir['**/*'].sort
+  spec_file = Dir['*.gemspec'].first
+  list -= [spec_file]
   
   File.read('.gitignore').each_line do |glob|
     glob = glob.chomp.sub(/^\//, '')
@@ -81,37 +83,16 @@ task :manifest do
     list -= Dir[&quot;#{glob}/**/*&quot;] if File.directory?(glob) and !File.symlink?(glob)
     puts &quot;excluding #{glob}&quot;
   end
-  
-  File.open('.manifest', 'w') do |file|
-    file.write list.sort.join(&quot;\n&quot;)
-  end
-end
 
-desc 'Package and upload the release to rubyforge.'
-task :release do
-  require 'yaml'
-  require 'rubyforge'
-  
-  meta = YAML::load open('.gemified')
-  version = meta[:version]
-  
-  v = ENV['VERSION'] or abort &quot;Must supply VERSION=x.y.z&quot;
-  abort &quot;Version doesn't match #{version}&quot; if v != version
-  
-  gem = &quot;#{meta[:name]}-#{version}.gem&quot;
-  project = meta[:rubyforge_project]
- 
-  rf = RubyForge.new
-  puts &quot;Logging in to RubyForge&quot;
-  rf.login
- 
-  c = rf.userconfig
-  c['release_notes'] = meta[:summary]
-  c['release_changes'] = File.read('CHANGELOG').split(/^== .+\n/)[1].strip
-  c['preformatted'] = true
- 
-  puts &quot;Releasing #{meta[:name]} #{version}&quot;
-  rf.add_release project, project, version, gem
+  spec = File.read spec_file
+  spec.gsub! /^(\s* s.(test_)?files \s* = \s* )( \[ [^\]]* \] | %w\( [^)]* \) )/mx do
+    assignment = $1
+    bunch = $2 ? list.grep(/^test\//) : list
+    '%s%%w(%s)' % [assignment, bunch.join(' ')]
+  end
+    
+  File.open(spec_file,   'w') {|f| f &lt;&lt; spec }
+  File.open('.manifest', 'w') {|f| f &lt;&lt; list.join(&quot;\n&quot;) }
 end
 
 task :examples do</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>96166037a72a0c35fc6129f075c0c49c9fc21772</id>
    </parent>
  </parents>
  <author>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </author>
  <url>http://github.com/mislav/will_paginate/commit/3334327b6a6ab8f46e29f88c59449f8ba4583833</url>
  <id>3334327b6a6ab8f46e29f88c59449f8ba4583833</id>
  <committed-date>2008-04-25T18:25:51-07:00</committed-date>
  <authored-date>2008-04-25T17:47:03-07:00</authored-date>
  <message>add gemspec file. change rake manifest to auto-update the gemspec. get rid of rubyforge release task</message>
  <tree>adf4c87635b3592aab48c2a0eace6f470fe887a1</tree>
  <committer>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </committer>
</commit>
