Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (28 sloc) 0.737 kB
require 'rake/testtask'
desc 'Run all tests'
task :test do
ENV['RAILS_ENV'] = 'test'
$LOAD_PATH.unshift(File.expand_path('test'))
require 'redgreen' if Gem.available?('redgreen')
require 'test/unit'
Dir['test/*/**/test_*.rb'].each {|test| require "./#{test}" }
end
desc 'Generate YARD Documentation'
task :doc do
sh "mv README TEMPME"
sh "rm -rf doc"
sh "yardoc"
sh "mv TEMPME README"
end
namespace :gem do
desc 'Build and install the jammit gem'
task :install do
sh "gem build jammit.gemspec"
sh "sudo gem install #{Dir['*.gem'].join(' ')} --local --no-ri --no-rdoc"
end
desc 'Uninstall the jammit gem'
task :uninstall do
sh "sudo gem uninstall -x jammit"
end
end
task :default => :test
Jump to Line
Something went wrong with that request. Please try again.