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 CHANGED
@@ -1 +1 @@
1
- 0.0.20
1
+ 0.0.21
data/citygrid_api.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "citygrid_api"
8
- s.version = "0.0.20"
8
+ s.version = "0.0.21"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Elpizo Choi"]
@@ -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
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: citygrid_api
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.20
5
+ version: 0.0.21
6
6
  platform: ruby
7
7
  authors:
8
8
  - Elpizo Choi