citygrid_api 0.0.20 → 0.0.21
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.
- data/VERSION +1 -1
- data/citygrid_api.gemspec +1 -1
- data/lib/citygrid/citygrid_exceptions.rb +6 -6
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.21
|
data/citygrid_api.gemspec
CHANGED
@@ -40,26 +40,26 @@ module CityGridExceptions
|
|
40
40
|
Unexpected response format. Expected response to be a hash, but was instead:\n#{error_body}\n
|
41
41
|
EOS
|
42
42
|
|
43
|
-
super request, response, msg
|
43
|
+
super request, response, msg, curl
|
44
44
|
else
|
45
45
|
msg = <<-EOS
|
46
46
|
Unexpected response format. Expected response to be a hash, but was instead:\n#{response.parsed_response}\n
|
47
47
|
EOS
|
48
48
|
|
49
|
-
super request, response, msg
|
49
|
+
super request, response, msg, curl
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
54
|
class RequestError < APIError
|
55
|
-
def initialize request, response, msg = nil
|
56
|
-
super request, nil, msg
|
55
|
+
def initialize request, response, msg = nil, curl = nil
|
56
|
+
super request, nil, msg, curl
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
60
|
class ResponseError < APIError
|
61
|
-
def initialize request, response, msg = nil
|
62
|
-
super request, response, msg
|
61
|
+
def initialize request, response, msg = nil, curl = nil
|
62
|
+
super request, response, msg, curl
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|