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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/pony-express.rb +3 -3
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0
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
- 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
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}"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 0
9
- version: 0.8.0
8
+ - 1
9
+ version: 0.8.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bharanee Rathna