intercom 2.1.2 → 2.1.3
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/changes.txt +1 -1
- data/lib/intercom/request.rb +6 -6
- data/lib/intercom/version.rb +1 -1
- 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: 6976bd2a07095bf95783f7be2c63e77831c7ec9d
|
4
|
+
data.tar.gz: 54f2e7cd0cb0b33c8499daece9f1a113ea322ea7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bf7d2d7b646065cf719d56cf5df4f9503b549e466330d2013580333c3ac5ae55456c1587b2f98e55a432436b5a0b3dfb5a20adae248137db37614bd209f021b
|
7
|
+
data.tar.gz: df456322206c0889a328fb0308421302b3606617cfcbe4219eb13fe6f4a731eecdabc74a1c68194c940c1bf8398ae4321a8541e3684d434ad70f72e85fd77517
|
data/README.md
CHANGED
data/changes.txt
CHANGED
data/lib/intercom/request.rb
CHANGED
@@ -68,7 +68,7 @@ module Intercom
|
|
68
68
|
parsed_body
|
69
69
|
end
|
70
70
|
rescue Timeout::Error
|
71
|
-
raise Intercom::ServiceUnavailableError
|
71
|
+
raise Intercom::ServiceUnavailableError.new('Service Unavailable')
|
72
72
|
end
|
73
73
|
|
74
74
|
def decode(content_encoding, body)
|
@@ -78,15 +78,15 @@ module Intercom
|
|
78
78
|
|
79
79
|
def raise_errors_on_failure(res)
|
80
80
|
if res.code.to_i.eql?(404)
|
81
|
-
raise Intercom::ResourceNotFound
|
81
|
+
raise Intercom::ResourceNotFound.new('Resource Not Found')
|
82
82
|
elsif res.code.to_i.eql?(401)
|
83
|
-
raise Intercom::AuthenticationError
|
83
|
+
raise Intercom::AuthenticationError.new('Unauthorized')
|
84
84
|
elsif res.code.to_i.eql?(500)
|
85
|
-
raise Intercom::ServerError
|
85
|
+
raise Intercom::ServerError.new('Server Error')
|
86
86
|
elsif res.code.to_i.eql?(502)
|
87
|
-
raise Intercom::BadGatewayError
|
87
|
+
raise Intercom::BadGatewayError.new('Bad Gateway Error')
|
88
88
|
elsif res.code.to_i.eql?(503)
|
89
|
-
raise Intercom::ServiceUnavailableError
|
89
|
+
raise Intercom::ServiceUnavailableError.new('Service Unavailable')
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
data/lib/intercom/version.rb
CHANGED
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: 2.1.
|
4
|
+
version: 2.1.3
|
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: 2014-07-
|
18
|
+
date: 2014-07-28 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: minitest
|