mandrill_mailer 0.4.9 → 0.4.10
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
|
-
|
4
|
+
MDUzNzVlMjM5OTBlNWNiMWEzZDQ5OTkzOTBmYzU3MzI2NTNlNTMzOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTdkYWM1ZTljZGVmZTIyMmI3M2I2NjEyNTU3ODY5MjRjZTAwMjFmYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTVhYzQ1NmU1MDQzOTI1ODcxNTgxMTg3YTQ5ZDU5NWVjYjhlNGQ3OTQ0ZDg4
|
10
|
+
NDBkYzA0MGZkYjRkYTFiZDU0ZmI0NjEyYmUzNjQ1N2JhYzhlZmY2YzdhMGQ2
|
11
|
+
YTFjZTE2Yjk2MTc3MTAyNDBiNmZjN2I5MTg5ZWVlZmVjNTUxOGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWJlMzhjODI2MmYxODJkODRhYTM4ODY4YjFjZDFmZDZjNTczNzc2N2ZhMDU1
|
14
|
+
M2QwZDIyODUzMzg0YjA2MTZmMGQyMjE5Nzg4ZmQ2ZDAyYTk5MzNhNmQwYTAz
|
15
|
+
NTFiM2NmMDc4NzI1MmY1MWRiYTYyOTJjMjJhZTBjM2IwZTVmNWQ=
|
@@ -113,7 +113,6 @@ module MandrillMailer
|
|
113
113
|
# Public: Triggers the stored Mandrill params to be sent to the Mandrill api
|
114
114
|
def deliver
|
115
115
|
mandrill = Mandrill::API.new(api_key)
|
116
|
-
check_required_options(message)
|
117
116
|
mandrill.messages.send_template(template_name, template_content, message, async, ip_pool, send_at)
|
118
117
|
end
|
119
118
|
|
@@ -214,13 +213,5 @@ module MandrillMailer
|
|
214
213
|
"send_at" => send_at
|
215
214
|
}
|
216
215
|
end
|
217
|
-
|
218
|
-
def check_required_options(options)
|
219
|
-
names = ['to', 'from', 'subject']
|
220
|
-
|
221
|
-
names.each do |name|
|
222
|
-
warn("Mandrill Mailer Warn: missing required option: #{name}") unless options.has_key?(name)
|
223
|
-
end
|
224
|
-
end
|
225
216
|
end
|
226
217
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mandrill_mailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Rensel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|