<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>book-content/en/10-recipes/1-simple-blog.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/10-recipes/2-blog-slice.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/11-appendix/toc.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/12-deployment/1-passenger.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/12-deployment/2-nginx.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/12-deployment/3-jruby.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/12-deployment/4-bundle.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/12-deployment/toc.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/13-migration-to-rails3/1-merb-and-rails-merge.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/13-migration-to-rails3/toc.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/14-appendix/1-hints-tips.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/14-appendix/2-slices.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/14-appendix/3-gems.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/14-appendix/toc.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/6-testing-your-application/1-why.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/6-testing-your-application/2-models.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/6-testing-your-application/3-requests.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/6-testing-your-application/4-cucumber.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/6-testing-your-application/toc.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/7-merb-more/1-authentication.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/7-merb-more/2-mailer.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/7-merb-more/3-caching.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/7-merb-more/4-exceptions.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/7-merb-more/5-slices.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/7-merb-more/toc.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/8-recipes/toc.markdown</filename>
    </added>
    <added>
      <filename>book-content/en/9-deployment/toc.markdown</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -24,10 +24,10 @@ module Merb
     def page_nav_links(format = 'markdown')
       return if params[:action] != 'show' || @page.nil? # Don't need navigation for the TOC (index).
       links = []
-      links &lt;&lt; previous_page_url
+      links &lt;&lt; previous_page_url unless @page.previous_file.include?('table-of-contents')
       # Stick a link to the TOC in the middle of the array.
       links &lt;&lt; link_to(language_text(language, 'Home'), url(:toc, :language =&gt; language))
-      links &lt;&lt; next_page_url
+      links &lt;&lt; next_page_url unless @page.next_file.include?('table-of-contents')
       links.join(' | ')
     end
     </diff>
      <filename>app/helpers/global_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -38,7 +38,7 @@ class Page
     return @next_file unless @next_file.nil?
     n_file = Dir[&quot;#{Merb.root}/book-content/#{language}/#{chapter_number}-*/#{page_number + 1}-*.*&quot;].entries.first
     if n_file.nil?
-      n_file = Dir[&quot;#{Merb.root}/book-content/#{language}/#{chapter_number + 1}-*/**&quot;].entries.first
+      n_file = Dir[&quot;#{Merb.root}/book-content/#{language}/#{chapter_number + 1}-*/toc.*&quot;].entries.first
       # We're on the last page of the last chapter, just return the TOC.
       n_file =  &quot;#{Merb.root}/book-content/#{language}/table-of-contents&quot; if n_file.nil? 
     end
@@ -61,7 +61,8 @@ class Page
     return @previous_file unless @previous_file.nil?
     p_file = Dir[&quot;#{Merb.root}/book-content/#{language}/#{chapter_number}-*/#{page_number - 1}-*.*&quot;].entries.first
     if p_file.nil?
-      p_file = Dir[&quot;#{Merb.root}/book-content/#{language}/#{chapter_number - 1}-*/**&quot;].entries.last
+      p_file = Dir[&quot;#{Merb.root}/book-content/#{language}/#{chapter_number - 1}-*/[0-9]*?*.*&quot;].entries.last
+      p_file = Dir[&quot;#{Merb.root}/book-content/#{language}/#{chapter_number - 1}-*/toc.*&quot;].entries.first if p_file.nil?
       # We're on the last page of the last chapter, just return the TOC.
       p_file =  &quot;#{Merb.root}/book-content/#{language}/table-of-contents&quot; if p_file.nil? 
     end
@@ -91,8 +92,8 @@ class Page
     end
     
     def extract_chapter_and_page_number
-      file =~ /book-content\/\w{2}\/(\d{1,})-[a-z-]+\/(\d{1,})-[a-z-]+[.]\w+/
-      @chapter_number, @page_number = $1.to_i, $2.to_i
+      file =~ /book-content\/\w{2}\/(\d{1,})-[a-z-]+\/((\d{1,})-[a-z-]+|toc)[.]\w+/
+      @chapter_number, @page_number = $1.to_i, $3.to_i
     end
     
     def extract_next_chapter_and_page_name
@@ -105,8 +106,8 @@ class Page
     
     # Returns an array with the chapter name and the page name of the file to process
     def extract_chapter_and_page_number_for_file(file_to_process)
-        file_to_process.grep(/book-content\/\w{2}\/\d{1,}-([a-z-]+)\/\d{1,}-([a-z-]+)[.]\w+/)
-        [$1, $2]
+        file_to_process.grep(/book-content\/\w{2}\/\d{1,}-([a-z-]+)\/(\d{1,}-([a-z-]+)|(toc))[.]\w+/)
+        [$1, $3]
     end
   
 end
\ No newline at end of file</diff>
      <filename>app/models/page.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>book-content/en/11-deployment/toc.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/12-recipes/1-simple-blog.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/12-recipes/2-blog-slice.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/12-recipes/toc.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/13-appendix/toc.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/14-deployment/1-passenger.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/14-deployment/2-nginx.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/14-deployment/3-jruby.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/14-deployment/4-bundle.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/14-deployment/toc.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/15-migration-to-rails3/1-merb-and-rails-merge.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/15-migration-to-rails3/toc.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/16-appendix/1-hints-tips.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/16-appendix/2-slices.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/16-appendix/3-gems.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/16-appendix/toc.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/8-testing-your-application/1-why.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/8-testing-your-application/2-models.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/8-testing-your-application/3-requests.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/8-testing-your-application/4-cucumber.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/8-testing-your-application/toc.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/9-merb-more/1-authentication.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/9-merb-more/2-mailer.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/9-merb-more/3-caching.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/9-merb-more/4-exceptions.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/9-merb-more/5-slices.markdown</filename>
    </removed>
    <removed>
      <filename>book-content/en/9-merb-more/toc.markdown</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>cdc87f03186cc10d842ab44efba71cd3979ecedf</id>
    </parent>
  </parents>
  <author>
    <name>Matt Aimonetti</name>
    <email>mattaimonetti@gmail.com</email>
  </author>
  <url>http://github.com/akitaonrails/merb-book/commit/e633549a7cc8c388ea0d2921624f096e6c21c6a5</url>
  <id>e633549a7cc8c388ea0d2921624f096e6c21c6a5</id>
  <committed-date>2009-01-30T18:57:53-08:00</committed-date>
  <authored-date>2009-01-30T18:57:53-08:00</authored-date>
  <message>optimized navigation code and renamed folders</message>
  <tree>3e3a06686e04eeaa00887e829442458f713fc628</tree>
  <committer>
    <name>Matt Aimonetti</name>
    <email>mattaimonetti@gmail.com</email>
  </committer>
</commit>
