gibbon 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of gibbon might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/gibbon/api_request.rb +3 -3
- data/lib/gibbon/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: b314077a25462ff39bc051da9964e8d059e8adc9
|
4
|
+
data.tar.gz: 6da6d33d428f4dca0f45cff51a1e05912470c17c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 684701c680aa61b443a25c550cf3a8e2df935d1cd35ffd25137cd3114fca3eca28f1611bc90a96933f81110f9d65688f546f79896783e0a545729222f7329770
|
7
|
+
data.tar.gz: 4aff56999fb044b547e7647e1adb75d9c3b5eca995d1844ea144c72aafede155a53692b98feb85752e0c168efc40a1962ed8c3d5190d1c7b135e1faaa0213644
|
data/CHANGELOG.md
CHANGED
data/lib/gibbon/api_request.rb
CHANGED
@@ -100,6 +100,9 @@ module Gibbon
|
|
100
100
|
|
101
101
|
begin
|
102
102
|
if error.is_a?(Faraday::Error::ClientError) && error.response
|
103
|
+
error_params[:status_code] = error.response[:status]
|
104
|
+
error_params[:raw_body] = error.response[:body]
|
105
|
+
|
103
106
|
parsed_response = MultiJson.load(error.response[:body])
|
104
107
|
|
105
108
|
if parsed_response
|
@@ -108,11 +111,8 @@ module Gibbon
|
|
108
111
|
error_params[:detail] = parsed_response["detail"] if parsed_response["detail"]
|
109
112
|
end
|
110
113
|
|
111
|
-
error_params[:status_code] = error.response[:status]
|
112
|
-
error_params[:raw_body] = error.response[:body]
|
113
114
|
end
|
114
115
|
rescue MultiJson::ParseError
|
115
|
-
error_params[:status_code] = error.response[:status]
|
116
116
|
end
|
117
117
|
|
118
118
|
error_to_raise = MailChimpError.new(error.message, error_params)
|
data/lib/gibbon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gibbon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amro Mousa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|