<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -58,6 +58,19 @@ task :create_chapter_tocs do
   end
 end
 
+desc &quot;add a timestamp to the warning banner&quot;
+task :add_timestamp do
+  update_msg = &quot;&lt;small&gt;last update: #{Time.now.strftime(&quot;%Y-%m-%d %T %Z&quot;)}&lt;/small&gt; &quot;
+  file = &quot;#{Dir.pwd}/app/views/layout/application.html.erb&quot;
+  old_content = File.open(file, &quot;r&quot;).read
+  File.open(file, &quot;w+&quot;) do |f|
+     f.write old_content.gsub('&lt;p id=&quot;warning&quot;&gt;', &quot;&lt;p id='warning'&gt;#{update_msg}&quot;)
+  end
+end
+
+
+
+
 def generate_toc_for_chapter(chapter_name, language)
   require 'rexml/document'
   </diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8b2e5f028fcef950c61ca68b85046749da522e5c</id>
    </parent>
  </parents>
  <author>
    <name>Matt Aimonetti</name>
    <email>mattaimonetti@gmail.com</email>
  </author>
  <url>http://github.com/mattetti/merb-book/commit/554ee622633e7086ffdea7281c6ef4ae45890727</url>
  <id>554ee622633e7086ffdea7281c6ef4ae45890727</id>
  <committed-date>2008-12-12T01:07:06-08:00</committed-date>
  <authored-date>2008-12-12T01:07:06-08:00</authored-date>
  <message>added a rake task to add a timestamp at deployment time</message>
  <tree>3d652344b218a2c2824f5dc0d5b8b97addd70e43</tree>
  <committer>
    <name>Matt Aimonetti</name>
    <email>mattaimonetti@gmail.com</email>
  </committer>
</commit>
