safety_mailer 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/safety_mailer/safety_mailer.rb +5 -5
- data/lib/safety_mailer/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85f0d639f0e74a9a09b5b3c38120447f1e6a86bd
|
4
|
+
data.tar.gz: 08ded9abda5cd2c321a78a36c6d8bfb03184450f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fc2c5e076b8d7ccdbaf74d708ca25f10898981aa95b1a5f6e0fa03e69a0df855632cbd623624a52be6ed003bd5dae3eb15b8e95455ec05017d386b17cf1e3fe
|
7
|
+
data.tar.gz: 50e7d8fb3a4af518bfd36354541a431e0284ea783ec881686c41fd4c46c5241c8572d2da4f2727ccfeeb09b7da3700dc09858b1bbaab88038b3ce60cf206920e
|
@@ -25,7 +25,11 @@ module SafetyMailer
|
|
25
25
|
@delivery_method.deliver!(mail)
|
26
26
|
end
|
27
27
|
|
28
|
-
|
28
|
+
def whitelisted?(recipient)
|
29
|
+
matchers.any? { |m| recipient =~ m }
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
29
33
|
|
30
34
|
def recipients
|
31
35
|
sendgrid?
|
@@ -50,10 +54,6 @@ module SafetyMailer
|
|
50
54
|
allowed
|
51
55
|
end
|
52
56
|
|
53
|
-
def whitelisted?(recipient)
|
54
|
-
matchers.any? { |m| recipient =~ m }
|
55
|
-
end
|
56
|
-
|
57
57
|
# Handles clean-up for additional SendGrid features that may be required
|
58
58
|
# by changes to the recipient list. Expects the passed-in Array of
|
59
59
|
# addresses to have been whitelist-filtered already.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: safety_mailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bill Kirtley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -74,13 +74,13 @@ executables: []
|
|
74
74
|
extensions: []
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
|
+
- Gemfile
|
78
|
+
- README.rdoc
|
79
|
+
- Rakefile
|
80
|
+
- lib/safety_mailer.rb
|
77
81
|
- lib/safety_mailer/railtie.rb
|
78
82
|
- lib/safety_mailer/safety_mailer.rb
|
79
83
|
- lib/safety_mailer/version.rb
|
80
|
-
- lib/safety_mailer.rb
|
81
|
-
- Gemfile
|
82
|
-
- Rakefile
|
83
|
-
- README.rdoc
|
84
84
|
homepage: http://github.com/cluesque/safety_mailer
|
85
85
|
licenses: []
|
86
86
|
metadata: {}
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
102
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.4.2
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: Restrict email sent by your application to only approved domains or accounts.
|