pony-express 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/pony-express.rb +3 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.1
|
data/lib/pony-express.rb
CHANGED
@@ -45,9 +45,9 @@ module PonyExpress
|
|
45
45
|
via_options = options.delete(:via_options) || {}
|
46
46
|
|
47
47
|
if TRANSPORTS.include? via
|
48
|
-
case via
|
49
|
-
|
50
|
-
|
48
|
+
case via.to_sym
|
49
|
+
when :sendmail then transport_via_sendmail build(options), via_options
|
50
|
+
when :smtp then transport_via_smtp build(options), options[:from], options[:to], via_options
|
51
51
|
end
|
52
52
|
else
|
53
53
|
raise ArgumentError, ":via can be one of #{TRANSPORTS}"
|