pony-express 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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}"
|