json_api_client 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/json_api_client/errors.rb +5 -1
- data/lib/json_api_client/middleware/status.rb +2 -2
- data/lib/json_api_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b32118172cd75451e1038fe8b5634daa4b004484
|
4
|
+
data.tar.gz: 798b32b112ab83fe6ae93e2c739d68f0ceca69df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e801ad81eb1620047fab620e173e4df91126743e6af11bee7d5b115a362fa1d00da62249133c603511a048670de6baa7a49ed9a4a920ccdbec692dd797b846b2
|
7
|
+
data.tar.gz: ff709d5e9aaa6a9f7bcb795b226e74949b7d66b0d21de476990e27a9cffbdb023f63557420a549e367083bc9c06bcef13b60daa950e4343158aa9042e3ab797c
|
@@ -18,9 +18,9 @@ module JsonApiClient
|
|
18
18
|
def handle_status(code, env)
|
19
19
|
case code
|
20
20
|
when 404
|
21
|
-
raise Errors::NotFound, env[:
|
21
|
+
raise Errors::NotFound, env[:url]
|
22
22
|
when 500..599
|
23
|
-
raise Errors::ServerError, env
|
23
|
+
raise Errors::ServerError, env[:url]
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Ching
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|