Sha256: 6e8d03be7bf387e299fa5a4296c9e1dbd335a4ffc0b83995a7497cc0c943b282
Contents?: true
Size: 817 Bytes
Versions: 1
Compression:
Stored size: 817 Bytes
Contents
require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'bundler' Bundler::GemHelper.install_tasks desc 'Default: run unit tests.' task :default => :test desc 'Test the flag_shih_tzu plugin.' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.pattern = 'test/**/*_test.rb' t.verbose = true end desc 'Generate documentation for the flag_shih_tzu plugin.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'FlagShihTzu' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end namespace :test do desc 'Measures test coverage' task :coverage do rm_f "coverage" system("rcov -Ilib test/*_test.rb") system("open coverage/index.html") if PLATFORM['darwin'] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flag_shih_tzu-0.1.0.pre | Rakefile |