cacheability 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 1
2
+ :patch: 2
3
3
  :major: 1
4
4
  :minor: 2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cacheability}
8
- s.version = "1.2.1"
8
+ s.version = "1.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Cyril Rohr"]
@@ -58,7 +58,7 @@ module RestClient
58
58
  env.merge!("HTTP_"+key.to_s.gsub("-", "_").upcase => value)
59
59
  end
60
60
  response = MockHTTPResponse.new(cache.call(env))
61
- env['rack.errors'].close if env['rack.errors'].respond_to?(:close)
61
+ env['rack.errors'].close if env['rack.errors'].kind_of?(File)
62
62
  RestClient::Response.new(response.body, response)
63
63
  else
64
64
  super(additional_headers)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cacheability
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Rohr