outbound 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/outbound.rb +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a829a64b45f3b3978897e69d1f22edd38d5fe79
4
- data.tar.gz: d48a55fe1713fc757513d339b491a2e39b259dc3
3
+ metadata.gz: 81d0b51483b705dbd0c544b344f4bf8450f4e4c1
4
+ data.tar.gz: 54c0a8555c859a0b16fbe84cf5de1e05c9426432
5
5
  SHA512:
6
- metadata.gz: 90548565b1d11e68d27f86d703269868eaa36a7d31d3ea73cc1e8614e18685846525cf8953b9c9792860e65bcadfab6ac1c4ac1c67531b0a2decf8327b11011a
7
- data.tar.gz: b041e42b052cdddc61f3022ca7ed9a03032b139d5b7b4eaf40c9371e6697cc39e0c919693b46515a49394935be5be8cf9d1dcaa96e5bb64519a996d484f8b9a6
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.1'
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} - #{res.body}" if res.response_body_permitted? else nil
241
+ err = "#{status}"
242
+ err << " - #{res.body}" unless res.body.empty?
242
243
  end
243
244
  return err, true
244
245
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outbound
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Beauvais