require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'rake/gempackagetask' desc 'Default: run unit tests.' task :default => :test desc 'Run unit tests.' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.pattern = 'test/**/*_test.rb' t.verbose = true end desc 'Generate documentation.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = '3scale web service management api' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README') rdoc.rdoc_files.include('lib/**/*.rb') end spec = eval(File.read(File.dirname(__FILE__) + '/3scale_ws_api_for_ruby.gemspec')) Rake::GemPackageTask.new(spec) do |package| package.need_tar = true end