snails 0.5.3 → 0.5.4

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
  SHA256:
3
- metadata.gz: b2141ab903141a92598342792b0899b2edbc2a34f5bb0b99e15fe29cfcba39b0
4
- data.tar.gz: 4ba7c23a174c9dd87ca088e0c3a9bb3394aaf83798a8ea00bb54fbf323a00b96
3
+ metadata.gz: 63c1da08259ce1c37de080d5a1d6ed958e0d955256dceb9af72f83680904f34c
4
+ data.tar.gz: 432e821c86311cd5c3e7ed354bc759d63da4e100f744b34e3e38a4a1b6c3a0ef
5
5
  SHA512:
6
- metadata.gz: 82448a3d03af7f7ebf4d8a40a95c4b95c193e0cfa4f93787eb3da22fbe21e6fdeaece97673037a44d2d47ff36b8962cfde325ec943461bf85c98b5444749ea30
7
- data.tar.gz: 21b7792db470ed2967b7961593777873af3d5b50dcc23b3ba30d37d075354c42f4c9377bea8a416c13c00a2099eab60ab2e05cbb5693e199227ed05b88f493e8
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| { att[:content] }
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "snails"
6
- s.version = '0.5.3'
6
+ s.version = '0.5.4'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Tomás Pollak']
9
9
  s.email = ['tomas@forkhq.com']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomás Pollak