intercom 3.9.2 → 3.9.3

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: b05fef934a0732652abcfa3f996dedcd0fe373e2d445313d91fd317e964d8972
4
- data.tar.gz: 2cb22c404e5bdead26355feadae48df299124157850d0366eb4a57f7523ef1be
3
+ metadata.gz: e0796185b7bee83b7bde3a828c68cdd10710131ec2ab91ed977c05b7cb674e23
4
+ data.tar.gz: 8880d5f5b96fee495822e73fbd0576dfc53162ccc027c2ef6cdfecb1951ace42
5
5
  SHA512:
6
- metadata.gz: 64f7face5cb2170fbe3e5f96a26ced8d869f9c0d529e2b061962d21ef0932276750903889af53f209e740a696c6847429bc7cd04a176266d78ad9be97de19d79
7
- data.tar.gz: c4d837db173d1c67e99aee611248ff9e62965c1b3f5d01f94ef7e131bccfc137174df75316e4caf41be4d25a92fd4b7a32c08272a4d04a0dd020405968f1ccd7
6
+ metadata.gz: 5a2e2c8b67e94e28fcd9726b0d136782bddf82c28ae92cd6c227dba0454a159b82fbc279bf2143de116fc73edadb064d9b84f617b4eba33f18a0d3976de02de1
7
+ data.tar.gz: 3d94e3d71711487740f371b4742adaafd9457ac0af19a66c3bb4a8b53e9a7b6da967d7418207ca5a02c5d6dbf664a759853b4ee17d9addc31165cf04a0c0d250
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.0'
26
+ gem 'intercom', '~> 3.9.2'
27
27
 
28
28
  ## Basic Usage
29
29
 
@@ -1,3 +1,9 @@
1
+ 3.9.2
2
+ Added error handling for malformed responses
3
+
4
+ 3.9.1
5
+ Version skipped in error
6
+
1
7
  3.9.0
2
8
  Added Teams endpoint functionality
3
9
 
@@ -93,8 +93,7 @@ module Intercom
93
93
  :rate_limit_details
94
94
 
95
95
  private :path,
96
- :net_http_method,
97
- :rate_limit_details
96
+ :net_http_method
98
97
 
99
98
  private def client(uri, read_timeout:, open_timeout:)
100
99
  net = Net::HTTP.new(uri.host, uri.port)
@@ -1,3 +1,3 @@
1
1
  module Intercom #:nodoc:
2
- VERSION = "3.9.2"
2
+ VERSION = "3.9.3"
3
3
  end
@@ -73,6 +73,16 @@ module Intercom
73
73
  it 'raises on empty api version' do
74
74
  proc { Client.new(app_id: app_id, api_key: api_key, api_version: '') }.must_raise MisconfiguredClientError
75
75
  end
76
+
77
+ it "assigns works" do
78
+ stub_request(:any, "https://api.intercom.io/users?id=123").to_return(
79
+ status: [200, "OK"],
80
+ headers: { 'X-RateLimit-Reset' => Time.now.utc + 10 },
81
+ body: { "test": "testing" }.to_json
82
+ )
83
+
84
+ client.get("/users", { id: "123" })
85
+ end
76
86
  end
77
87
 
78
88
  describe 'OAuth clients' do
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.2
4
+ version: 3.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McRedmond