outbound 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/outbound.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81d0b51483b705dbd0c544b344f4bf8450f4e4c1
|
4
|
+
data.tar.gz: 54c0a8555c859a0b16fbe84cf5de1e05c9426432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcb91cf7f42a39da2e7c494943f30e056165fa31ece58456abdc5eb2c65225002a7f75dc432dc3e5d8753da04aa2eca24073d12281ac768931125530a95e299d
|
7
|
+
data.tar.gz: a4787e84a4f8b0dd78bd953f5a17f172d6f32d5936ecdb6c54e6b2ac37387583fd8b9aad7d424e8670a19a55e49176767e154ccddab4ec4813a8a46de1819d84
|
data/lib/outbound.rb
CHANGED
@@ -4,7 +4,7 @@ require 'net/http'
|
|
4
4
|
require 'uri'
|
5
5
|
|
6
6
|
module Outbound
|
7
|
-
VERSION = '0.3.
|
7
|
+
VERSION = '0.3.2'
|
8
8
|
BASE_URL = 'https://api.outbound.io/v2'
|
9
9
|
|
10
10
|
APNS = "apns"
|
@@ -238,7 +238,8 @@ module Outbound
|
|
238
238
|
|
239
239
|
err = nil
|
240
240
|
if status < 200 or status >= 400
|
241
|
-
err = "#{status}
|
241
|
+
err = "#{status}"
|
242
|
+
err << " - #{res.body}" unless res.body.empty?
|
242
243
|
end
|
243
244
|
return err, true
|
244
245
|
end
|