Sha256: fc12f4705115be0bfc03e213e537b35725bb6de5806c828a44248848818edd76

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 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'

first_history_line = File.readlines('History.txt')[0].chomp
version = (/^== (\d+.\d+.\d+) .*$/.match first_history_line)[1]

Hoe.new("backlog", 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.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)/}
  }
  p.need_zip = true
end

task :rel do
  ENV['VERSION'] = version
  Rake::Task[:release].invoke
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
backlog-0.3.4 Rakefile