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: 20ebc1d4424d3acb413de2b7a9544ca6ec83b76f
4
- data.tar.gz: 703d39825c5b10335594b7225411c339b32c315c
3
+ metadata.gz: 0e01543ec023d964f028b9a3514b94acad5326c0
4
+ data.tar.gz: faa118c6824fd5111c08c285d303058c023ec93b
5
5
  SHA512:
6
- metadata.gz: 5659d918188bdbf224a064e786cce31a370ce1e7e4d7502a3f3abb1bcd97b3ed02f98037031d5c5b98cb05b2e70326b803132dae01c2257247d567deb82294e6
7
- data.tar.gz: f2bf0600ef5d584d2951097ba2863f49c9dd57d021ac757421caf960d06763101c9aa98e8597cc5890dfded75610298067b343c679ef1d65355cc4bbda706938
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
@@ -1,3 +1,3 @@
1
1
  module NotifyOn
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
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.3
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-16 00:00:00.000000000 Z
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