Sha256: fff4be046973c10864e61e068d6a4d15db3d798ee3298602e2f5892756698f2e

Contents?: true

Size: 1.12 KB

Versions: 18

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 #{Launchy::GEM_SPEC.name}"
      mail.puts
      mail.puts info[:urls]
      mail.puts 
      mail.puts info[:description]
      mail.puts 
      mail.puts "{{ Release notes for Version #{Launchy::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

18 entries across 18 versions & 4 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/launchy-0.3.7/tasks/announce.rake
launchy-0.4.0 tasks/announce.rake
gemrage-1.0.0 vendor/ruby/1.8/gems/launchy-0.3.7/tasks/announce.rake
gemrage-0.4.1 vendor/ruby/1.8/gems/launchy-0.3.7/tasks/announce.rake
gemrage-0.4.0 vendor/ruby/1.8/gems/launchy-0.3.7/tasks/announce.rake
launchy-0.3.7 tasks/announce.rake
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/launchy-0.3.5/tasks/announce.rake
middleman-0.12.2 lib/middleman/vendor/gems/gems/launchy-0.3.5/tasks/announce.rake
launchy-0.3.5 tasks/announce.rake
middleman-0.12.1 lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/announce.rake
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/announce.rake
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/announce.rake
middleman-0.12.0.pre lib/middleman/vendor/gems/gems/launchy-0.3.3/tasks/announce.rake
middleman-0.10.17 vendor/gems/gems/launchy-0.3.3/tasks/announce.rake
middleman-0.10.16 vendor/gems/gems/launchy-0.3.3/tasks/announce.rake
middleman-0.10.15 vendor/gems/gems/launchy-0.3.3/tasks/announce.rake
middleman-0.10.14 vendor/gems/gems/launchy-0.3.3/tasks/announce.rake
launchy-0.3.3 tasks/announce.rake