mail-notify 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/lib/mail/notify/delivery_method.rb +2 -0
- data/lib/mail/notify/mailer.rb +4 -0
- data/lib/mail/notify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cccef3b1098b15cd45d499ca9e14fdde795c87816386bbf87cb29620fb76576
|
4
|
+
data.tar.gz: 05e1dacda06543a00819af0830348ab78abaa870d25278c5e67d996bea4a5d77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbb86ca94843dcd6b534a29d11d850e393ec37a72d90d58fe2b1dfead8471d4b922e6e9fede8cc59b58be6e1d3f3d3ffc0e8798c62f916edfe2a9b40f4ff7e30
|
7
|
+
data.tar.gz: 284a01c7f04728b4bf8dce7575b8ae00b0414cdaec1fe2bca589eb30186ab338f7efae7fb12c7f1cc3d893bc1ebd538350724cc77bb84ea7ad81ae70412b42b8
|
data/CHANGELOG.md
CHANGED
data/lib/mail/notify/mailer.rb
CHANGED
@@ -4,10 +4,14 @@ module Mail
|
|
4
4
|
module Notify
|
5
5
|
class Mailer < ActionMailer::Base
|
6
6
|
def view_mail(template_id, headers)
|
7
|
+
raise ArgumentError, 'You must specify a template ID' if template_id.blank?
|
8
|
+
|
7
9
|
mail(headers.merge(template_id: template_id))
|
8
10
|
end
|
9
11
|
|
10
12
|
def template_mail(template_id, headers)
|
13
|
+
raise ArgumentError, 'You must specify a template ID' if template_id.blank?
|
14
|
+
|
11
15
|
mail(headers.merge(body: '', subject: '', template_id: template_id))
|
12
16
|
end
|
13
17
|
end
|
data/lib/mail/notify/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mail-notify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stuart Harrison
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|