1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Make the from email for releasing to ELPA a little more configurable.

This commit is contained in:
Nathan Weizenbaum 2009-09-21 14:42:39 -07:00
parent 3bcee425a2
commit dcc399faba

View file

@ -97,7 +97,9 @@ task :release_elpa do
rev = File.read(".git/#{$1}").strip rev = File.read(".git/#{$1}").strip
end end
from = "nex342@gmail.com" from = `git config user.email`
raise "Don't know how to send emails except via Gmail" unless from =~ /@gmail.com$/
to = "elpa@tromey.com" to = "elpa@tromey.com"
Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
Net::SMTP.start('smtp.gmail.com', 587, 'gmail.com', from, read_password("GMail Password"), :login) do |smtp| Net::SMTP.start('smtp.gmail.com', 587, 'gmail.com', from, read_password("GMail Password"), :login) do |smtp|