Sha256: 0f9f3b7eefd4dc5f09f026d8e1e1b29f49b57dbe8de1d1241c3bbd49323afb89

Contents?: true

Size: 1.86 KB

Versions: 2

Compression:

Stored size: 1.86 KB

Contents

# 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', 2..3).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..4).join("\n\n")
  p.rdoc_pattern = /^(app\/(controllers|helpers|models)|lib|bin)|txt$/
  p.clean_globs = ['doc', 'log/*']
  p.spec_extras = {
    :files => Dir['**/*'].reject{|file_name| file_name =~ /^(doc|log|pkg|tmp|WEB-INF)/},
    :rdoc_options => ['--inline-source'],
    :executables => ['backlog'],
    :requirements => ['ImageMagick or GraphicsMagick', 'PostgreSQL']
  }
  p.need_zip = true
  p.url = 'http://rubyforge.org/projects/backlog/'
  p.extra_deps = [['rails', '>= 1.2.3'], ['gruff', '>= 0.2.8'], ['rmagick', '>= 1.15.10'], ['postgres', '>= 0.7.1']]
  p.rsync_args = "-av --delete --exclude=wiki*"
end

task :release_all do
  ENV['VERSION'] = APP::VERSION
  Rake::Task[:publish_docs].invoke
  Rake::Task[:release].invoke
  Rake::Task[:release_war].invoke
  Rake::Task[:post_news].invoke
end

task :release_war do
  Rake::Task['war:standalone:create'].invoke
  war_pkg_file = "pkg/backlog-#{APP::VERSION}.war"
  if File.exists? 'backlog.war'
    File.makedirs 'pkg'
    File.move 'backlog.war', war_pkg_file
  end
  if File.exists? war_pkg_file
    rf = RubyForge.new
    rf.login
    rf.add_file 'backlog', 'backlog', APP::VERSION, war_pkg_file
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
backlog-0.10.4 Rakefile
backlog-0.10.5 Rakefile