<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>img/info.png</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -7,6 +7,7 @@ autotest-growl.gemspec
 growl/growlnotify
 img/error.png
 img/failed.png
+img/info.png
 img/passed.png
 img/pending.png
 lib/autotest-growl.rb</diff>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <diff>@@ -19,5 +19,5 @@ http://www.bitcetera.com/products/autotest-growl
 | ZenTest no longer  comes with  bundled Growl support and  therefore the |
 | require in your ~/.autotest must not  contain the absolute path to this |
 | gem anymore. Please update your ~/.autotest to contain the require line |
-| mentioned above.                                                        |
+| mentioned above. Make sure no ZenTest version &lt;=4.0.0 is installed.     |
 +-------------------------------------------------------------------------+</diff>
      <filename>PostInstall.txt</filename>
    </modified>
    <modified>
      <diff>@@ -10,10 +10,14 @@ This gem aims to improve support for Growl notification by ZenTest's autotest.
 It comes with a nice colored Ruby icon set and - for now - supports Cucumber 
 notifications by means of a workaround.
 
-The priority of a notification is set according to the actual result: &quot;error&quot;
-and &quot;failed&quot; have priority 2, &quot;pending&quot; and &quot;unknown&quot; have priority -1 and 
-&quot;passed&quot; have priority -2. You can configure Growl to style the notifications
-differently based on these priorities.
+The priority of a notification is set according to the actual result so you
+can  configure Growl to style the notifications differently based on these
+priorities:
+
+* 2 for error or failed
+* 0 for info
+* -1 for pending or unknown
+* -2 for passed
 
 Furthermore the terminal running autotest is cleared on every cycle (unless
 configured otherwise). Don't worry though, it's still possible to scroll up
@@ -51,7 +55,7 @@ http://growl.info
 
 Using your own set of icons is pretty simple. Just create a directory
 ~/.autotest-growl, copy your icons there and name them passed.png,
-pending.png, failed.png and error.png.
+pending.png, failed.png, error.png and info.png.
 
 === Don't Clear the Terminal
 
@@ -67,6 +71,13 @@ All tests have passed&quot;, add the following to your ~/.autotest:
 
   Autotest::Growl::hide_label = true
 
+=== Show Modified Files
+
+Add the following to your ~/.autotest if you would like to receive a Growl
+notification listing the files modified before tests are re-run.
+
+  Autotest::Growl::show_modified_files = true
+
 == TROUBLESHOOTING:
 
 === Loading the Plugin Seems to Fail</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -15,9 +15,13 @@ module Autotest::Growl
 
   GEM_PATH = File.expand_path(File.join(File.dirname(__FILE__), '../..'))
 
+  @label = ''
+  @modified_files = []
+
   @@remote_notification = false
   @@clear_terminal = true
   @@hide_label = false
+  @@show_modified_files = false
 
   ##
   # Whether to use remote or local notificaton (default).
@@ -38,6 +42,12 @@ module Autotest::Growl
   end
 
   ##
+  # Whether to display the modified files or not (default).
+  def self.show_modified_files=(boolean)
+    @@show_modified_files = boolean
+  end
+
+  ##
   # Display a message through Growl.
   def self.growl title, message, icon, priority=0, stick=&quot;&quot;
     growl = File.join(GEM_PATH, 'growl', 'growlnotify')
@@ -51,9 +61,21 @@ module Autotest::Growl
   end
 
   ##
+  # Display the modified files.
+  Autotest.add_hook :updated do |autotest, modified|
+    if @@show_modified_files
+      if modified != @last_modified
+        growl @label + 'Modifications detected.', modified.collect {|m| m[0]}.join(', '), 'info', 0
+        @last_modified = modified
+      end
+    end
+    false
+  end
+
+  ##
   # Set the label and clear the terminal.
   Autotest.add_hook :run_command do
-    @label = (@@hide_label) ? ('') : (File.basename(Dir.pwd).upcase + ': ')
+    @label = File.basename(Dir.pwd).upcase + ': ' if !@@hide_label
     @run_scenarios = false
     print &quot;\n&quot;*2 + '-'*80 + &quot;\n&quot;*2
     print &quot;\e[2J\e[f&quot; if @@clear_terminal</diff>
      <filename>lib/autotest/growl.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,9 +10,6 @@ $:.unshift(File.dirname(__FILE__) + '/../lib')
 require 'autotest/growl'
 
 module Autotest::Growl
-  @label = 'TEST'
-  @run_scenarios = false
-
   def self.growl(title, message, icon, priority=0, stick=&quot;&quot;)
     icon
   end</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0c7e2c60ac0f5bfbccf288ad32de9d6077b9d64d</id>
    </parent>
  </parents>
  <author>
    <name>Sven Schwyn</name>
    <email>schwyn@bitcetera.com</email>
  </author>
  <url>http://github.com/svoop/autotest-growl/commit/94c2b76ab22e887822aa3fcc874230b146b77571</url>
  <id>94c2b76ab22e887822aa3fcc874230b146b77571</id>
  <committed-date>2009-06-08T04:47:23-07:00</committed-date>
  <authored-date>2009-06-08T04:47:23-07:00</authored-date>
  <message>Adding show_modified_files config and notification with duplicates protection, update README.</message>
  <tree>b4bab8240edc0690e06ce80c1af1c56dc1fc75f0</tree>
  <committer>
    <name>Sven Schwyn</name>
    <email>schwyn@bitcetera.com</email>
  </committer>
</commit>
