whitelist_mail_proxy 0.3.2 → 0.3.3

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/whitelist_mail_proxy.rb +3 -1
  3. metadata +4 -4
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.2"
48
+ s.version = "0.3.3"
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"
@@ -1,4 +1,6 @@
1
1
  class WhitelistMailProxy
2
+
3
+ class BlockedDelivery < StandardError; end
2
4
 
3
5
  def initialize(options)
4
6
  @delivery_method = options[:delivery_method]
@@ -15,7 +17,7 @@ class WhitelistMailProxy
15
17
  end
16
18
 
17
19
  if blocked.any?
18
- raise "cannot send to #{blocked.inspect}, whitelist is #{regexp.inspect}"
20
+ raise BlockedDelivery.new("cannot send to #{blocked.inspect}, whitelist is #{regexp.inspect}")
19
21
  else
20
22
  real_delivery_method.deliver!(mail)
21
23
  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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthew Rudy Jacobs
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-07 00:00:00 +08:00
18
+ date: 2010-10-08 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies: []
21
21