<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,18 +1,13 @@
-# Allow linking (for development)
-method = ENV['LINK'] ? :ln_s : :cp
 installed = false
 Dir[File.dirname(__FILE__) &lt;&lt; &quot;/assets/*&quot;].each do |location|
   directory = File.basename(location)
   destination = File.join(RAILS_ROOT, 'public', directory, 'tuneup')
-  FileUtils.mkdir_p(destination) rescue nil
+  FileUtils.rm_rf(destination) rescue nil
+  FileUtils.mkdir_p(destination)
   Dir[File.join(location, '*')].each do |file|
     new_filename = File.join(destination, File.basename(file))
     unless File.exists?(new_filename)
-      FileUtils.send(method, file, new_filename)
-      installed = true
+      FileUtils.cp file, new_filename
     end
   end
-end
-if installed
-  STDERR.puts &quot;FiveRuns TuneUp: Installed assets in public/&quot; 
 end
\ No newline at end of file</diff>
      <filename>install.rb</filename>
    </modified>
    <modified>
      <diff>@@ -78,20 +78,37 @@ module Fiveruns
       end
       
       def start
-        log :info, &quot;Starting...&quot;
-        install_instrumentation
-        log :debug, &quot;Using collector at #{collector_url}&quot;
-        log :debug, &quot;Using frontend at #{frontend_url}&quot;
+        if supports_rails?
+          yield
+          log :info, &quot;Starting...&quot;
+          install_instrumentation
+          log :debug, &quot;Using collector at #{collector_url}&quot;
+          log :debug, &quot;Using frontend at #{frontend_url}&quot;
+        end
       end
             
       def log(level, text)
-        LOGGER.send(level, &quot;FiveRuns TuneUp (v#{Fiveruns::Tuneup::Version::STRING}): #{text}&quot;)
+        message = &quot;FiveRuns TuneUp (v#{Fiveruns::Tuneup::Version::STRING}): #{text}&quot;
+        LOGGER.send(level, message)
+        STDERR.puts message if level == :error
       end
       
       #######
       private
       #######
       
+      def supports_rails?
+        version = Rails::VERSION rescue nil
+        return true unless version
+        if version::MAJOR &lt; 2
+          log :error, &quot;Sorry, FiveRuns TuneUp does not currently support Rails &lt; 2.0.0; aborting load.&quot;
+          false
+        else
+          log :info, &quot;Rails version #{version::STRING} is supported, loading...&quot;
+          true
+        end
+      end
+      
       def clear_stack
         @stack = nil
         @exclusion_stack = nil</diff>
      <filename>lib/fiveruns/tuneup.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,20 +1,21 @@
-require 'dispatcher'
-Dispatcher.to_prepare :tuneup_route do
-  ActionController::Routing::Routes.add_route '/tuneup', :controller =&gt; 'tuneup', :action =&gt; 'show'
-  ActionController::Routing::Routes.add_route '/tuneup/:action', :controller =&gt; 'tuneup'
-  2.times do
-    route = ActionController::Routing::Routes.routes.pop
-    ActionController::Routing::Routes.routes.unshift(route)
+Fiveruns::Tuneup.start do
+  require 'dispatcher'
+  Dispatcher.to_prepare :tuneup_route do
+    ActionController::Routing::Routes.add_route '/tuneup', :controller =&gt; 'tuneup', :action =&gt; 'show'
+    ActionController::Routing::Routes.add_route '/tuneup/:action', :controller =&gt; 'tuneup'
+    2.times do
+      route = ActionController::Routing::Routes.routes.pop
+      ActionController::Routing::Routes.routes.unshift(route)
+    end
+  end
+  Dispatcher.to_prepare :tuneup_controller_filters do
+    TuneupController.filter_chain.clear
+    TuneupController.before_filter :find_config, :except =&gt; :index
+  end
+  [ActionController::Base, ActiveRecord::Base, ActionView::Base].each do |target|
+    target.extend Fiveruns::Tuneup::CustomMethods
   end
-end
-Dispatcher.to_prepare :tuneup_controller_filters do
-  TuneupController.filter_chain.clear
-  TuneupController.before_filter :find_config, :except =&gt; :index
-end
-[ActionController::Base, ActiveRecord::Base, ActionView::Base].each do |target|
-  target.extend Fiveruns::Tuneup::CustomMethods
-end
 
-ActionController::Base.append_view_path(File.dirname(__FILE__) &lt;&lt; &quot;/../views&quot;)
-require File.dirname(__FILE__) &lt;&lt; &quot;/../install&quot; # Check for assets
-Fiveruns::Tuneup.start
\ No newline at end of file
+  ActionController::Base.append_view_path(File.dirname(__FILE__) &lt;&lt; &quot;/../views&quot;)
+  require File.dirname(__FILE__) &lt;&lt; &quot;/../install&quot; # Check for assets
+end</diff>
      <filename>rails/init.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a11bb5d3f6785f6c67b81c9be1878eb6f1f50f64</id>
    </parent>
  </parents>
  <author>
    <name>Bruce Williams</name>
    <email>bruce@codefluency.com</email>
  </author>
  <url>http://github.com/fiveruns/fiveruns_tuneup/commit/b9e7a32a63cf2b097bee9ffbe4c5801c400cd130</url>
  <id>b9e7a32a63cf2b097bee9ffbe4c5801c400cd130</id>
  <committed-date>2008-05-31T14:38:09-07:00</committed-date>
  <authored-date>2008-05-31T14:38:09-07:00</authored-date>
  <message>Check for Rails &gt;= 2.0.0, automatically install assets on startup</message>
  <tree>1380562ff4eb2cc93a38f0580a75ea3a2384daac</tree>
  <committer>
    <name>Bruce Williams</name>
    <email>bruce@codefluency.com</email>
  </committer>
</commit>
