Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ohai Heroku! Get gmail info from ENV vars.

  • Loading branch information...
commit 15278135a4afa8d07083d606cda49f8e015f316d 1 parent 51733ac
@sarahmei sarahmei authored
Showing with 6 additions and 4 deletions.
  1. +5 −2 diff_mailer.rb
  2. +1 −2  email.erb
View
7 diff_mailer.rb
@@ -6,6 +6,9 @@
repo = "diaspora/diaspora"
list_address = "sarah@joindiaspora.com"
+gmail_user_name = ENV['GMAIL_USER_NAME']
+gmail_password = ENV['GMAIL_PASSWORD']
+
set :views, File.dirname(__FILE__)
post '/commit' do
@@ -21,8 +24,8 @@
:address => 'smtp.gmail.com',
:port => '587',
:enable_starttls_auto => true,
- :user_name => 'your_email@gmail.com',
- :password => 'your_password',
+ :user_name => gmail_user_name,
+ :password => gmail_password,
:authentication => :plain,
:domain => "HELO" # why?
},
View
3  email.erb
@@ -1,7 +1,6 @@
Hi diaspora-dev! Please review these changes.
-<%= commit_details["author"]["name"] %> checked these in to master at
-<%= commit_details["committed_date"] %>.
+<%= commit_details["author"]["name"] %> checked these in to master at <%= commit_details["committed_date"] %>.
NEW FILES:
Please sign in to comment.
Something went wrong with that request. Please try again.