# encoding: utf-8 require "rubygems" require "bundler/setup" require "bundler/gem_tasks" require 'rake' require 'rake/testtask' require 'rdoc/task' desc 'Default: run unit tests.' task :default => %w[test benchmark] desc 'Run unit tests.' Rake::TestTask.new(:test) do |t| t.pattern = 'test/**/*_test.rb' t.verbose = true end task :benchmark do system 'ruby', '-Ilib', 'test/benchmark.rb' end desc 'Generate documentation.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = '3scale API Management Client' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README') rdoc.rdoc_files.include('lib/**/*.rb') end