Skip to content

Commit

Permalink
add environment variable 'FROM_EMAIL' option
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed Jan 3, 2014
1 parent b00a336 commit e5c2d51
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
rbtc_arbitrage (1.4.1)
rbtc_arbitrage (1.4.2)
activemodel (>= 3.1)
activesupport (>= 3.1)
bitstamp
Expand Down
2 changes: 1 addition & 1 deletion lib/rbtc_arbitrage/trader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def notify

def setup_pony
Pony.options = {
from: "info@uludum.org",
from: ENV['FROM_EMAIL'] || "info@example.org",
subject: "rbtc_arbitrage notification",
via: :smtp,
via_options: {
Expand Down
2 changes: 1 addition & 1 deletion lib/rbtc_arbitrage/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RbtcArbitrage
VERSION = "1.4.1"
VERSION = "1.4.2"
end
2 changes: 1 addition & 1 deletion spec/trader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
end
it "sets up pony correctly" do
opts = {
from: "info@uludum.org",
from: "info@example.org",
subject: "rbtc_arbitrage notification",
:via => :smtp,
:via_options => {
Expand Down

0 comments on commit e5c2d51

Please sign in to comment.