zendesk_api 0.3.9 → 0.3.10

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.
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- zendesk_api (0.3.9)
10
+ zendesk_api (0.3.10)
11
11
  faraday (>= 0.8.0)
12
12
  faraday_middleware (>= 0.8.7)
13
13
  hashie (>= 1.2)
@@ -34,7 +34,8 @@ module ZendeskAPI
34
34
  env[:response_headers].merge!(
35
35
  :etag => cached[:response_headers][:etag],
36
36
  :content_type => cached[:response_headers][:content_type],
37
- :content_length => cached[:response_headers][:content_length]
37
+ :content_length => cached[:response_headers][:content_length],
38
+ :content_encoding => cached[:response_headers][:content_encoding]
38
39
  )
39
40
  elsif env[:status] == 200 && env[:response_headers]["Etag"] # modified and cacheable
40
41
  @cache.write(cache_key(env), env)
@@ -1,3 +1,3 @@
1
1
  module ZendeskAPI
2
- VERSION = "0.3.9"
2
+ VERSION = "0.3.10"
3
3
  end
@@ -14,7 +14,7 @@ describe ZendeskAPI::Middleware::Request::EtagCache do
14
14
  response.status.should == 304
15
15
  response.body.should == {"x"=>1}
16
16
 
17
- %w{content_type content_length etag}.each do |header|
17
+ %w{content_encoding content_type content_length etag}.each do |header|
18
18
  response.headers[header].should == first_response.headers[header]
19
19
  end
20
20
  end
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.9
4
+ version: 0.3.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: