Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8f98055abf
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (33 sloc) 1.043 kb
def gem_opt
defined?(Gem) ? "-rubygems" : ""
end
# --------------------------------------------------
# Tests
# --------------------------------------------------
task(:default => "test:all")
namespace(:test) do
desc "Run all tests"
task(:all) do
exit system("ruby #{gem_opt} -I.:lib:test -e'%w( #{Dir['test/**/*_test.rb'].join(' ')} ).each {|p| require p }'")
end
desc "Run all tests on multiple ruby versions (requires rvm)"
task(:portability) do
versions = %w( 1.8.6 1.8.7 1.9 1.9.2 )
versions.each do |version|
system <<-BASH
bash -c 'source ~/.rvm/scripts/rvm;
rvm use #{version};
echo "--------- #{version} ----------";
rake -s test:all'
BASH
end
end
end
# --------------------------------------------------
# Docs
# --------------------------------------------------
desc "Generate YARD Documentation"
task :yardoc do
require 'yard'
YARD::CLI::Yardoc.run *%w( --no-private -o doc/yard --readme README.md - LICENSE )
end
Jump to Line
Something went wrong with that request. Please try again.