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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9866c887f9df2bf76135e81dff1a180936ebe22e
4
- data.tar.gz: ef7cfc48a5d2de0e5ccc8c2760a8c1fcfab50f92
3
+ metadata.gz: 85f0d639f0e74a9a09b5b3c38120447f1e6a86bd
4
+ data.tar.gz: 08ded9abda5cd2c321a78a36c6d8bfb03184450f
5
5
  SHA512:
6
- metadata.gz: c65f8600e4ed72e4d903d0ce97b70bfbabfe76dfe04d10f08eba5713c07143e15a64c096bff116bc62f9d0a6a0831d3b3d6bf34215adb79794d6dff961e86c83
7
- data.tar.gz: 391d8c771130f0fd91c6588751dfef32abd585f237c9874912e00e29a7d4970dd9bed05aada5e01ea21a36bad2c34ba5fc3d695cd85c2ad425625d24289f7053
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
- private
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.
@@ -1,3 +1,3 @@
1
1
  module SafetyMailer
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
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.8
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-14 00:00:00.000000000 Z
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.0.14
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.