Sha256: 40f5106924c4d518bf3ef8534857e99834ec12b8d5fd9ab1ff0d93bd0cdc61f4

Contents?: true

Size: 623 Bytes

Versions: 5

Compression:

Stored size: 623 Bytes

Contents

require 'erb'

MSG_TEMPLATE = File.dirname(__FILE__) + '/email.erb'
SEND_TO      = %w(thin-ruby@googlegroups.com eventmachine-talk@rubyforge.org ruby-talk@ruby-lang.org montreal-on-rails@googlegroups.com)

desc 'Generate a template for the new version annoucement'
task :ann do
  msg = ERB.new(File.read(MSG_TEMPLATE)).result(binding)
    
  body = <<END_OF_MESSAGE
To: #{SEND_TO.join(', ')}
Subject: [ANN] Thin #{Thin::VERSION::STRING} #{Thin::VERSION::CODENAME} release

#{msg}
END_OF_MESSAGE

  fork { `echo "#{body}" | mate` }
end

def changelog
  File.read('CHANGELOG').split("==")[1].split("\n")[1..-1].join("\n")
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thin-0.7.1-x86-mswin32-60 tasks/announce.rake
thin-0.7.1 tasks/announce.rake
thin-0.8.1 tasks/announce.rake
thin-0.8.0 tasks/announce.rake
thin-0.8.2 tasks/announce.rake