intercom 3.5.19 → 3.5.20

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d73b6f0f89970d9ccc8e82cfb969549e5f9720a
4
- data.tar.gz: eecb568c0c6116afbef3cec73ee93a459af3bb23
3
+ metadata.gz: d152cf68b6c2269f1a3c8e03dbfd9a2a8ec8e824
4
+ data.tar.gz: f3a554b9dd3ea886772429038ce83cc2ea8fb71b
5
5
  SHA512:
6
- metadata.gz: c1c7a6abeaa8ad78409defd2435908245d152f222dbd68a01ef4ef8dbea14a49044f4a6339b9bfecb3db511e8e9fd0cb027ddcd9359d0b0a1c83cb4dec2417f6
7
- data.tar.gz: 369edfbdd536899f05923d299c61e53b57b57e975370ad7bb16d6090d03786228e86a14b69ea018d8836ef0e688d0adce3d4978339cf4dfbd93be0a4f5a85560
6
+ metadata.gz: 213eec7d52a614cf17e3523b5e15e241004e0e6a1210acc0f0d2e13df2e376196711197e4c1109d92310fd29a37a075829ce37597ba422ee2cdd41acc711a7f4
7
+ data.tar.gz: d399e5fd78ac2df6f1b6102e3d2aa159b4636e8734901725cf858eab0092e7e1da946672268bd7eb1938ea502ac5a206c30f4e0dac28c337bb1444ba2e0301de
data/README.md CHANGED
@@ -22,7 +22,7 @@ This version of the gem is compatible with `Ruby 2.1` and above.
22
22
 
23
23
  Using bundler:
24
24
 
25
- gem 'intercom', '~> 3.5.18'
25
+ gem 'intercom', '~> 3.5.20'
26
26
 
27
27
  ## Basic Usage
28
28
 
@@ -100,7 +100,7 @@ module Intercom
100
100
  rescue JSON::ParserError => _
101
101
  raise_errors_on_failure(response)
102
102
  end
103
- raise_application_errors_on_failure(parsed_body, response.code.to_i) if parsed_body['type'] == 'error.list'
103
+ raise_application_errors_on_failure(parsed_body, response.code.to_i) if parsed_body&['type'] == 'error.list'
104
104
  parsed_body
105
105
  end
106
106
 
@@ -1,3 +1,3 @@
1
1
  module Intercom #:nodoc:
2
- VERSION = "3.5.19"
2
+ VERSION = "3.5.20"
3
3
  end
@@ -62,4 +62,10 @@ describe 'Intercom::Request' do
62
62
  req = Intercom::Request.new('path/', 'GET')
63
63
  assert_nil(req.parse_body(nil, response))
64
64
  end
65
+
66
+ it 'parse_body returns nil if the decoded_body is "null"' do
67
+ response = OpenStruct.new(:code => 500)
68
+ req = Intercom::Request.new('path/', 'GET')
69
+ req.parse_body('null', response).must_equal(nil)
70
+ end
65
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intercom
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.19
4
+ version: 3.5.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McRedmond
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-10-06 00:00:00.000000000 Z
18
+ date: 2017-10-13 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: minitest