Rakefile in muck-activities-0.1.12 vs Rakefile in muck-activities-0.1.13

- old
+ new

@@ -11,10 +11,26 @@ t.libs << 'test/rails_root/test' t.pattern = 'test/rails_root/test/**/*_test.rb' t.verbose = true end +begin + require 'rcov/rcovtask' + Rcov::RcovTask.new do |t| + #t.libs << 'lib' + t.libs << 'test/rails_root/lib' + t.pattern = 'test/rails_root/test/**/*_test.rb' + t.verbose = true + t.output_dir = 'coverage' + t.rcov_opts << '--exclude "gems/*"' + end +rescue LoadError + task :rcov do + abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" + end +end + desc 'Generate documentation for the muck_activities plugin.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'MuckActivity' rdoc.options << '--line-numbers' << '--inline-source' @@ -39,19 +55,19 @@ gemspec.authors = ["Justin Ball"] gemspec.rubyforge_project = 'muck-activities' gemspec.add_dependency "muck-engine" gemspec.add_dependency "muck-users" gemspec.add_dependency "muck-comments" - gemspec.files.include %w( - tasks/* - db/migrate/*.rb - app/**/**/**/* - config/* - locales/* - rails/* - test/* - lib/**/* - public/**/* ) + # gemspec.files.include %w( + # tasks/* + # db/migrate/*.rb + # app/**/**/**/* + # config/* + # locales/* + # rails/* + # test/* + # lib/**/* + # public/**/* ) end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end \ No newline at end of file