Rakefile in vidibus-helpers-0.0.0 vs Rakefile in vidibus-helpers-0.0.1

- old
+ new

@@ -1,7 +1,10 @@ require "rubygems" require "rake" +require "rake/rdoctask" +require "rspec" +require "rspec/core/rake_task" begin require "jeweler" Jeweler::Tasks.new do |gem| gem.name = "vidibus-helpers" @@ -13,6 +16,21 @@ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" -end \ No newline at end of file +end + +Rspec::Core::RakeTask.new(:rcov) do |t| + t.pattern = "spec/**/*_spec.rb" + t.rcov = true + t.rcov_opts = ["--exclude", "^spec,/gems/"] +end + +Rake::RDocTask.new do |rdoc| + version = File.exist?("VERSION") ? File.read("VERSION") : "" + rdoc.rdoc_dir = "rdoc" + rdoc.title = "vidibus-helpers #{version}" + rdoc.rdoc_files.include("README*") + rdoc.rdoc_files.include("lib/**/*.rb") + rdoc.options << "--charset=utf-8" +end