zendesk_api 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/zendesk_api/client.rb +8 -3
- data/lib/zendesk_api/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/zendesk_api/client.rb
CHANGED
@@ -131,8 +131,13 @@ module ZendeskAPI
|
|
131
131
|
builder.use ZendeskAPI::Middleware::Response::Logger, config.logger if config.logger
|
132
132
|
builder.use ZendeskAPI::Middleware::Response::ParseIsoDates
|
133
133
|
builder.response :json, :content_type => 'application/json'
|
134
|
-
|
135
|
-
|
134
|
+
|
135
|
+
adapter = config.adapter || Faraday.default_adapter
|
136
|
+
|
137
|
+
unless [:em_http, Faraday::Adapter::EMHttp].include?(adapter)
|
138
|
+
builder.use ZendeskAPI::Middleware::Response::Gzip
|
139
|
+
builder.use ZendeskAPI::Middleware::Response::Deflate
|
140
|
+
end
|
136
141
|
|
137
142
|
# request
|
138
143
|
builder.use ZendeskAPI::Middleware::Request::EtagCache, :cache => config.cache
|
@@ -141,7 +146,7 @@ module ZendeskAPI
|
|
141
146
|
builder.request :json
|
142
147
|
builder.use ZendeskAPI::Middleware::Request::Retry, :logger => config.logger if config.retry # Should always be first in the stack
|
143
148
|
|
144
|
-
builder.adapter *
|
149
|
+
builder.adapter *adapter
|
145
150
|
end
|
146
151
|
end
|
147
152
|
|
data/lib/zendesk_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zendesk_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-03-
|
13
|
+
date: 2013-03-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bump
|