intercom 3.9.4 → 3.9.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
  SHA256:
3
- metadata.gz: e91491f3bc68beec6be9a2fa595d446aabc7a8ab62127d54f204325c20a19c8e
4
- data.tar.gz: d14661974dddeb5dc385cbb739c856bccd0809f93e01af10d14f6ae3464c8d44
3
+ metadata.gz: 204538ee7ce2d0d8b41b4c0b8ff4c6d80084570c410850ba02fc936a14292b8d
4
+ data.tar.gz: 6704e411dcc92ae860d3d519bdd592e35ac2b931fb20e188b934bb4228232f12
5
5
  SHA512:
6
- metadata.gz: bb94e199bca968f5976ee9036b8bfc17fe93ce386464715eb047de220203c3139607bb8f39e23a160193ab136ca2f1dcd631f976362a3cb1fc75ca799605ddfc
7
- data.tar.gz: 3b447a5a048ae09870119d15412359dcf041560c787753ca84d16f76368e818b8255da0199fef1a7da82b4dac3a68c1808c2dcaa2bd3952c32956e9308c09173
6
+ metadata.gz: 496d153506de79e3527db4ba20176dd375a29ad37ab259121030f8b70ab5ba934db19fa917c28755d7205f092df2756f493742f47dbbc1eab895ac8ffa15a330
7
+ data.tar.gz: 7248e5d8c2734a256c499b3145758965b2efd48b0b531a337e1337553724c40f156263b67f8db5612ed5bc2c92fb6a57b3d3068d2360647e412f8861c1a9f205
data/README.md CHANGED
@@ -23,7 +23,7 @@ This version of the gem is compatible with `Ruby 2.1` and above.
23
23
 
24
24
  Using bundler:
25
25
 
26
- gem 'intercom', '~> 3.9.3'
26
+ gem 'intercom', '~> 3.9.4'
27
27
 
28
28
  ## Basic Usage
29
29
 
@@ -1,3 +1,6 @@
1
+ 3.9.4
2
+ Add handling for Gateway Timeouts
3
+
1
4
  3.9.3
2
5
  Fix regression added in 3.9.2
3
6
 
@@ -136,7 +136,7 @@ module Intercom
136
136
 
137
137
  def validate_api_version!
138
138
  error = MisconfiguredClientError.new("api_version must be either nil or a valid API version")
139
- fail error if (@api_version && Gem::Version.new(@api_version) < Gem::Version.new('1.0'))
139
+ fail error if (@api_version && @api_version != 'Unstable' && Gem::Version.new(@api_version) < Gem::Version.new('1.0'))
140
140
  end
141
141
 
142
142
  def execute_request(request)
@@ -1,3 +1,3 @@
1
1
  module Intercom #:nodoc:
2
- VERSION = "3.9.4"
2
+ VERSION = "3.9.5"
3
3
  end
@@ -66,6 +66,10 @@ module Intercom
66
66
  assert_nil(Client.new(app_id: app_id, api_key: api_key, api_version: nil).api_version)
67
67
  end
68
68
 
69
+ it 'allows api version to be Unstable' do
70
+ Client.new(app_id: app_id, api_key: api_key, api_version: 'Unstable').api_version.must_equal('Unstable')
71
+ end
72
+
69
73
  it 'raises on invalid api version' do
70
74
  proc { Client.new(app_id: app_id, api_key: api_key, api_version: '0.2') }.must_raise MisconfiguredClientError
71
75
  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.9.4
4
+ version: 3.9.5
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-11-12 00:00:00.000000000 Z
18
+ date: 2019-11-14 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: minitest