Rakefile in backlog-0.4.0 vs Rakefile in backlog-0.5.0

- old
+ new

@@ -8,15 +8,13 @@ require 'rake/rdoctask' require 'tasks/rails' require 'hoe' +require 'version_from_history' -first_history_line = File.readlines('History.txt')[0].chomp -version = (/^== (\d+.\d+.\d+) .*$/.match first_history_line)[1] - -Hoe.new("backlog", version) do |p| +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.remote_rdoc_dir = '' # Release to root p.changes = p.paragraphs_of('History.txt', 0..-1).join("\n\n") @@ -26,10 +24,10 @@ } p.need_zip = true end task :release_and_publish do - ENV['VERSION'] = version + ENV['VERSION'] = APP::VERSION Rake::Task[:release].invoke Rake::Task[:publish_docs].invoke Rake::Task[:post_news].invoke end \ No newline at end of file