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:
parent
3bcee425a2
commit
dcc399faba
1 changed files with 3 additions and 1 deletions
4
Rakefile
4
Rakefile
|
@ -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|
|
||||||
|
|
Loading…
Reference in a new issue