Sha256: 7f6e1d4007fdacb53bf7214bb2bb230927349120d6c398a23ecf130d11194c17
Contents?: true
Size: 853 Bytes
Versions: 9
Compression:
Stored size: 853 Bytes
Contents
require 'rubygems' require 'rake' require 'rake/testtask' require 'rdoc/task' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' << '.' test.pattern = 'test/**/*_test.rb' test.verbose = true end begin require 'rcov/rcovtask' Rcov::RcovTask.new do |test| test.libs << 'test' test.pattern = 'test/**/*_test.rb' test.verbose = true 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 task :default => :test Rake::RDocTask.new do |rdoc| if File.exist?('VERSION') version = File.read('VERSION') else version = "" end rdoc.rdoc_dir = 'rdoc' rdoc.title = "rack-rewrite #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('History.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end
Version data entries
9 entries across 9 versions & 2 rubygems