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" gem.summary = %Q{Helpers for Vidibus applications.} gem.description = %Q{A collections of application helpers.} gem.email = "andre@vidibus.com" gem.homepage = "http://github.com/vidibus/vidibus-helpers" gem.authors = ["Andre Pankratz"] end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" 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