# Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require(File.join(File.dirname(__FILE__), 'config', 'boot')) require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'tasks/rails' require 'hoe' require 'version_from_history' Hoe.new("backlog", APP::VERSION) do |p| p.rubyforge_name = "backlog" p.summary = "Application to aid collecting, processing, organizing, reviewing and doing tasks." p.description = p.paragraphs_of('README.txt', 0..-1).join("\n\n") p.author = 'Uwe Kubosch' p.email = 'uwe@kubosch.no' p.remote_rdoc_dir = '' # Release to root p.changes = p.paragraphs_of('History.txt', 0..-1).join("\n\n") p.rdoc_pattern = /^(app\/(controllers|helpers|models)|lib|bin)|txt$/ p.spec_extras = { :files => Dir['**/*'].reject{|file_name| file_name =~ /^(log|pkg|tmp)/}, :rdoc_options => [], } p.need_zip = true p.url = 'http://rubyforge.org/projects/backlog/' p.extra_deps = [['gruff', '>= 0.2.8'], ['rmagick', '>= 1.15.9']] end task :release_and_publish do ENV['VERSION'] = APP::VERSION Rake::Task[:release].invoke Rake::Task[:publish_docs].invoke Rake::Task[:post_news].invoke end