Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (33 sloc) 1013 Bytes
require 'config/requirements'
require 'config/hoe' # setup Hoe + all gem configuration
require 'rake/testtask'
require 'rake/rdoctask'
Rake::TaskManager.class_eval do
def remove_task(task_name)
@tasks.delete(task_name.to_s)
end
end
def remove_task(task_name)
Rake.application.remove_task(task_name)
end
Dir['tasks/**/*.rake'].each { |rake| load rake }
remove_task :test
Rake::TestTask.new do |t|
t.test_files = FileList['test/test_*.rb']
t.verbose = true
#t.options = '-rr'
end
Rake::RDocTask.new do |t|
t.main = 'README.txt'
t.rdoc_files.include('README.txt', 'License.txt', 'lib/**/*.rb')
t.options << '--charset' << 'utf-8' << '--inline-source'
end
# desc 'First uninstalls the currently installed Rucola gem and then installs the new one.'
# task :install_gem_test do
# if `rake check_manifest`.split("\n").length == 1
# sh 'gem uninstall rucola'
# Rake::Task['install_gem_no_doc'].invoke
# else
# puts "You first might need to update the manifest!"
# end
# end