diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-04-18 23:35:28 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-04-18 23:35:28 +0100 |
commit | 3bff8bdb2ae0d16cb051c6bfae326837f5f20ee0 (patch) | |
tree | f2b4dc1f6265ed7b568fe75da37288d8d16faab4 | |
parent | 019cd51a3f36ec7631bf1b63c069e62a3b5185d4 (diff) | |
parent | 64e2a549cf92f25026a85575940a722492310125 (diff) | |
download | rails-3bff8bdb2ae0d16cb051c6bfae326837f5f20ee0.tar.gz rails-3bff8bdb2ae0d16cb051c6bfae326837f5f20ee0.tar.bz2 rails-3bff8bdb2ae0d16cb051c6bfae326837f5f20ee0.zip |
Merge branch 'master' of github.com:rails/rails
-rw-r--r-- | tasks/release.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tasks/release.rb b/tasks/release.rb index a605fed160..01950b227d 100644 --- a/tasks/release.rb +++ b/tasks/release.rb @@ -61,6 +61,32 @@ directory "dist" 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 + + task :release_summary do + FRAMEWORKS.each do |fw| + puts "## #{fw}" + fname = File.join fw, 'CHANGELOG' + contents = File.readlines fname + contents.shift + changes = [] + changes << contents.shift until contents.first =~ /^\*Rails \d+\.\d+\.\d+/ + puts changes.reject { |change| change.strip.empty? }.join + puts + end + end +end + namespace :all do task :build => FRAMEWORKS.map { |f| "#{f}:build" } + ['rails:build'] task :install => FRAMEWORKS.map { |f| "#{f}:install" } + ['rails:install'] |