griddler-mandrill-acd 1.0.2 → 1.0.3

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: 99bc14bc834a53114aaf2bb5b9e50d6647c52d69
4
- data.tar.gz: 80840bfff0b7d0f12fdf5d62eb29deef18ba4b00
3
+ metadata.gz: f2bbc5e3e77a05b601c9f7889108364020f57489
4
+ data.tar.gz: ddf0024260cbbe8186c1d14366a4c6fb67692cc6
5
5
  SHA512:
6
- metadata.gz: 3b27456b4ea14cc6932f99344146c641f88691add993767071623e05d5a10245a609da037a3bbe081583f4af1627f3b19df988367bee29cb5d48aa0ede028511
7
- data.tar.gz: 18f9eb6b1d5ba87d0e72294c5e5cca1f3114e723ceff9c97615e795835179a87ee70c6e660dee6f1a50fe2038444a35c02cf683a6ad610e60b88a27db782a474
6
+ metadata.gz: a055a0c6eb62b4c81e963ad58b0fb334f3c9295859fddf5287b52ee80c3387bb466e4a94f8bc2e9d353ae562452e22192ae81bd8f1bfa214a33b7032d5c0e6b8
7
+ data.tar.gz: 18c77e190c64db47185b08bd930d449cad6cae1039f4961143f386693f837316c6e1848c4af8afb16c2fa3ebae8a15239d8841bb79e5438f419a0493cbd08859
@@ -12,8 +12,10 @@ module Griddler
12
12
 
13
13
  def normalize_params
14
14
  events.map do |event|
15
+ to_list = recipients(:to, event)
16
+ to_list = [event['email']] if (to_list.nil? || to_list.empty?) && event['email']
15
17
  {
16
- to: recipients(:to, event),
18
+ to: to_list,
17
19
  cc: recipients(:cc, event),
18
20
  from: full_email([ event[:from_email], event[:from_name] ]),
19
21
  subject: event[:subject],
@@ -1,5 +1,5 @@
1
1
  module Griddler
2
2
  module Mandrill
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: griddler-mandrill-acd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stafford Brunk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-11 00:00:00.000000000 Z
11
+ date: 2015-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: griddler-acd