Sha256: 5e5965dbcbf40b3f01946d501ea63452c0b46ce1336e1c24821b278cfd62ae3b
Contents?: true
Size: 936 Bytes
Versions: 4
Compression:
Stored size: 936 Bytes
Contents
def gem_opt defined?(Gem) ? "-rubygems" : "" end def ruby require 'rbconfig' File.join([Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']]) << Config::CONFIG['EXEEXT'] end # -------------------------------------------------- # Tests # -------------------------------------------------- task(:default => "test:all") namespace(:test) do desc "Run all tests" task(:all) do tests = Dir['test/**/test_*.rb'] - ['test/test_helper.rb'] exit system(%Q{#{ruby} #{gem_opt} -I.:lib -e"%w( #{tests.join(' ')} ).each {|file| require file }"}) end desc "Run all tests on multiple ruby versions (requires rvm)" task(:portability) do %w( 1.8.6 1.8.7 1.9.1 1.9.2 ).each do |version| system <<-BASH bash -c 'source ~/.rvm/scripts/rvm; rvm #{version}; echo "--------- v#{version} ----------\n"; rake -s test:all' BASH end end end
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
social_url_stats-0.0.1 | vendor/ruby/1.9.1/gems/watchr-0.7/Rakefile |
observr-1.0.1 | Rakefile |
observr-1.0 | Rakefile |
watchr-0.7 | Rakefile |