<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>CHANGELOG.rdoc</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -11,32 +11,11 @@ can.
 
 Some resources to get you started:
 
+* {Installation instructions}[http://github.com/mislav/will_paginate/wikis/installation]
+  on {the wiki}[http://github.com/mislav/will_paginate/wikis]
 * 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],
-  check it out.
-
-== Installation
-
-The recommended way is that you get the gem:
-
-  gem install mislav-will_paginate --source http://gems.github.com/
-
-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. 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 instructions}[http://github.com/mislav/will_paginate/wikis/installation]
-on {the wiki}[http://github.com/mislav/will_paginate/wikis].&lt;/i&gt;
+* {How to report bugs}[http://github.com/mislav/will_paginate/wikis/report-bugs]
 
 
 == Example usage
@@ -54,8 +33,7 @@ pagination, just stick this in:
 
   &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.
+You're done. (You 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:
@@ -115,16 +93,13 @@ Lourens Naud&#233;, Rick Olson, Russell Norris, Piotr Usewicz, Chris Eppstein.
 == Usable pagination in the UI
 
 There are some CSS styles to get you started in the &quot;examples/&quot; directory. They
-are showcased in the &lt;b&gt;&quot;examples/index.html&quot;&lt;/b&gt; file.
+are {showcased online here}[http://mislav.caboo.se/static/will_paginate/].
 
 More reading about pagination as design pattern:
 
-* Pagination 101:
-  http://kurafire.net/log/archive/2007/06/22/pagination-101
-* Pagination gallery:
-  http://www.smashingmagazine.com/2007/11/16/pagination-gallery-examples-and-good-practices/
-* Pagination on Yahoo Design Pattern Library:
-  http://developer.yahoo.com/ypatterns/parent.php?pattern=pagination
+* {Pagination 101}[http://kurafire.net/log/archive/2007/06/22/pagination-101]
+* {Pagination gallery}[http://www.smashingmagazine.com/2007/11/16/pagination-gallery-examples-and-good-practices/]
+* {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].</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ task :default =&gt; :test
 
 desc 'Generate RDoc documentation for the will_paginate plugin.'
 Rake::RDocTask.new(:rdoc) do |rdoc|
-  rdoc.rdoc_files.include('README.rdoc', 'LICENSE', 'CHANGELOG').
+  rdoc.rdoc_files.include('README.rdoc', 'LICENSE', 'CHANGELOG.rdoc').
     include('lib/**/*.rb').
     exclude('lib/will_paginate/named_scope*').
     exclude('lib/will_paginate/array.rb').</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -9,29 +9,29 @@ require 'active_support'
 # Happy paginating!
 module WillPaginate
   class &lt;&lt; self
-    # shortcut for &lt;tt&gt;enable_actionpack; enable_activerecord&lt;/tt&gt;
+    # shortcut for &lt;tt&gt;enable_actionpack&lt;/tt&gt; and &lt;tt&gt;enable_activerecord&lt;/tt&gt; combined
     def enable
       enable_actionpack
       enable_activerecord
     end
     
-    # mixes in WillPaginate::ViewHelpers in ActionView::Base
+    # hooks WillPaginate::ViewHelpers into ActionView::Base
     def enable_actionpack
       return if ActionView::Base.instance_methods.include? 'will_paginate'
       require 'will_paginate/view_helpers'
-      ActionView::Base.class_eval { include ViewHelpers }
+      ActionView::Base.send :include, ViewHelpers
 
       if defined?(ActionController::Base) and ActionController::Base.respond_to? :rescue_responses
         ActionController::Base.rescue_responses['WillPaginate::InvalidPage'] = :not_found
       end
     end
     
-    # mixes in WillPaginate::Finder in ActiveRecord::Base and classes that deal
+    # hooks WillPaginate::Finder into ActiveRecord::Base and classes that deal
     # with associations
     def enable_activerecord
       return if ActiveRecord::Base.respond_to? :paginate
       require 'will_paginate/finder'
-      ActiveRecord::Base.class_eval { include Finder }
+      ActiveRecord::Base.send :include, Finder
 
       # support pagination on associations
       a = ActiveRecord::Associations
@@ -41,10 +41,8 @@ module WillPaginate
           classes &lt;&lt; a::HasManyThroughAssociation
         end
       }.each do |klass|
-        klass.class_eval do
-          include Finder::ClassMethods
-          alias_method_chain :method_missing, :paginate
-        end
+        klass.send :include, Finder::ClassMethods
+        klass.class_eval { alias_method_chain :method_missing, :paginate }
       end
     end
 
@@ -61,13 +59,11 @@ module WillPaginate
       require 'will_paginate/named_scope'
       require 'will_paginate/named_scope_patch' if patch
 
-      ActiveRecord::Base.class_eval do
-        include WillPaginate::NamedScope
-      end
+      ActiveRecord::Base.send :include, WillPaginate::NamedScope
     end
   end
 
-  module Deprecation #:nodoc:
+  module Deprecation # :nodoc:
     extend ActiveSupport::Deprecation
 
     def self.warn(message, callstack = caller)</diff>
      <filename>lib/will_paginate.rb</filename>
    </modified>
    <modified>
      <diff>@@ -33,12 +33,12 @@ module WillPaginate
   # 
   # If you are writing a library that provides a collection which you would like
   # to conform to this API, you don't have to copy these methods over; simply
-  # make your plugin/gem dependant on the &quot;will_paginate&quot; gem:
+  # make your plugin/gem dependant on the &quot;mislav-will_paginate&quot; gem:
   #
-  #   gem 'will_paginate'
+  #   gem 'mislav-will_paginate'
   #   require 'will_paginate/collection'
   #   
-  #   # now use WillPaginate::Collection directly or subclass it
+  #   # WillPaginate::Collection is now available for use
   class Collection &lt; Array
     attr_reader :current_page, :per_page, :total_entries, :total_pages
 
@@ -98,7 +98,7 @@ module WillPaginate
     # Current offset of the paginated collection. If we're on the first page,
     # it is always 0. If we're on the 2nd page and there are 30 entries per page,
     # the offset is 30. This property is useful if you want to render ordinals
-    # besides your records: simply start with offset + 1.
+    # side by side with records in the view: simply start with offset + 1.
     def offset
       (current_page - 1) * per_page
     end
@@ -112,7 +112,8 @@ module WillPaginate
     def next_page
       current_page &lt; total_pages ? (current_page + 1) : nil
     end
-
+    
+    # sets the &lt;tt&gt;total_entries&lt;/tt&gt; property and calculates &lt;tt&gt;total_pages&lt;/tt&gt;
     def total_entries=(number)
       @total_entries = number.to_i
       @total_pages   = (@total_entries / per_page.to_f).ceil</diff>
      <filename>lib/will_paginate/collection.rb</filename>
    </modified>
    <modified>
      <diff>@@ -94,8 +94,8 @@ module WillPaginate
       # You can specify a starting page with &lt;tt&gt;:page&lt;/tt&gt; (default is 1). Default
       # &lt;tt&gt;:order&lt;/tt&gt; is &lt;tt&gt;&quot;id&quot;&lt;/tt&gt;, override if necessary.
       #
-      # See http://weblog.jamisbuck.org/2007/4/6/faking-cursors-in-activerecord where
-      # Jamis Buck describes this and also uses a more efficient way for MySQL.
+      # See {Faking Cursors in ActiveRecord}[http://weblog.jamisbuck.org/2007/4/6/faking-cursors-in-activerecord]
+      # where Jamis Buck describes this and a more efficient way for MySQL.
       def paginated_each(options = {}, &amp;block)
         options = { :order =&gt; 'id', :page =&gt; 1 }.merge options
         options[:page] = options[:page].to_i</diff>
      <filename>lib/will_paginate/finder.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,20 +3,21 @@ require 'will_paginate/core_ext'
 module WillPaginate
   # = Will Paginate view helpers
   #
-  # Currently there is only one view helper: +will_paginate+. It renders the
+  # The main view helper, #will_paginate, renders
   # pagination links for the given collection. The helper itself is lightweight
-  # and serves only as a wrapper around link renderer instantiation; the
+  # and serves only as a wrapper around LinkRenderer instantiation; the
   # renderer then does all the hard work of generating the HTML.
   # 
   # == Global options for helpers
   #
   # Options for pagination helpers are optional and get their default values from the
-  # WillPaginate::ViewHelpers.pagination_options hash. You can write to this hash to
+  # &lt;tt&gt;WillPaginate::ViewHelpers.pagination_options&lt;/tt&gt; hash. You can write to this hash to
   # override default options on the global level:
   #
   #   WillPaginate::ViewHelpers.pagination_options[:previous_label] = 'Previous page'
   #
-  # By putting this into your environment.rb you can easily translate link texts to previous
+  # By putting this into &quot;config/initializers/will_paginate.rb&quot; (or simply environment.rb in
+  # older versions of Rails) you can easily translate link texts to previous
   # and next pages, as well as override some other defaults to your liking.
   module ViewHelpers
     # default options that can be overridden on the global level
@@ -40,32 +41,37 @@ module WillPaginate
     # rendering the pagination in that case...
     # 
     # ==== Options
-    # * &lt;tt&gt;:class&lt;/tt&gt; -- CSS class name for the generated DIV (default: &quot;pagination&quot;)
+    # Display options:
     # * &lt;tt&gt;:previous_label&lt;/tt&gt; -- default: &quot;&#171; Previous&quot;
     # * &lt;tt&gt;:next_label&lt;/tt&gt; -- default: &quot;Next &#187;&quot;
+    # * &lt;tt&gt;:page_links&lt;/tt&gt; -- when false, only previous/next links are rendered (default: true)
     # * &lt;tt&gt;:inner_window&lt;/tt&gt; -- how many links are shown around the current page (default: 4)
     # * &lt;tt&gt;:outer_window&lt;/tt&gt; -- how many links are around the first and the last page (default: 1)
     # * &lt;tt&gt;:separator&lt;/tt&gt; -- string separator for page HTML elements (default: single space)
-    # * &lt;tt&gt;:param_name&lt;/tt&gt; -- parameter name for page number in URLs (default: &lt;tt&gt;:page&lt;/tt&gt;)
-    # * &lt;tt&gt;:params&lt;/tt&gt; -- additional parameters when generating pagination links
-    #   (eg. &lt;tt&gt;:controller =&gt; &quot;foo&quot;, :action =&gt; nil&lt;/tt&gt;)
-    # * &lt;tt&gt;:renderer&lt;/tt&gt; -- class name, class or instance of a link renderer (default:
-    #   &lt;tt&gt;WillPaginate::LinkRenderer&lt;/tt&gt;)
-    # * &lt;tt&gt;:page_links&lt;/tt&gt; -- when false, only previous/next links are rendered (default: true)
+    # 
+    # HTML options:
+    # * &lt;tt&gt;:class&lt;/tt&gt; -- CSS class name for the generated DIV (default: &quot;pagination&quot;)
     # * &lt;tt&gt;:container&lt;/tt&gt; -- toggles rendering of the DIV container for pagination links, set to
     #   false only when you are rendering your own pagination markup (default: true)
     # * &lt;tt&gt;:id&lt;/tt&gt; -- HTML ID for the container (default: nil). Pass +true+ to have the ID
     #   automatically generated from the class name of objects in collection: for example, paginating
     #   ArticleComment models would yield an ID of &quot;article_comments_pagination&quot;.
     #
-    # All options beside listed ones are passed as HTML attributes to the container
+    # Advanced options:
+    # * &lt;tt&gt;:param_name&lt;/tt&gt; -- parameter name for page number in URLs (default: &lt;tt&gt;:page&lt;/tt&gt;)
+    # * &lt;tt&gt;:params&lt;/tt&gt; -- additional parameters when generating pagination links
+    #   (eg. &lt;tt&gt;:controller =&gt; &quot;foo&quot;, :action =&gt; nil&lt;/tt&gt;)
+    # * &lt;tt&gt;:renderer&lt;/tt&gt; -- class name, class or instance of a link renderer (default:
+    #   &lt;tt&gt;WillPaginate::LinkRenderer&lt;/tt&gt;)
+    #
+    # All options not recognized by will_paginate will become HTML attributes on the container
     # element for pagination links (the DIV). For example:
     # 
-    #   &lt;%= will_paginate @posts, :id =&gt; 'wp_posts' %&gt;
+    #   &lt;%= will_paginate @posts, :style =&gt; 'font-size: small' %&gt;
     #
     # ... will result in:
     #
-    #   &lt;div class=&quot;pagination&quot; id=&quot;wp_posts&quot;&gt; ... &lt;/div&gt;
+    #   &lt;div class=&quot;pagination&quot; style=&quot;font-size: small&quot;&gt; ... &lt;/div&gt;
     #
     # ==== Using the helper without arguments
     # If the helper is called without passing in the collection object, it will
@@ -147,7 +153,7 @@ module WillPaginate
     #
     # By default, the message will use the humanized class name of objects
     # in collection: for instance, &quot;project types&quot; for ProjectType models.
-    # Override this to your liking with the &lt;tt&gt;:entry_name&lt;/tt&gt; parameter:
+    # Override this with the &lt;tt&gt;:entry_name&lt;/tt&gt; parameter:
     #
     #   &lt;%= page_entries_info @posts, :entry_name =&gt; 'item' %&gt;
     #   #-&gt; Displaying items 6 - 10 of 26 in total
@@ -187,7 +193,7 @@ module WillPaginate
   end
 
   # This class does the heavy lifting of actually building the pagination
-  # links. It is used by +will_paginate+ helper internally.
+  # links. It is used by the &lt;tt&gt;will_paginate&lt;/tt&gt; helper internally.
   class LinkRenderer
 
     # The gap in page links is represented by:</diff>
      <filename>lib/will_paginate/view_helpers.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>CHANGELOG</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>9a93720c9f27c763ed58ec3a4d3a2e6b1a02379f</id>
    </parent>
  </parents>
  <author>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </author>
  <url>http://github.com/agile/will_paginate/commit/48d409a2f4d1ff11021aab217791b818703a8c59</url>
  <id>48d409a2f4d1ff11021aab217791b818703a8c59</id>
  <committed-date>2008-08-13T16:22:44-07:00</committed-date>
  <authored-date>2008-08-13T16:22:44-07:00</authored-date>
  <message>RDoc love (now live at http://mislav.caboo.se/static/will_paginate/doc/)</message>
  <tree>01917c72464d5d34e8f47abc798177c12bea3d93</tree>
  <committer>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </committer>
</commit>
