notify_on 1.0.3 → 1.0.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e01543ec023d964f028b9a3514b94acad5326c0
|
4
|
+
data.tar.gz: faa118c6824fd5111c08c285d303058c023ec93b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31b3923be2d66712f096a063a615374d6025d8b1cc6cf1f989e6b070d7c59d3de3129f81a69bef9b2b17579a07ca7a97cc96b5816c11d51b46d2c78a6ae524cd
|
7
|
+
data.tar.gz: 6e2afa433dd8736d9ab934739b9f044f475611118e10a96dcfb94d2201fa238c3db7c44ba8e0bcfd3c9aa61ab1551f3f88ecf67e59294fc2c9409bb3abd8bb9c
|
@@ -17,6 +17,7 @@ module NotifyOn
|
|
17
17
|
end
|
18
18
|
mail :to => @recipient.email,
|
19
19
|
:from => @notification.email_from,
|
20
|
+
:reply_to => @notification.email_reply_to || @notification.email_from,
|
20
21
|
:subject => @notification.email_subject,
|
21
22
|
:template_path => 'notifications',
|
22
23
|
:template_name => template
|
@@ -21,12 +21,17 @@ module NotifyOn
|
|
21
21
|
convert_string(email_from_raw)
|
22
22
|
end
|
23
23
|
|
24
|
+
def email_reply_to
|
25
|
+
convert_string(email_config.reply_to) if email_config.reply_to?
|
26
|
+
end
|
27
|
+
|
24
28
|
def email_subject
|
25
29
|
return email_config.subject if email_config? && email_config.subject?
|
26
30
|
description
|
27
31
|
end
|
28
32
|
|
29
33
|
def should_save_email_id?
|
34
|
+
# if we are using postmark and have callbacks for read receipts, we need this to default to true...
|
30
35
|
email_config? && email_config.save_id?
|
31
36
|
end
|
32
37
|
|
@@ -97,5 +102,6 @@ module NotifyOn
|
|
97
102
|
email_config.from
|
98
103
|
end
|
99
104
|
|
105
|
+
|
100
106
|
end
|
101
107
|
end
|
data/lib/notify_on/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notify_on
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Wille
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-01-
|
12
|
+
date: 2018-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: em-http-request
|