Rakefile in nielsm-metric_fu-0.9.1 vs Rakefile in nielsm-metric_fu-1.1.1
- old
+ new
@@ -1,11 +1,18 @@
require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'
-require File.join(File.dirname(__FILE__), 'lib', 'metric_fu')
+require 'lib/metric_fu'
desc "Run all specs in spec directory"
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
+ t.rcov = true
+ t.rcov_opts = ['--exclude', 'spec,config,Library,usr/lib/ruby']
+ t.rcov_dir = File.join(File.dirname(__FILE__), "tmp")
end
-task :default => [:"metrics:all"]
\ No newline at end of file
+MetricFu::Configuration.run do |config|
+ config.template_class = AwesomeTemplate
+end
+
+task :default => [:"metrics:all"]