safety_mailer 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9866c887f9df2bf76135e81dff1a180936ebe22e
4
+ data.tar.gz: ef7cfc48a5d2de0e5ccc8c2760a8c1fcfab50f92
5
+ SHA512:
6
+ metadata.gz: c65f8600e4ed72e4d903d0ce97b70bfbabfe76dfe04d10f08eba5713c07143e15a64c096bff116bc62f9d0a6a0831d3b3d6bf34215adb79794d6dff961e86c83
7
+ data.tar.gz: 391d8c771130f0fd91c6588751dfef32abd585f237c9874912e00e29a7d4970dd9bed05aada5e01ea21a36bad2c34ba5fc3d695cd85c2ad425625d24289f7053
@@ -6,7 +6,7 @@ module SafetyMailer
6
6
  self.matchers = params[:allowed_matchers] || []
7
7
  self.settings = params[:delivery_method_settings] || {}
8
8
  delivery_method = params[:delivery_method] || :smtp
9
- @delivery_method = Mail::Configuration.instance.lookup_delivery_method(delivery_method).new(settings)
9
+ @delivery_method = ActionMailer::Base.delivery_methods[delivery_method].new(settings)
10
10
  @sendgrid_options = {}
11
11
  end
12
12
 
@@ -30,7 +30,7 @@ module SafetyMailer
30
30
  def recipients
31
31
  sendgrid?
32
32
  sendgrid_to = @sendgrid_options['to']
33
- sendgrid_to.nil? || sendgrid_to.empty? ? mail.to : sendgrid_to
33
+ sendgrid_to.nil? || sendgrid_to.empty? ? mail.to : sendgrid_to || []
34
34
  end
35
35
 
36
36
  def sendgrid?
@@ -1,3 +1,3 @@
1
1
  module SafetyMailer
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,62 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safety_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
5
- prerelease:
4
+ version: 0.0.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Bill Kirtley
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-06-14 00:00:00.000000000 Z
11
+ date: 2014-10-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: mail
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: actionmailer
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
60
67
  - !ruby/object:Gem::Version
61
68
  version: '0'
62
69
  description: Specify a domain (or set of domains, or magic word in email address)
@@ -76,27 +83,25 @@ files:
76
83
  - README.rdoc
77
84
  homepage: http://github.com/cluesque/safety_mailer
78
85
  licenses: []
86
+ metadata: {}
79
87
  post_install_message:
80
88
  rdoc_options: []
81
89
  require_paths:
82
90
  - lib
83
91
  required_ruby_version: !ruby/object:Gem::Requirement
84
- none: false
85
92
  requirements:
86
- - - ! '>='
93
+ - - '>='
87
94
  - !ruby/object:Gem::Version
88
95
  version: '0'
89
96
  required_rubygems_version: !ruby/object:Gem::Requirement
90
- none: false
91
97
  requirements:
92
- - - ! '>='
98
+ - - '>='
93
99
  - !ruby/object:Gem::Version
94
100
  version: '0'
95
101
  requirements: []
96
102
  rubyforge_project:
97
- rubygems_version: 1.8.23
103
+ rubygems_version: 2.0.14
98
104
  signing_key:
99
- specification_version: 3
105
+ specification_version: 4
100
106
  summary: Restrict email sent by your application to only approved domains or accounts.
101
107
  test_files: []
102
- has_rdoc: