zendesk_api 1.7.4 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a8136e8dbb6d7205f9e621716c932ab3cc126fd
|
4
|
+
data.tar.gz: e3172fe0c372455575eacbff2fb1cb561fdfaa6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ffb325cdc67e9f8023cf13d106508372ca51a970dc29b32a986e47f947cf048944dca5ee6efcc5f8261da53d574b85a03f2d248e93c887e18ffbe7e89d40333
|
7
|
+
data.tar.gz: e3b4ba19b901378f884a1af3352fd28d4103af5f46d75c859ec687a3e22b9ecc5fea92996dddd46a8b7b9d975735a01c40f08d3d9f04576dfeadb3304045f2c1
|
data/README.md
CHANGED
@@ -19,6 +19,7 @@ Please check out the [wiki](https://github.com/zendesk/zendesk_api_client_rb/wik
|
|
19
19
|
* Version >= 1.0 and < 1.4.2 had a bug where non application/json response bodies were discarded
|
20
20
|
* Version 1.5.0 removed support for Ruby 1.8
|
21
21
|
* Version 1.6.0 ZendeskAPI::Voice::CertificationAddress is now ZendeskAPI::Voice::Address
|
22
|
+
* Version 1.8.0 no longer considers 1XX and 3XX (except 304) response status codes valid and will raise a NetworkError
|
22
23
|
|
23
24
|
## Installation
|
24
25
|
|
data/lib/zendesk_api/version.rb
CHANGED
@@ -47,6 +47,30 @@ describe ZendeskAPI::Middleware::Response::RaiseError do
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
+
context "with status in 1XX" do
|
51
|
+
let(:status) { 100 }
|
52
|
+
|
53
|
+
it "should raise NetworkError" do
|
54
|
+
expect { client.connection.get "/non_existent" }.to raise_error(ZendeskAPI::Error::NetworkError)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
context "with status = 304" do
|
59
|
+
let(:status) { 304 }
|
60
|
+
|
61
|
+
it "should not raise" do
|
62
|
+
client.connection.get "/abcdef"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
context "with status in 3XX" do
|
67
|
+
let(:status) { 302 }
|
68
|
+
|
69
|
+
it "should raise NetworkError" do
|
70
|
+
expect { client.connection.get "/non_existent" }.to raise_error(ZendeskAPI::Error::NetworkError)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
50
74
|
context "with status = 422" do
|
51
75
|
let(:status) { 422 }
|
52
76
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zendesk_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Davidovitz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05
|
12
|
+
date: 2015-06-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bump
|
@@ -351,7 +351,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
351
351
|
version: 1.3.6
|
352
352
|
requirements: []
|
353
353
|
rubyforge_project:
|
354
|
-
rubygems_version: 2.
|
354
|
+
rubygems_version: 2.4.7
|
355
355
|
signing_key:
|
356
356
|
specification_version: 4
|
357
357
|
summary: Zendesk REST API Client
|