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 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
@@ -1,3 +1,4 @@
1
+ require 'pp'
1
2
  module Mongrel
2
3
  module PageCacheHandler
3
4
 
@@ -2,4 +2,4 @@
2
2
  gem_name: mongrel_page_cache_handler
3
3
  package: mongrel_page_cache_handler
4
4
  project: magrathea
5
- version: 1.6.5
5
+ version: 1.6.6
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.5
7
- date: 2008-01-08 00:00:00 -05:00
8
- summary: mongrel_page_cache_handler
9
- require_paths:
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
- has_rdoc: false
32
- required_ruby_version: !ruby/object:Gem::Version::Requirement
33
- requirements:
34
- - - ">"
35
- - !ruby/object:Gem::Version
36
- version: 0.0.0
37
- version:
38
- platform: ruby
39
- signing_key:
40
- cert_chain:
41
- post_install_message:
42
- authors:
43
- - markbates
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
- test_files: []
53
-
42
+ has_rdoc: false
43
+ homepage:
44
+ post_install_message:
54
45
  rdoc_options: []
55
46
 
56
- extra_rdoc_files: []
57
-
58
- executables: []
59
-
60
- extensions: []
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
- dependencies: []
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