# Rakefile for Scriptlandia-R require 'rubygems' require 'rake/gempackagetask' require 'rake/testtask' require 'spec/rake/spectask' require 'rake/rdoctask' require 'rcov/rcovtask' SPEC = Gem::Specification.load('google-translate.gemspec') Rake::GemPackageTask.new(SPEC) do |pkg| pkg.need_tar = true pkg.need_zip = true end Spec::Rake::SpecTask.new do |task| task.libs << 'lib' task.pattern = 'spec/**/*_spec.rb' task.verbose = false end Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'teststuff' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end Rcov::RcovTask.new do |task| task.libs << 'test' task.test_files = FileList['test/**/*_test.rb'] task.verbose = true end task :default => :rcov