whitelist_mail_proxy 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -45,7 +45,7 @@ spec = Gem::Specification.new do |s|
45
45
 
46
46
  # Change these as appropriate
47
47
  s.name = "whitelist_mail_proxy"
48
- s.version = "0.3.0"
48
+ s.version = "0.3.1"
49
49
  s.summary = "A thin proxy for Mail and ActionMailer to enable whitelisting"
50
50
  s.author = "Matthew Rudy Jacobs"
51
51
  s.email = "MatthewRudyJacobs@gmail.com"
@@ -2,7 +2,7 @@ require 'rails'
2
2
  class WhitelistMailProxy
3
3
  class Railtie < Rails::Railtie
4
4
  initializer "actionmailer.whitelist" do
5
- ActionMailer::Base.add_delivery_method(:whitelist_proxy, WhitelistMailProxy)
5
+ ActionMailer::Base.add_delivery_method(:whitelist_proxy, WhitelistMailProxy) unless ActionMailer::Base.respond_to?(:whitelist_proxy)
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whitelist_mail_proxy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthew Rudy Jacobs