mandrill-rails 1.1.0 → 1.1.1
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.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjkxMTk2MDIzMjNiMzU4YTBiNjIzNDgwMWVjNThiNTMzMTY0YTAyMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWRhMTNhMzBlYThjMjQxYjc4YmUxZTkzMDBiNzA3OWI4OTU4MWNkZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjJiZjYxMjY3ZTg2ZTYwZDBkNzkyZWQ4ODM1NDI0Njk2ZDE0NDU5MzhjOWZm
|
10
|
+
MmE4YTg3OTUzYmIwNmJkM2Y4Y2Q2ZDhmNWFlNThjZGVjYjVhYjg5YjgxMzlm
|
11
|
+
OWRjZDk3YTRmYzBmYzYwOWUyNmQ5ZjA1ZTVhYjE4NjRhNjRmNDA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjIzZDdmMDFmNmM4Zjg2MGFiNjM1MmIzZjg5ODM0OTcxZTEwYWY3ODM1NjZk
|
14
|
+
N2MxY2E4Yzg3NjU2MDAzOWViZWMwMGEyMjc5MzRjZDNlZmU1MTIyMmRmZDVj
|
15
|
+
MjJlNTIyZTMyZTY0NzEzNjc2MTNiMWVlMmNhOTVmODk3NTI5MTQ=
|
@@ -66,9 +66,10 @@ class Mandrill::WebHook::EventDecorator < Hash
|
|
66
66
|
end
|
67
67
|
|
68
68
|
# Returns the email (String) of the sender.
|
69
|
-
#
|
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 =>
|
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 =>
|
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 =>
|
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.
|
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-
|
11
|
+
date: 2015-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|