mandrill-rails 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2JlYTA0MzljZWVlNzAzZTNkNzdiMmJkMjEzNTZhNjkyMjIxNzVhZQ==
4
+ NjkxMTk2MDIzMjNiMzU4YTBiNjIzNDgwMWVjNThiNTMzMTY0YTAyMw==
5
5
  data.tar.gz: !binary |-
6
- OGJmZWEwMTI3MzA2MWQ4YjA3MzYwNWIwNTRiMjk4NmI0ODk2M2IxYg==
6
+ NWRhMTNhMzBlYThjMjQxYjc4YmUxZTkzMDBiNzA3OWI4OTU4MWNkZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2E3N2ZlZDE1MzMyMzM4ODA2M2IyOTVkMzc5NjdiNmVmMDE4Y2UxYWYwOTQ5
10
- Mzc2ZGQyNDRiMjBhZGViMWE2MGQ1MGY2OTdhZTA3N2UwMDNhMWI5MGUyM2M5
11
- YTdkOWNmNWJmYmVjZTgzMzIyMjBjNTkxN2E4OTk5NmMwOTBiYjQ=
9
+ MjJiZjYxMjY3ZTg2ZTYwZDBkNzkyZWQ4ODM1NDI0Njk2ZDE0NDU5MzhjOWZm
10
+ MmE4YTg3OTUzYmIwNmJkM2Y4Y2Q2ZDhmNWFlNThjZGVjYjVhYjg5YjgxMzlm
11
+ OWRjZDk3YTRmYzBmYzYwOWUyNmQ5ZjA1ZTVhYjE4NjRhNjRmNDA=
12
12
  data.tar.gz: !binary |-
13
- MzM3OGI2NDhmOGM3ZDkwYWYxY2Y3ZmQ5YzczYTZlMGMxMDk1ZDU3MWZhZDAy
14
- Mjc2ZDU4ZWE5M2I1ZjI2YTM5YmIzYzRiZGQzYWQ2NGViZWI5YWM4N2M3MjEx
15
- NGQ1MjQ0ZmI2ZjA0YTFhZWYyMGRiNTAzMDNhYmU5NWUwYmQ1OGM=
13
+ ZjIzZDdmMDFmNmM4Zjg2MGFiNjM1MmIzZjg5ODM0OTcxZTEwYWY3ODM1NjZk
14
+ N2MxY2E4Yzg3NjU2MDAzOWViZWMwMGEyMjc5MzRjZDNlZmU1MTIyMmRmZDVj
15
+ MjJlNTIyZTMyZTY0NzEzNjc2MTNiMWVlMmNhOTVmODk3NTI5MTQ=
@@ -3,5 +3,5 @@ module Mandrill
3
3
  end
4
4
  end
5
5
  unless defined?(Mandrill::Rails::VERSION)
6
- Mandrill::Rails::VERSION = "1.1.0"
6
+ Mandrill::Rails::VERSION = "1.1.1"
7
7
  end
@@ -66,9 +66,10 @@ class Mandrill::WebHook::EventDecorator < Hash
66
66
  end
67
67
 
68
68
  # Returns the email (String) of the sender.
69
- # Applicable events: inbound
69
+ # Inbound messages: references 'from_email' message attribute.
70
+ # Send/Open/Click messages: references 'sender' message attribute.
70
71
  def sender_email
71
- msg['from_email']
72
+ msg['from_email']||msg['sender']
72
73
  end
73
74
 
74
75
  # Returns the subject user email address.
@@ -86,7 +86,7 @@ describe Mandrill::WebHook::EventDecorator do
86
86
  :in_reply_to => nil,
87
87
  :references => [],
88
88
  :headers => {},
89
- :sender_email => nil,
89
+ :sender_email => 'from@example.com',
90
90
  :user_email => 'to@example.com',
91
91
  :recipients => [],
92
92
  :recipient_emails => [],
@@ -113,7 +113,7 @@ describe Mandrill::WebHook::EventDecorator do
113
113
  :in_reply_to => nil,
114
114
  :references => [],
115
115
  :headers => {},
116
- :sender_email => nil,
116
+ :sender_email => 'from@example.com',
117
117
  :user_email => 'to@example.com',
118
118
  :recipients => [],
119
119
  :recipient_emails => [],
@@ -130,7 +130,7 @@ describe Mandrill::WebHook::EventDecorator do
130
130
  :in_reply_to => nil,
131
131
  :references => [],
132
132
  :headers => {},
133
- :sender_email => nil,
133
+ :sender_email => 'from@example.com',
134
134
  :user_email => 'to@example.com',
135
135
  :recipients => [],
136
136
  :recipient_emails => [],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandrill-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Gallagher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-27 00:00:00.000000000 Z
11
+ date: 2015-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport