rack-cachely 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-cachely (0.2.1)
4
+ rack-cachely (0.2.2)
5
5
  rack
6
6
 
7
7
  GEM
@@ -35,7 +35,8 @@ module Rack
35
35
  end
36
36
 
37
37
  def is_cacheable?(results)
38
- return false if results[0].to_i != 200
38
+ status = results[0].to_i
39
+ return false unless (200...300).include?(status)
39
40
  headers = results[1]
40
41
  control = headers["Cache-Control"]
41
42
  if /public/.match(control) && /max-age=(\d+)/.match(control)
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Cachely
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-cachely
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: