[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 3a39dd8353b6308cf49522990104cc63e55d7cda

James Turnbull james at lovedthanlost.net
Fri Jan 29 17:22:43 UTC 2010


The following commit has been merged in the upstream branch:
commit 8398238fee3daa230179365b6f52dc0f892d9eee
Author: James Turnbull <james at lovedthanlost.net>
Date:   Thu Sep 17 16:16:00 2009 +1000

    Added rcov support to spec task

diff --git a/Rakefile b/Rakefile
index 373d92a..f89f3ef 100644
--- a/Rakefile
+++ b/Rakefile
@@ -55,9 +55,17 @@ desc "Run the specs under spec/"
 task :spec do
     require 'spec'
     require 'spec/rake/spectask'
-    # require 'rcov'
-    Spec::Rake::SpecTask.new do |t| 
-        t.spec_opts = ['--format','s', '--loadby','mtime'] 
+    begin
+        require 'rcov'
+    rescue LoadError
+    end
+
+    Spec::Rake::SpecTask.new do |t|
+        t.spec_opts = ['--format','s', '--loadby','mtime']
         t.spec_files = FileList['spec/**/*.rb']
-    end 
+        if defined?(Rcov)
+            t.rcov = true
+            t.rcov_opts = ['--exclude', 'spec/*,test/*,results/*,/usr/lib/*']
+        end
+     end
 end

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list