whitelist_mail_proxy 0.3.1 → 0.3.2
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/README +8 -2
- data/Rakefile +1 -1
- data/lib/whitelist_mail_proxy.rb +0 -4
- metadata +3 -4
- data/lib/whitelist_mail_proxy/railtie.rb +0 -8
data/README
CHANGED
@@ -11,9 +11,15 @@ Gemfile
|
|
11
11
|
|
12
12
|
gem "whitelist_mail_proxy"
|
13
13
|
|
14
|
-
config/
|
14
|
+
config/application.rb
|
15
15
|
|
16
|
-
|
16
|
+
# this is a hack
|
17
|
+
ActionMailer::Base.add_delivery_method(:whitelist_proxy, WhitelistMailProxy)
|
18
|
+
|
19
|
+
config/staging.rb
|
17
20
|
|
21
|
+
config.action_mailer.delivery_method = :whitelist_proxy
|
22
|
+
# this will use the sendmail_settings defined elsewhere, or ActionMailer's default settings
|
23
|
+
config.action_mailer.whitelist_proxy_settings = {:delivery_method =>:sendmail, :regexp => /@gmail\.com$/}
|
18
24
|
|
19
25
|
Copyright (c) 2010 [Matthew Rudy Jacobs], released under the MIT license
|
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.
|
48
|
+
s.version = "0.3.2"
|
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"
|
data/lib/whitelist_mail_proxy.rb
CHANGED
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matthew Rudy Jacobs
|
@@ -31,7 +31,6 @@ files:
|
|
31
31
|
- MIT-LICENSE
|
32
32
|
- Rakefile
|
33
33
|
- README
|
34
|
-
- lib/whitelist_mail_proxy/railtie.rb
|
35
34
|
- lib/whitelist_mail_proxy.rb
|
36
35
|
has_rdoc: true
|
37
36
|
homepage: http://github.com/matthewrudy/whitelist-mail-proxy
|
@@ -1,8 +0,0 @@
|
|
1
|
-
require 'rails'
|
2
|
-
class WhitelistMailProxy
|
3
|
-
class Railtie < Rails::Railtie
|
4
|
-
initializer "actionmailer.whitelist" do
|
5
|
-
ActionMailer::Base.add_delivery_method(:whitelist_proxy, WhitelistMailProxy) unless ActionMailer::Base.respond_to?(:whitelist_proxy)
|
6
|
-
end
|
7
|
-
end
|
8
|
-
end
|