no_notifier_needed 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/no_notifier_needed/translate.rb +2 -2
- data/no_notifier_needed.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.3
|
@@ -3,9 +3,8 @@ module NoNotifierNeeded
|
|
3
3
|
def get_send_hash(template)
|
4
4
|
send_hash = base_send_hash(template)
|
5
5
|
send_hash[:subject] = render_template_subject_type(@template)
|
6
|
-
send_hash[:to] = @to
|
6
|
+
send_hash[:to] = @to if @to
|
7
7
|
send_hash[:to] ||= @user.email if @user
|
8
|
-
send_hash[:to] ||= template.sent_to
|
9
8
|
send_hash[:from] = @from unless @from.blank?
|
10
9
|
send_hash[:cc] = @cc.nil? ? nil : @cc
|
11
10
|
send_hash[:reply_to] = @reply_to unless @reply_to.blank?
|
@@ -20,6 +19,7 @@ module NoNotifierNeeded
|
|
20
19
|
|
21
20
|
base[:from] = "#{base.delete(:from_name)} <#{base.delete(:from_email)}>"
|
22
21
|
base[:from] = "#{template.from_name} <#{template.from_email}>" unless template.from_name.blank? || template.from_email.blank?
|
22
|
+
base[:to] ||= template.sent_to.split(',')
|
23
23
|
base[:reply_to] = "#{template.reply_to}" unless template.reply_to.blank?
|
24
24
|
base
|
25
25
|
end
|
data/no_notifier_needed.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: no_notifier_needed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -258,7 +258,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
258
258
|
version: '0'
|
259
259
|
segments:
|
260
260
|
- 0
|
261
|
-
hash:
|
261
|
+
hash: -2111440459372589073
|
262
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
263
|
none: false
|
264
264
|
requirements:
|