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 +4 -4
- data/README.md +1 -1
- data/changes.txt +3 -0
- data/lib/intercom/client.rb +1 -1
- data/lib/intercom/version.rb +1 -1
- data/spec/unit/intercom/client_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 204538ee7ce2d0d8b41b4c0b8ff4c6d80084570c410850ba02fc936a14292b8d
|
4
|
+
data.tar.gz: 6704e411dcc92ae860d3d519bdd592e35ac2b931fb20e188b934bb4228232f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 496d153506de79e3527db4ba20176dd375a29ad37ab259121030f8b70ab5ba934db19fa917c28755d7205f092df2756f493742f47dbbc1eab895ac8ffa15a330
|
7
|
+
data.tar.gz: 7248e5d8c2734a256c499b3145758965b2efd48b0b531a337e1337553724c40f156263b67f8db5612ed5bc2c92fb6a57b3d3068d2360647e412f8861c1a9f205
|
data/README.md
CHANGED
data/changes.txt
CHANGED
data/lib/intercom/client.rb
CHANGED
@@ -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)
|
data/lib/intercom/version.rb
CHANGED
@@ -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
|
+
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-
|
18
|
+
date: 2019-11-14 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: minitest
|