<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,2 @@
-* Copying should be triggered when Rails starts or the tests are run.
-** Hook install.rb to prompt if someone is installing the plugin and a file already exists.
-** Line in init.rb can be commented out to force an install every single time.
-* Should be able to run asset_copier_generator from outside a Rails project.
+* Hook install.rb to prompt if someone is installing the plugin and a file already exists.
+* Should be able to run asset_copier_generator from outside a Rails project.
\ No newline at end of file</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -17,14 +17,15 @@ class AssetCopier
     begin
       paths.each do |path| 
         dest_path = path.gsub(source, destination)
+        clean_path = dest_path.gsub(&quot;#{RAILS_ROOT}/&quot;, &quot;&quot;)
         if File.directory?(path)
           unless File.exists?(dest_path)
             FileUtils.mkdir_p(dest_path)
-            puts &quot;Creating directory #{dest_path}&quot;
+            puts &quot;Creating directory #{clean_path} for #{plugin_name}&quot;
           end
         else
           FileUtils.cp(path, dest_path)
-          puts &quot;Copying #{dest_path}&quot;
+          puts &quot;Copying #{clean_path} from #{plugin_name}&quot;
         end
       end
     rescue Exception =&gt; e
@@ -37,19 +38,20 @@ class AssetCopier
   def self.warn(plugin_name)
     self.plugin_name = plugin_name
     paths.each do |path| 
+      next if File.directory?(path)
       dest_path = path.gsub(source, destination)
-      if File.directory?(path)
-        puts &quot;WARNING: Directory #{dest_path} is required by the #{plugin_name} &quot; &lt;&lt;
-          &quot;plugin but does not exist&quot; unless File.exists?(dest_path)
-      else
-        if File.exists?(dest_path)
-          puts &quot;WARNING: #{dest_path} is out of date and needs to be reinstalled &quot; &lt;&lt;
-            &quot;from the #{plugin_name} plugin&quot; unless compare(path, dest_path)
-        else
-          puts &quot;WARNING: #{dest_path} is missing and needs to be installed &quot; &lt;&lt;
-            &quot;from the #{plugin_name} plugin&quot;
+      clean_path = dest_path.gsub(&quot;#{RAILS_ROOT}/&quot;, &quot;&quot;)
+      reinstall = false
+      if File.exists?(dest_path)
+        unless compare(path, dest_path)
+          puts &quot;WARNING: #{clean_path} is out of date and needs to be reinstalled&quot;
+          reinstall = true
         end
+      else
+        reinstall = true
+        puts &quot;WARNING: #{clean_path} is missing and needs to be installed&quot;
       end
+      puts &quot;WARNING: Please run rake #{plugin_name}:install&quot; if reinstall
     end
     print_deletion_warnings
   end</diff>
      <filename>templates/asset_copier.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>11203bec6cd57aa7cc5664db80272544a13c35c6</id>
    </parent>
  </parents>
  <author>
    <name>Matthew Bass</name>
    <email>matt@anacreon.local</email>
  </author>
  <url>http://github.com/pelargir/asset_copier/commit/63a1f5e8432251baf4f2e8dbd7ae85d56012e4df</url>
  <id>63a1f5e8432251baf4f2e8dbd7ae85d56012e4df</id>
  <committed-date>2008-11-03T09:08:02-08:00</committed-date>
  <authored-date>2008-11-03T09:08:02-08:00</authored-date>
  <message>added file comparisons and production warnings</message>
  <tree>c42051189294dca07b45e1837ae93d2dd9d7826f</tree>
  <committer>
    <name>Matthew Bass</name>
    <email>matt@anacreon.local</email>
  </committer>
</commit>
