<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,36 +1,39 @@
 namespace :spec do
-  require 'spec/rake/spectask'
+  require 'spec/rake/spectask' if defined? Spec::Rake::SpecTask
   spec_prereq = File.exist?(File.join(RAILS_ROOT, 'config', 'database.yml')) ? &quot;db:test:prepare&quot; : :noop
   
   
   [:models, :controllers, :views, :helpers, :lib].each do |sub|
     namespace sub do
       desc &quot;RCov for #{sub}&quot;
-      Spec::Rake::SpecTask.new(&quot;rcov&quot; =&gt; spec_prereq) do |t|
-        t.spec_opts = ['--options', &quot;\&quot;#{RAILS_ROOT}/spec/spec.opts\&quot;&quot;]
-        t.spec_files = FileList[&quot;spec/#{sub}/**/*_spec.rb&quot;]
-        t.rcov = true
-        
-        t.rcov_opts = lambda do
-          reg_exp = []
-          reg_exp &lt;&lt; case sub.to_s
-                      when 'models'
-                         'app\/models'
-                      when 'views'
-                         'app\/views'
-                      when 'controllers'
-                         'app\/controllers'
-                      when 'helpers'
-                         'app\/helpers'
-                      when 'lib' 
-                        'lib'
-                     end
-          reg_exp.map!{ |m| &quot;(#{m})&quot; }
-          rcov_opts = &quot; -x \&quot;^(?!#{reg_exp.join('|')})\&quot;&quot;
-          rcov_opts.map {|l| l.chomp.split &quot; &quot;}.flatten
+
+      if defined? Spec::Rake::SpecTask
+        Spec::Rake::SpecTask.new(&quot;rcov&quot; =&gt; spec_prereq) do |t|
+          t.spec_opts = ['--options', &quot;\&quot;#{RAILS_ROOT}/spec/spec.opts\&quot;&quot;]
+          t.spec_files = FileList[&quot;spec/#{sub}/**/*_spec.rb&quot;]
+          t.rcov = true
+          
+          t.rcov_opts = lambda do
+            reg_exp = []
+            reg_exp &lt;&lt; case sub.to_s
+                        when 'models'
+                           'app\/models'
+                        when 'views'
+                           'app\/views'
+                        when 'controllers'
+                           'app\/controllers'
+                        when 'helpers'
+                           'app\/helpers'
+                        when 'lib' 
+                          'lib'
+                       end
+            reg_exp.map!{ |m| &quot;(#{m})&quot; }
+            rcov_opts = &quot; -x \&quot;^(?!#{reg_exp.join('|')})\&quot;&quot;
+            rcov_opts.map {|l| l.chomp.split &quot; &quot;}.flatten
+          end
         end
-     
       end
+
     end
   end
 end</diff>
      <filename>tasks/rcov.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>006f5ab4c116583abe2a94e27d41aff1bf433d8a</id>
    </parent>
  </parents>
  <author>
    <name>simplicoder</name>
    <email>simplicoder@gmail.com</email>
  </author>
  <url>http://github.com/napcs/lazy_developer/commit/6e4057a4955b6b1c2e58da750fab26d91063fe16</url>
  <id>6e4057a4955b6b1c2e58da750fab26d91063fe16</id>
  <committed-date>2009-07-02T10:10:47-07:00</committed-date>
  <authored-date>2009-07-02T09:30:13-07:00</authored-date>
  <message>Iss 2. Fixed rcov.rake from aborting all tasks if rspec gem not present

Signed-off-by: Brian Hogan / New Auburn Personal Computer Services &lt;bphogan@gmail.com&gt;</message>
  <tree>270b934f3344ceb4db152870cff64df250141c6b</tree>
  <committer>
    <name>Brian Hogan / New Auburn Personal Computer Services</name>
    <email>bphogan@gmail.com</email>
  </committer>
</commit>
