<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -48,19 +48,16 @@ of the current HEAD's hash.
 The plugin creates a constant APP_VERSION that contains the version number of
 the application. Calling the +to_s+ method on APP_VERSION will result in a
 properly formatted version number. APP_VERSION also has +major+, +minor+,
-+patch+, +milestone+ and +build+ methods to retrieve the individual components
-of the version number.
-
-Finally, there is a rake task for displaying the version number from the command
-line. 'rake app:version' will output the version number of the current rails
-application.
++patch+, +milestone+, +build+, +branch+, +committer+, and +build_date+
+methods to retrieve the individual components of the version number.
 
 == Capistrano Usage
 
 When the app_version plugin is installed, it copies a templated edition of the 
-version.yml file into /lib/templates/version.yml.erb the initial file shows a
+version.yml file into /lib/templates/version.yml.erb, the initial file shows a
 tag for retrieving the revision count with git. It also shows displaying the 
-branch as specified with &quot;set :branch&quot; in your capistrano deploy.rb
+branch as specified with &quot;set :branch&quot; in your capistrano deploy.rb, see the
+comments in the erb file for more nifty tricks.
 
 When you do a cap deploy, there is a capistrano recipe built-in to the app_version
 plugin, which will render the templated version.yml into the standard location as 
@@ -70,6 +67,22 @@ Both the standard and extended capistrano usage can co-exist in the same project
 the dynamic rendering of the version.yml only happens when using capistrano to
 deploy your app.
 
+== Rake tasks
+
+This plugin includes 4 new rake tasks:
+
+rake app:install 		- will copy the version.yml and version.yml.erb into more user 
+									 		accessible locations (/config, and /lib/templates)
+
+rake app:uninstall 	- will remove the files copied in the install task
+
+rake app:render			- will render the erb template into /config/version.yml
+											in case you want to have dynamic values updated via a rake task.
+											Note: certain examples expect the app to be in a git working directory.
+
+rake app:version		- will output the version number of the current rails
+											application.
+
 = License
 
 This plugin is released under the terms of the Ruby license. See </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,8 @@ namespace :app_version do
 
   desc &quot;Generate version.yml from variables&quot;
   task :generate_version_info, :roles =&gt; :app do
-    result = render_erb_template(RAILS_ROOT + &quot;/lib/templates/version.yml.erb&quot;)
+    template = File.read(RAILS_ROOT + &quot;/lib/templates/version.yml.erb&quot;)
+    result   = ERB.new(template).result(binding)
     put result, &quot;#{release_path}/config/version.yml&quot;
   end
   after &quot;deploy:update_code&quot;, &quot;app_version:generate_version_info&quot;</diff>
      <filename>lib/recipes/app_version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,5 +9,12 @@ minor:        0
 # milestone:  4
 build:      &lt;%= `git rev-list HEAD|wc -l`.strip %&gt;
 branch:     &lt;%= branch %&gt;
-committer:	coder
-build_date: &lt;%= Date.today.to_s %&gt;
\ No newline at end of file
+committer:	&lt;%= `git show -s --pretty=format:&quot;%an&quot;` %&gt;
+build_date: &lt;%= Date.today.to_s %&gt;
+
+# nifty tricks (note these examples are commented out in erb syntax, to use them replace the # with =)
+# &lt;%# `git rev-list HEAD|wc -l`.strip %&gt; will insert the count of commits to the repository (git)
+# &lt;%# `git show -s --pretty=format:&quot;%an&quot;` %&gt; 	will insert the name of the author of the last commit (git)
+# 																						many more options are available - see git show.
+# &lt;%# Date.today.to_s %&gt; will insert today's date - formatted yyyy-mm-dd
+# &lt;%# branch %&gt; will insert the branch variable used in capistrano
\ No newline at end of file</diff>
      <filename>lib/templates/version.yml.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,6 @@
 namespace :app do
+  require 'erb'
+  
   desc 'Report the application version.'
   task :version do
     require File.join(File.dirname(__FILE__), &quot;../lib/app_version.rb&quot;)
@@ -14,4 +16,11 @@ namespace :app do
   task :uninstall do
     require File.join(File.dirname(__FILE__), &quot;../uninstall.rb&quot;)
   end
+
+  desc 'Render the version.yml from its template.'
+  task :render do
+    template = File.read(RAILS_ROOT + &quot;/lib/templates/version.yml.erb&quot;)
+    result   = ERB.new(template).result(binding)
+    File.open(RAILS_ROOT + &quot;/config/version.yml&quot;, 'w') { |f| f.write(result)}
+  end
 end</diff>
      <filename>tasks/app_version_tasks.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>757f813b9779aafb6ce1aea81eb08db32b5654a5</id>
    </parent>
  </parents>
  <author>
    <name>John F. Schank III</name>
    <email>jschank@mac.com</email>
  </author>
  <url>http://github.com/toland/app_version/commit/e436bea2ab785d7eeea578e43a9ba001d39401e5</url>
  <id>e436bea2ab785d7eeea578e43a9ba001d39401e5</id>
  <committed-date>2008-10-28T23:45:18-07:00</committed-date>
  <authored-date>2008-10-28T23:45:18-07:00</authored-date>
  <message>added comments to erb, and enhanced the readme</message>
  <tree>9226bac6fbc5b560c99255db397dfe441df30456</tree>
  <committer>
    <name>John F. Schank III</name>
    <email>jschank@mac.com</email>
  </committer>
</commit>
