intercom 3.7.4 → 3.7.5

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: ee56e3e11c13b620ee6b5a04c3eab742c6064297
4
- data.tar.gz: 39bf3533177283eadb4c021bee58a38d889cbf4b
3
+ metadata.gz: b7b7dc724a3cb9798e155088683adc937fa0678c
4
+ data.tar.gz: ba3c1721df90d5bef05c57a5f58fb68fc2766372
5
5
  SHA512:
6
- metadata.gz: 236a3df567693a41cdcf45c761d0339748748581c048763850122e93efcf56b58633d951b20c9c2ce2f034ab1728c269d784378adae250059bf04b1dbbad5729
7
- data.tar.gz: 5dacf1bcec13579a7161f9467d520174960a1544a03dc2f99cc2a6fdca959901db6ce7800c0dfed10bc235c6353a6e457398e410a59dc175e0c277b9abe1e525
6
+ metadata.gz: fb355da15454b59c17e898149c0280b60686b59ab13ee8ee23482ce9c019f5b187357f88eaae5cd72496e2767fbf283f0cf10c907d90d9bcd142469097fd703e
7
+ data.tar.gz: 94143563fa7c90d483f565521016db8cadab4a3a5bd452a48b4e5117154ff7455bb2ef733fe6d8b181961f09b222644d8026183c312648e16bb7fb74378dc083
data/README.md CHANGED
@@ -22,19 +22,24 @@ 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.3'
25
+ gem 'intercom', '~> 3.7.4'
26
26
 
27
27
  ## Basic Usage
28
28
 
29
29
  ### Configure your client
30
30
 
31
- > If you already have a personal access token you can find it [here](https://app.intercom.io/developers/_/access-token). If you want to create or learn more about personal access tokens then you can find more info [here](https://developers.intercom.io/docs/personal-access-tokens).
31
+ > If you already have a personal access token you can find it [here](https://app.intercom.io/a/apps/_/developer_hub/). If you want to create or learn more about personal access tokens then you can find more info [here](https://developers.intercom.io/docs/personal-access-tokens).
32
32
 
33
33
  ```ruby
34
34
  # With an OAuth or Personal Access token:
35
35
  intercom = Intercom::Client.new(token: 'my_token')
36
36
  ```
37
37
 
38
+ ```ruby
39
+ # With a versioned app:
40
+ intercom = Intercom::Client.new(token: 'my_token', api_version: '1.0')
41
+ ```
42
+
38
43
  If you are building a third party application you can get your access_tokens by [setting-up-oauth](https://developers.intercom.io/page/setting-up-oauth) for Intercom.
39
44
  You can also use the [omniauth-intercom lib](https://github.com/intercom/omniauth-intercom) which is a middleware helping you to handle the authentication process with Intercom.
40
45
 
data/changes.txt CHANGED
@@ -1,3 +1,7 @@
1
+ 3.7.4
2
+ Added support for API versioning via
3
+ Intercom::Client.new(token: "token", api_version "1.1")
4
+
1
5
  3.7.3
2
6
  Added error handling for when an admin cannot be found.
3
7
 
@@ -84,6 +84,9 @@ module Intercom
84
84
  # Raised when an invalid api version is used
85
85
  class ApiVersionInvalid < IntercomError; end
86
86
 
87
+ # Raised when an creating a scroll if one already exists
88
+ class ScrollAlreadyExistsError < IntercomError; end
89
+
87
90
  #
88
91
  # Non-public errors (internal to the gem)
89
92
  #
@@ -187,6 +187,8 @@ module Intercom
187
187
  raise Intercom::ResourceNotUniqueError.new(error_details['message'], error_context)
188
188
  when 'intercom_version_invalid'
189
189
  raise Intercom::ApiVersionInvalid.new(error_details['message'], error_context)
190
+ when 'scroll_exists'
191
+ raise Intercom::ScrollAlreadyExistsError.new(error_details['message'], error_context)
190
192
  when nil, ''
191
193
  raise Intercom::UnexpectedError.new(message_for_unexpected_error_without_type(error_details, parsed_http_code), error_context)
192
194
  else
@@ -1,3 +1,3 @@
1
1
  module Intercom #:nodoc:
2
- VERSION = "3.7.4"
2
+ VERSION = "3.7.5"
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.4
4
+ version: 3.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McRedmond