circuit-api 0.0.7 → 0.0.8

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: c59f2b34d3226a591a2e7b358c146fcda3e34a7f1912f1af5173d209c133b844
4
- data.tar.gz: c8241aa6a47ccd5e7eee7c810c30a317b7838276d0df2a82edc8cec491640550
3
+ metadata.gz: c454e2036fbc574f3eba128408d0b0a0a7eafc76949b9f68e4d343e0fbf51a91
4
+ data.tar.gz: 4ec267ac51ba46e7a6b274e8a01c680a27d6cbbad5b510bb4c5d6d669d94dcc6
5
5
  SHA512:
6
- metadata.gz: 10c2f6f72035b392ffcdd091dbfb9eeffafa14df59ba018dda0cbbb61a9c54bd3c95546f58de1b1824e40d5fbd0624f633c50fa0adb014b7f9196b535a73c2cb
7
- data.tar.gz: 5656d2333176e36ebece062faef0a440c56bda52366fc12894414302d80614d70a0d9e127e73b54db92fda96def802855e34b5eb5b02bac9e64fdb9d422c4276
6
+ metadata.gz: 9a4fec6259749e15896ddd5425badc3839167b22bb8e981d2f89c63dc63f179f6f3912fad4cf4d3ade18739f901acc587157c44d95c8f1ce847606e7a2e69e69
7
+ data.tar.gz: fda87cbaf38ac36e75e3176d9a5d163572ded5ebeb927a3031b3e42cc5dc34d3b9f804c32e7ad08114502c0258022e9728d8ccb4d54fdd613dc0ee3e7e9a3bf0
@@ -72,7 +72,7 @@ module CircuitApi
72
72
  CircuitApi::HttpError
73
73
  end
74
74
 
75
- raise error_class.new(response.code, response.body)
75
+ raise error_class.new(response.code, response.body, uri)
76
76
  end
77
77
  end
78
78
  end
@@ -1,14 +1,15 @@
1
1
  module CircuitApi
2
2
  class HttpError < StandardError
3
- attr_reader :error_code, :error_body
3
+ attr_reader :error_code, :error_body, :uri
4
4
 
5
- def initialize(code, body)
5
+ def initialize(code, body, uri)
6
6
  @error_code = code
7
7
  @error_body = body
8
+ @uri = uri
8
9
  end
9
10
 
10
11
  def message
11
- "HTTP #{error_code}. Error: #{error_body}"
12
+ "HTTP #{error_code} - URI: #{uri}.\n Error: #{error_body}"
12
13
  end
13
14
  end
14
15
 
@@ -1,3 +1,3 @@
1
1
  module CircuitApi
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circuit-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Pochet