Sha256: ad2cec455104f1cbabd2f2e0a02c2e93f863596dbd07f6ab6330a39d55cefb7e

Contents?: true

Size: 1.12 KB

Versions: 16

Compression:

Stored size: 1.12 KB

Contents

require 'tasks/config'
#-------------------------------------------------------------------------------
# announcement methods
#-------------------------------------------------------------------------------

proj_config = Configuration.for('project')
namespace :announce do
  desc "create email for ruby-talk"
  task :email do
    info = Utils.announcement

    File.open("email.txt", "w") do |mail|
      mail.puts "From: #{proj_config.author} <#{proj_config.email}>"
      mail.puts "To: ruby-talk@ruby-lang.org"
      mail.puts "Date: #{Time.now.rfc2822}"
      mail.puts "Subject: [ANN] #{info[:subject]}"
      mail.puts
      mail.puts info[:title]
      mail.puts 
      mail.puts "  gem install #{Hitimes::GEM_SPEC.name}"
      mail.puts
      mail.puts info[:urls]
      mail.puts 
      mail.puts info[:description]
      mail.puts 
      mail.puts "{{ Release notes for Version #{Hitimes::VERSION} }}"
      mail.puts 
      mail.puts info[:release_notes]
      mail.puts
    end 
    puts "Created the following as email.txt:"
    puts "-" * 72
    puts File.read("email.txt")
    puts "-" * 72
  end 

  CLOBBER << "email.txt"
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
hitimes-1.0.3-x86-mswin32-60 tasks/announce.rake
hitimes-1.0.2-x86-mswin32-60 tasks/announce.rake
hitimes-1.0.2 tasks/announce.rake
hitimes-1.0.3 tasks/announce.rake
hitimes-1.0.1-x86-mswin32-60 tasks/announce.rake
hitimes-0.2.1 tasks/announce.rake
hitimes-0.3.0-x86-mswin32-60 tasks/announce.rake
hitimes-0.4.0 tasks/announce.rake
hitimes-0.4.0-x86-mswin32-60 tasks/announce.rake
hitimes-1.0.0 tasks/announce.rake
hitimes-0.3.0 tasks/announce.rake
hitimes-0.4.1 tasks/announce.rake
hitimes-0.4.1-x86-mswin32-60 tasks/announce.rake
hitimes-1.0.0-x86-mswin32-60 tasks/announce.rake
hitimes-1.0.1 tasks/announce.rake
stella-0.5.4 vendor/hitimes-0.4.0/tasks/announce.rake