saddle 0.0.35 → 0.0.36

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ # 0.0.36
2
+ * Parse JSON before throwing an error. The body may have useful failure info.
@@ -150,15 +150,15 @@ module Saddle
150
150
  builder.use(Saddle::Middleware::Request::JsonEncoded)
151
151
  builder.use(Saddle::Middleware::Request::UrlEncoded)
152
152
 
153
- # Handle parsing out the response if it's JSON
154
- builder.use(Saddle::Middleware::Response::ParseJson)
155
-
156
153
  # Automatic retries
157
154
  builder.use(Saddle::Middleware::Request::Retry)
158
155
 
159
156
  # Raise exceptions on 4xx and 5xx errors
160
157
  builder.use(Faraday::Response::RaiseError)
161
158
 
159
+ # Handle parsing out the response if it's JSON
160
+ builder.use(Saddle::Middleware::Response::ParseJson)
161
+
162
162
  # Set up instrumentation around the adapter for extensibility
163
163
  builder.use(FaradayMiddleware::Instrumentation)
164
164
 
@@ -1,3 +1,3 @@
1
1
  module Saddle
2
- VERSION = '0.0.35'
2
+ VERSION = '0.0.36'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saddle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.35
4
+ version: 0.0.36
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-18 00:00:00.000000000 Z
12
+ date: 2013-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -68,6 +68,7 @@ files:
68
68
  - .gitignore
69
69
  - .rspec
70
70
  - .travis.yml
71
+ - CHANGELOG.md
71
72
  - Gemfile
72
73
  - Gemfile.lock
73
74
  - LICENSE