rack-cachely 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 +2 -2
- data/lib/rack-cachely/config.rb +0 -0
- data/lib/rack-cachely/context.rb +1 -1
- data/lib/rack-cachely/version.rb +1 -1
- data/spec/rack-cachely/config_spec.rb +0 -0
- data/spec/rack-cachely/context_spec.rb +0 -0
- data/spec/rack-cachely/key_spec.rb +0 -0
- data/spec/rack-cachely/store_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rack-cachely (0.3.
|
4
|
+
rack-cachely (0.3.2)
|
5
5
|
rack
|
6
6
|
|
7
7
|
GEM
|
@@ -14,7 +14,7 @@ GEM
|
|
14
14
|
fakeweb (1.3.0)
|
15
15
|
i18n (0.6.1)
|
16
16
|
multi_json (1.3.6)
|
17
|
-
rack (1.
|
17
|
+
rack (1.5.1)
|
18
18
|
rspec (2.11.0)
|
19
19
|
rspec-core (~> 2.11.0)
|
20
20
|
rspec-expectations (~> 2.11.0)
|
data/lib/rack-cachely/config.rb
CHANGED
File without changes
|
data/lib/rack-cachely/context.rb
CHANGED
@@ -46,7 +46,7 @@ module Rack
|
|
46
46
|
return false unless (200...300).include?(status)
|
47
47
|
headers = results[1]
|
48
48
|
control = headers["Cache-Control"]
|
49
|
-
if /public/.match(control) && /max-age=(\d+)/.match(control)
|
49
|
+
if /public/.match(control) && /max-age=(\d+)/.match(control) && !/\/assets\//.match(key)
|
50
50
|
@age = $1
|
51
51
|
return true
|
52
52
|
end
|
data/lib/rack-cachely/version.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
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.3.
|
4
|
+
version: 0.3.2
|
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:
|
12
|
+
date: 2013-01-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|