Permalink
Browse files

adding a rake task to update CHANGELOG dates

  • Loading branch information...
1 parent f96ad0d commit ff3cff894ba947791359b7c4eef8cd4a46a52d9d @tenderlove tenderlove committed Apr 18, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 tasks/release.rb
View
@@ -61,6 +61,19 @@
end
end
+namespace :changelog do
+ task :release_date do
+ FRAMEWORKS.each do |fw|
+ require 'date'
+ replace = '\1(' + Date.today.strftime('%B %d, %Y') + ')'
+ fname = File.join fw, 'CHANGELOG'
+
+ contents = File.read(fname).sub(/^([^(]*)\(unreleased\)/, replace)
+ File.open(fname, 'wb') { |f| f.write contents }
+ end
+ end
+end
+
namespace :all do
task :build => FRAMEWORKS.map { |f| "#{f}:build" } + ['rails:build']
task :install => FRAMEWORKS.map { |f| "#{f}:install" } + ['rails:install']

0 comments on commit ff3cff8

Please sign in to comment.