Rakefile in backlog-0.3.3 vs Rakefile in backlog-0.3.4

- old
+ new

@@ -9,11 +9,14 @@ require 'tasks/rails' require 'hoe' -Hoe.new("backlog", '0.3.3') do |p| +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") @@ -21,5 +24,10 @@ 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 \ No newline at end of file