<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -16,9 +16,7 @@
 === TODO:
 
 * Make a concrete implementation of LinkRendererBase that will generate HTML for both ActionView and Merb
-* Finish transition from view tests -&gt; specs
 * ActionView and Merb integration tests for view helpers
-* 9a9372 rename :prev_label to :previous_label for consistency. old name still functions but is deprecated
 * 3c4725 Oops, I used return in an iterator block. I obviously write too much JavaScript
 * 537f22 ensure that 'href' values in pagination links are escaped URLs
 </diff>
      <filename>CHANGELOG.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ module WillPaginate
   # WillPaginate::ViewHelpers.pagination_options hash. You can write to this hash to
   # override default options on the global level:
   #
-  #   WillPaginate::ViewHelpers.pagination_options[:prev_label] = 'Previous page'
+  #   WillPaginate::ViewHelpers.pagination_options[:previous_label] = 'Previous page'
   #
   # By putting this into your environment.rb you can easily translate link texts to previous
   # and next pages, as well as override some other defaults to your liking.
@@ -22,19 +22,18 @@ module WillPaginate
     def self.pagination_options() @pagination_options; end
     def self.pagination_options=(value) @pagination_options = value; end
     
-    # default options that can be overridden on the global level
     self.pagination_options = {
-      :class        =&gt; 'pagination',
-      :prev_label   =&gt; '&amp;laquo; Previous',
-      :next_label   =&gt; 'Next &amp;raquo;',
-      :inner_window =&gt; 4, # links around the current page
-      :outer_window =&gt; 1, # links around beginning and end
-      :separator    =&gt; ' ', # single space is friendly to spiders and non-graphic browsers
-      :param_name   =&gt; :page,
-      :params       =&gt; nil,
-      :renderer     =&gt; 'WillPaginate::ViewHelpers::LinkRenderer',
-      :page_links   =&gt; true,
-      :container    =&gt; true
+      :class          =&gt; 'pagination',
+      :previous_label =&gt; '&amp;laquo; Previous',
+      :next_label     =&gt; 'Next &amp;raquo;',
+      :inner_window   =&gt; 4, # links around the current page
+      :outer_window   =&gt; 1, # links around beginning and end
+      :separator      =&gt; ' ', # single space is friendly to spiders and non-graphic browsers
+      :param_name     =&gt; :page,
+      :params         =&gt; nil,
+      :renderer       =&gt; 'WillPaginate::ViewHelpers::LinkRenderer',
+      :page_links     =&gt; true,
+      :container      =&gt; true
     }
 
     def self.total_pages_for_collection(collection) #:nodoc:</diff>
      <filename>lib/will_paginate/view_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@ module WillPaginate
       # 
       # ==== Options
       # * &lt;tt&gt;:class&lt;/tt&gt; -- CSS class name for the generated DIV (default: &quot;pagination&quot;)
-      # * &lt;tt&gt;:prev_label&lt;/tt&gt; -- default: &quot;&#171; Previous&quot;
+      # * &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;: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)
@@ -54,6 +54,11 @@ module WillPaginate
         
         options = WillPaginate::ViewHelpers.pagination_options.merge(options)
         
+        if options[:prev_label]
+          WillPaginate::Deprecation::warn(&quot;:prev_label view parameter is now :previous_label; the old name has been deprecated.&quot;)
+          options[:previous_label] = options.delete(:prev_label)
+        end
+        
         # get the renderer instance
         renderer = case options[:renderer]
         when String</diff>
      <filename>lib/will_paginate/view_helpers/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -28,7 +28,7 @@ module WillPaginate
       def to_html
         links = @options[:page_links] ? windowed_links : []
         # previous/next buttons
-        links.unshift page_link_or_span(@collection.previous_page, 'disabled prev_page', @options[:prev_label])
+        links.unshift page_link_or_span(@collection.previous_page, 'disabled prev_page', @options[:previous_label])
         links.push    page_link_or_span(@collection.next_page,     'disabled next_page', @options[:next_label])
         
         html = links.join(@options[:separator])</diff>
      <filename>lib/will_paginate/view_helpers/link_renderer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -50,7 +50,7 @@ describe WillPaginate::ViewHelpers::ActionView do
   end
 
   it &quot;should paginate with options&quot; do
-    paginate({ :page =&gt; 2 }, :class =&gt; 'will_paginate', :prev_label =&gt; 'Prev', :next_label =&gt; 'Next') do
+    paginate({ :page =&gt; 2 }, :class =&gt; 'will_paginate', :previous_label =&gt; 'Prev', :next_label =&gt; 'Next') do
       assert_select 'a[href]', 4 do |elements|
         validate_page_numbers [1,1,3,3], elements
         # test rel attribute values:
@@ -94,6 +94,14 @@ describe WillPaginate::ViewHelpers::ActionView do
       assert_select 'a.next_page[href]:last-child'
     end
   end
+  
+  it &quot;should warn about :prev_label being deprecated&quot; do
+    lambda {
+      paginate({ :page =&gt; 2 }, :prev_label =&gt; 'Deprecated') do
+        assert_select 'a[href]:first-child', 'Deprecated'
+      end
+    }.should have_deprecation
+  end
 
   it &quot;should match expected markup&quot; do
     paginate</diff>
      <filename>spec/view_helpers/action_view_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -78,6 +78,14 @@ class ViewExampleGroup &lt; Spec::Example::ExampleGroup
     end
   end
   
+  def build_message(message, pattern, *args)
+    built_message = pattern.dup
+    for value in args
+      built_message.sub! '?', value.inspect
+    end
+    built_message
+  end
+  
 end
 
 Spec::Example::ExampleGroupFactory.register(:view_helpers, ViewExampleGroup)</diff>
      <filename>spec/view_helpers/view_example_group.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9f471b14f4161e243170ad826824f52a94e54665</id>
    </parent>
  </parents>
  <author>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </author>
  <url>http://github.com/mattetti/will_paginate/commit/e0bebbbb1bc54bb05a559fe5c21d55b74ff5ed6d</url>
  <id>e0bebbbb1bc54bb05a559fe5c21d55b74ff5ed6d</id>
  <committed-date>2008-10-10T04:50:15-07:00</committed-date>
  <authored-date>2008-10-10T04:50:15-07:00</authored-date>
  <message>rename :prev_label to :previous_label for consistency. old name still functions but is deprecated</message>
  <tree>ed6a93c879f2f7a1383129f5f16ed485302d6b36</tree>
  <committer>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </committer>
</commit>
