gibbon 2.2.2 → 2.2.3

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.

Potentially problematic release.


This version of gibbon might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 610778f055df0af1212f58dbdafd6e9979c40cc2
4
- data.tar.gz: 3b4f5b4760b3509c381e3c346170673c9bdc4bf3
3
+ metadata.gz: b314077a25462ff39bc051da9964e8d059e8adc9
4
+ data.tar.gz: 6da6d33d428f4dca0f45cff51a1e05912470c17c
5
5
  SHA512:
6
- metadata.gz: 0d979629f9140b4359b1bcd08fb029a4760828db9fd759579e99de13a8d60bfc0ba1de87244accce091c36b583b936fdd7ba2741e7bf2990f9b73992153d35d8
7
- data.tar.gz: 0a6cd276fcb3f7db9cf879444b96cb5de84b4d5f9b0d40e089e7ca14029b0188eb85e6fce2b1bf8c78f57666805c47d113b96fa4844478c34b1e8b60ba9d64e0
6
+ metadata.gz: 684701c680aa61b443a25c550cf3a8e2df935d1cd35ffd25137cd3114fca3eca28f1611bc90a96933f81110f9d65688f546f79896783e0a545729222f7329770
7
+ data.tar.gz: 4aff56999fb044b547e7647e1adb75d9c3b5eca995d1844ea144c72aafede155a53692b98feb85752e0c168efc40a1962ed8c3d5190d1c7b135e1faaa0213644
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased][unreleased]
2
2
 
3
+ ## [2.2.3] - 2016-03-16
4
+ - Capture status code and raw body when response is not json.
5
+
3
6
  ## [2.2.2] - 2016-03-15
4
7
  - Update dependencies
5
8
 
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Gibbon
2
- VERSION = "2.2.2"
2
+ VERSION = "2.2.3"
3
3
  end
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.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-15 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday