Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (29 sloc) 794 Bytes
require "bundler/gem_tasks"
require 'rake/testtask'
require 'sdoc'
require 'rdoc/task'
task :console do
exec 'irb -I lib -r mls.rb'
end
task :c => :console
Rake::TestTask.new do |t|
t.libs << 'lib' << 'test'
t.test_files = FileList['test/units/**/test*.rb']
#t.warning = true
#t.verbose = true
end
Rake::RDocTask.new do |rd|
rd.main = 'README.rdoc'
rd.title = 'MLS Documentation'
rd.rdoc_dir = 'doc'
rd.options << '-f' << 'sdoc' # explictly set shtml generator
rd.options << '-T' << '42floors'
rd.options << '-e' << 'UTF-8'
rd.options << '-g'
rd.options << '--include' << 'lib/rdoc'
rd.rdoc_files.include('README.rdoc')
rd.rdoc_files.include('lib/**/*.rb')
rd.rdoc_files.exclude('lib/rdoc/**/*.rb')
end
desc "Run tests"
task :default => :test
Jump to Line
Something went wrong with that request. Please try again.