intercom 3.5.19 → 3.5.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/intercom/request.rb +1 -1
- data/lib/intercom/version.rb +1 -1
- data/spec/unit/intercom/request_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d152cf68b6c2269f1a3c8e03dbfd9a2a8ec8e824
|
4
|
+
data.tar.gz: f3a554b9dd3ea886772429038ce83cc2ea8fb71b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 213eec7d52a614cf17e3523b5e15e241004e0e6a1210acc0f0d2e13df2e376196711197e4c1109d92310fd29a37a075829ce37597ba422ee2cdd41acc711a7f4
|
7
|
+
data.tar.gz: d399e5fd78ac2df6f1b6102e3d2aa159b4636e8734901725cf858eab0092e7e1da946672268bd7eb1938ea502ac5a206c30f4e0dac28c337bb1444ba2e0301de
|
data/README.md
CHANGED
data/lib/intercom/request.rb
CHANGED
@@ -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
|
|
data/lib/intercom/version.rb
CHANGED
@@ -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.
|
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-
|
18
|
+
date: 2017-10-13 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: minitest
|