intercom 3.7.1 → 3.7.2
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 +3 -0
- data/lib/intercom/errors.rb +3 -0
- data/lib/intercom/request.rb +2 -0
- 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: 708ce733ee0e370b127a9cd6a112cd51b736e5b5
|
4
|
+
data.tar.gz: e5b89d798adcb026df69012aef5632fc60c07081
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c6390d4a7aabf7d7a7ae5e25ef904cbea0c0c66a4f17370da73d9b9df2d9e27574018f6dc906f55e0712430660e61945997e8464beac30218102da8eb469e19
|
7
|
+
data.tar.gz: 2a22d0138af9458459c946591f6fb55ed88beb2919f1d7b0fbe68c17c560da98a44f19b9f4a34a7ba931719a27837a9921040de71c8a4b90baa79ada938a7bf8
|
data/README.md
CHANGED
data/changes.txt
CHANGED
data/lib/intercom/errors.rb
CHANGED
@@ -63,6 +63,9 @@ module Intercom
|
|
63
63
|
# Raised when the request throws an error not accounted for
|
64
64
|
class UnexpectedError < IntercomError; end
|
65
65
|
|
66
|
+
# Raised when the CDA limit for the app has been reached
|
67
|
+
class CDALimitReachedError < IntercomError; end
|
68
|
+
|
66
69
|
# Raised when multiple users match the query (typically duplicate email addresses)
|
67
70
|
class MultipleMatchingUsersError < IntercomError; end
|
68
71
|
|
data/lib/intercom/request.rb
CHANGED
@@ -170,6 +170,8 @@ module Intercom
|
|
170
170
|
raise Intercom::ResourceNotFound.new(error_details['message'], error_context)
|
171
171
|
when "rate_limit_exceeded"
|
172
172
|
raise Intercom::RateLimitExceeded.new(error_details['message'], error_context)
|
173
|
+
when "custom_data_limit_reached"
|
174
|
+
raise Intercom::CDALimitReachedError.new(error_details['message'], error_context)
|
173
175
|
when 'service_unavailable'
|
174
176
|
raise Intercom::ServiceUnavailableError.new(error_details['message'], error_context)
|
175
177
|
when 'conflict', 'unique_user_constraint'
|
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: 3.7.
|
4
|
+
version: 3.7.2
|
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:
|
18
|
+
date: 2019-01-15 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: minitest
|