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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2bcdb2519db199fa12de50fdb3f30792b6b302e
4
- data.tar.gz: 22a715c4125a31addbd2107b84b625079be0582d
3
+ metadata.gz: b32118172cd75451e1038fe8b5634daa4b004484
4
+ data.tar.gz: 798b32b112ab83fe6ae93e2c739d68f0ceca69df
5
5
  SHA512:
6
- metadata.gz: c8c8c9f03794048f10d14a008ec9c5d814112d1529be9c2ca52f75905db6cf4cefe7e29507a14d10f8e9105fb8becda63bcedd5bc57d65dbd2a0763e1f5e5491
7
- data.tar.gz: 1959a4ea25275a00db21d7dbc90cbf7974ea1c8c92228b8a7b166fe0857479f136e173935ee5c8dde8a8e331b93d17a59fc1c851f91c385b1c0130c1c2454ebd
6
+ metadata.gz: e801ad81eb1620047fab620e173e4df91126743e6af11bee7d5b115a362fa1d00da62249133c603511a048670de6baa7a49ed9a4a920ccdbec692dd797b846b2
7
+ data.tar.gz: ff709d5e9aaa6a9f7bcb795b226e74949b7d66b0d21de476990e27a9cffbdb023f63557420a549e367083bc9c06bcef13b60daa950e4343158aa9042e3ab797c
@@ -11,8 +11,12 @@ module JsonApiClient
11
11
  end
12
12
 
13
13
  class ServerError < ApiError
14
+ attr_reader :uri
15
+ def initialize(uri)
16
+ @uri = uri
17
+ end
14
18
  def message
15
- "Internal server error"
19
+ "Internal server error at: #{uri.to_s}"
16
20
  end
17
21
  end
18
22
 
@@ -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[:uri]
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
@@ -1,3 +1,3 @@
1
1
  module JsonApiClient
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  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.3
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-27 00:00:00.000000000 Z
11
+ date: 2015-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport