no_notifier_needed 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "no_notifier_needed"
8
- s.version = "2.2.2"
8
+ s.version = "2.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Robert R. Meyer"]
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.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: 3880069029761303687
261
+ hash: -2111440459372589073
262
262
  required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  none: false
264
264
  requirements: