snails 0.5.3 → 0.5.4
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 +4 -4
- data/lib/snails/mailer.rb +2 -2
- data/snails.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63c1da08259ce1c37de080d5a1d6ed958e0d955256dceb9af72f83680904f34c
|
|
4
|
+
data.tar.gz: 432e821c86311cd5c3e7ed354bc759d63da4e100f744b34e3e38a4a1b6c3a0ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 958fd97d0cb0483cf685a7451f8c7c6b13dc3ab488d3b557c4f443eb270e0d7a914a1337848062003d323fe8e3bcf9ec0cfdde5348e75d91c1a3318977e7d920
|
|
7
|
+
data.tar.gz: f8a35986ae97d517aabeb4d08b552d1ea67b9d5c59937c137a634304fb6a041e1a324693e486c26e79b8c221d9c3863bd697c70b0f271a347e4635e9a16ca4f7
|
data/lib/snails/mailer.rb
CHANGED
|
@@ -222,11 +222,11 @@ A <%= @exception.class %> occurred in <%= @url %>:
|
|
|
222
222
|
end
|
|
223
223
|
|
|
224
224
|
if email[:attachments]
|
|
225
|
-
data[:attachment] = email[:attachments].map { |att|
|
|
225
|
+
data[:attachment] = email[:attachments].map { |att| att[:content] }
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
resp = RestClient.post(@url, data)
|
|
229
|
-
resp.code == 200 ? [resp.body, data[:to]] : nil
|
|
229
|
+
return resp.code == 200 ? [resp.body, data[:to]] : nil
|
|
230
230
|
end
|
|
231
231
|
|
|
232
232
|
end
|
data/snails.gemspec
CHANGED