mongrel_page_cache_handler 1.6.5 → 1.6.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cache_server.rb +2 -0
- data/lib/cacher.rb +1 -0
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +44 -37
data/lib/cache_server.rb
CHANGED
@@ -12,6 +12,7 @@ module Mongrel
|
|
12
12
|
if f
|
13
13
|
puts "We found: #{file_path} in the cache, let's render it"
|
14
14
|
response.start(200, true) do |head, out|
|
15
|
+
head["Content-Type"] = "text/html"
|
15
16
|
out.write(f)
|
16
17
|
end
|
17
18
|
end
|
@@ -20,6 +21,7 @@ module Mongrel
|
|
20
21
|
if File.exists?(file_path)
|
21
22
|
puts "We found: #{file_path} on the disk, let's render it"
|
22
23
|
response.start(200, true) do |head, out|
|
24
|
+
head["Content-Type"] = "text/html"
|
23
25
|
out.write(File.open(file_path).read)
|
24
26
|
end
|
25
27
|
end
|
data/lib/cacher.rb
CHANGED
metadata
CHANGED
@@ -1,20 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.2
|
3
|
-
specification_version: 1
|
4
2
|
name: mongrel_page_cache_handler
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.6.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
- lib
|
11
|
-
- lib
|
12
|
-
- lib
|
13
|
-
- lib/tasks
|
14
|
-
email:
|
15
|
-
homepage:
|
16
|
-
rubyforge_project: magrathea
|
17
|
-
description: "mongrel_page_cache_handler was developed by: markbates"
|
4
|
+
version: 1.6.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- markbates
|
18
8
|
autorequire:
|
19
9
|
- utils
|
20
10
|
- mongrel_page_cache_handler
|
@@ -26,21 +16,21 @@ autorequire:
|
|
26
16
|
- m_action_controller_base
|
27
17
|
- cacher
|
28
18
|
- cache_server
|
29
|
-
default_executable:
|
30
19
|
bindir: bin
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
20
|
+
cert_chain: []
|
21
|
+
|
22
|
+
date: 2008-01-22 00:00:00 -05:00
|
23
|
+
default_executable:
|
24
|
+
dependencies: []
|
25
|
+
|
26
|
+
description: "mongrel_page_cache_handler was developed by: markbates"
|
27
|
+
email:
|
28
|
+
executables: []
|
29
|
+
|
30
|
+
extensions: []
|
31
|
+
|
32
|
+
extra_rdoc_files: []
|
33
|
+
|
44
34
|
files:
|
45
35
|
- init.rb
|
46
36
|
- lib/cache_server.rb
|
@@ -49,17 +39,34 @@ files:
|
|
49
39
|
- lib/mongrel_page_cache_handler.rb
|
50
40
|
- lib/tasks/rubyforge_config.yml
|
51
41
|
- lib/utils.rb
|
52
|
-
|
53
|
-
|
42
|
+
has_rdoc: false
|
43
|
+
homepage:
|
44
|
+
post_install_message:
|
54
45
|
rdoc_options: []
|
55
46
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
47
|
+
require_paths:
|
48
|
+
- lib
|
49
|
+
- lib
|
50
|
+
- lib
|
51
|
+
- lib/tasks
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: "0"
|
57
|
+
version:
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: "0"
|
63
|
+
version:
|
62
64
|
requirements: []
|
63
65
|
|
64
|
-
|
66
|
+
rubyforge_project: magrathea
|
67
|
+
rubygems_version: 1.0.1
|
68
|
+
signing_key:
|
69
|
+
specification_version: 2
|
70
|
+
summary: mongrel_page_cache_handler
|
71
|
+
test_files: []
|
65
72
|
|