intercom 3.7.5 → 3.7.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7b7dc724a3cb9798e155088683adc937fa0678c
4
- data.tar.gz: ba3c1721df90d5bef05c57a5f58fb68fc2766372
3
+ metadata.gz: 2c4c8b57a5c41c85975fdf6fcef17df57ed569f9
4
+ data.tar.gz: 1322a94169648b92d3b7118e1260335d98416f75
5
5
  SHA512:
6
- metadata.gz: fb355da15454b59c17e898149c0280b60686b59ab13ee8ee23482ce9c019f5b187357f88eaae5cd72496e2767fbf283f0cf10c907d90d9bcd142469097fd703e
7
- data.tar.gz: 94143563fa7c90d483f565521016db8cadab4a3a5bd452a48b4e5117154ff7455bb2ef733fe6d8b181961f09b222644d8026183c312648e16bb7fb74378dc083
6
+ metadata.gz: f0a3a916a70c2fc634d00179003d9e187aa3a9b093d47a44e25388b6db7adab10ecf36b3713ce9d03768e017dfb92ed9a1f1e43161f838d624a1cf021732dffa
7
+ data.tar.gz: dc48ee16054b0a14c8c4bc6ebfe5590e70543f790298ffd824fecdece3acd0b68bed7b806c94cafd56032755eb749d0be0f8adc4fb1f23acdbfc4ef272d5fe1c
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.7.4'
25
+ gem 'intercom', '~> 3.7.5'
26
26
 
27
27
  ## Basic Usage
28
28
 
@@ -1,3 +1,6 @@
1
+ 3.7.5
2
+ Added error handling for scroll_exists error state
3
+
1
4
  3.7.4
2
5
  Added support for API versioning via
3
6
  Intercom::Client.new(token: "token", api_version "1.1")
@@ -87,6 +87,9 @@ module Intercom
87
87
  # Raised when an creating a scroll if one already exists
88
88
  class ScrollAlreadyExistsError < IntercomError; end
89
89
 
90
+ # Raised when a CDA is invalid
91
+ class InvalidDocumentError < IntercomError; end
92
+
90
93
  #
91
94
  # Non-public errors (internal to the gem)
92
95
  #
@@ -179,6 +179,8 @@ module Intercom
179
179
  raise Intercom::RateLimitExceeded.new(error_details['message'], error_context)
180
180
  when "custom_data_limit_reached"
181
181
  raise Intercom::CDALimitReachedError.new(error_details['message'], error_context)
182
+ when "invalid_document"
183
+ raise Intercom::InvalidDocumentError.new(error_details['message'], error_context)
182
184
  when 'service_unavailable'
183
185
  raise Intercom::ServiceUnavailableError.new(error_details['message'], error_context)
184
186
  when 'conflict', 'unique_user_constraint'
@@ -1,3 +1,3 @@
1
1
  module Intercom #:nodoc:
2
- VERSION = "3.7.5"
2
+ VERSION = "3.7.6"
3
3
  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.7.5
4
+ version: 3.7.6
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: 2019-03-01 00:00:00.000000000 Z
18
+ date: 2019-03-26 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: minitest