mongrel 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/README +30 -24
  2. data/Rakefile +12 -2
  3. data/bin/mongrel_rails +12 -8
  4. data/doc/rdoc/classes/Mongrel.html +18 -1
  5. data/doc/rdoc/classes/Mongrel/CGIWrapper.html +381 -0
  6. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000051.html +24 -0
  7. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000052.html +47 -0
  8. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000053.html +34 -0
  9. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000054.html +27 -0
  10. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000055.html +25 -0
  11. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000056.html +18 -0
  12. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000057.html +18 -0
  13. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000058.html +18 -0
  14. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000059.html +19 -0
  15. data/doc/rdoc/classes/Mongrel/Command.html +119 -0
  16. data/doc/rdoc/classes/Mongrel/Command/Base.html +332 -0
  17. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000003.html +24 -0
  18. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000004.html +41 -0
  19. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000005.html +18 -0
  20. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000006.html +18 -0
  21. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000007.html +18 -0
  22. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000008.html +22 -0
  23. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000009.html +18 -0
  24. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000010.html +18 -0
  25. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000011.html +18 -0
  26. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000012.html +18 -0
  27. data/doc/rdoc/classes/Mongrel/Command/Registry.html +192 -0
  28. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000013.html +20 -0
  29. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000014.html +25 -0
  30. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000015.html +46 -0
  31. data/doc/rdoc/classes/Mongrel/Const.html +2 -2
  32. data/doc/rdoc/classes/Mongrel/DirHandler.html +283 -0
  33. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000023.html +20 -0
  34. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000024.html +42 -0
  35. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000025.html +40 -0
  36. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000026.html +31 -0
  37. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000027.html +38 -0
  38. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000028.html +18 -0
  39. data/doc/rdoc/classes/Mongrel/Error404Handler.html +171 -0
  40. data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000060.html +18 -0
  41. data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000061.html +18 -0
  42. data/doc/rdoc/classes/Mongrel/HeaderOut.html +10 -10
  43. data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000014.html → M000035.html} +0 -0
  44. data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000015.html → M000036.html} +0 -0
  45. data/doc/rdoc/classes/Mongrel/HttpHandler.html +146 -0
  46. data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000037.html +17 -0
  47. data/doc/rdoc/classes/Mongrel/HttpParser.html +35 -35
  48. data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000001.html → M000016.html} +0 -0
  49. data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000002.html → M000017.html} +0 -0
  50. data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000003.html → M000018.html} +0 -0
  51. data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000004.html → M000019.html} +0 -0
  52. data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000005.html → M000020.html} +0 -0
  53. data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000006.html → M000021.html} +0 -0
  54. data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000007.html → M000022.html} +0 -0
  55. data/doc/rdoc/classes/Mongrel/HttpRequest.html +5 -5
  56. data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000029.html → M000062.html} +0 -0
  57. data/doc/rdoc/classes/Mongrel/HttpResponse.html +36 -36
  58. data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000016.html → M000038.html} +0 -0
  59. data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000017.html → M000039.html} +0 -0
  60. data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000018.html → M000040.html} +0 -0
  61. data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000019.html → M000041.html} +0 -0
  62. data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000020.html → M000042.html} +0 -0
  63. data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000021.html → M000043.html} +0 -0
  64. data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000022.html → M000044.html} +0 -0
  65. data/doc/rdoc/classes/Mongrel/HttpServer.html +33 -33
  66. data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000008.html → M000029.html} +0 -0
  67. data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000009.html → M000030.html} +0 -0
  68. data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000010.html → M000031.html} +0 -0
  69. data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000011.html → M000032.html} +0 -0
  70. data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000012.html → M000033.html} +0 -0
  71. data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000013.html → M000034.html} +0 -0
  72. data/doc/rdoc/classes/Mongrel/URIClassifier.html +33 -32
  73. data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000023.html → M000045.html} +0 -0
  74. data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000024.html → M000046.html} +0 -0
  75. data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000025.html → M000047.html} +0 -0
  76. data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000026.html → M000048.html} +0 -0
  77. data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000027.html → M000049.html} +0 -0
  78. data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000028.html → M000050.html} +0 -0
  79. data/doc/rdoc/classes/RailsHandler.html +225 -0
  80. data/doc/rdoc/classes/RailsHandler.src/M000001.html +22 -0
  81. data/doc/rdoc/classes/RailsHandler.src/M000002.html +48 -0
  82. data/doc/rdoc/created.rid +1 -1
  83. data/doc/rdoc/files/README.html +45 -50
  84. data/doc/rdoc/files/lib/mongrel/cgi_rb.html +108 -0
  85. data/doc/rdoc/files/lib/mongrel/command_rb.html +110 -0
  86. data/doc/rdoc/files/lib/mongrel/handlers_rb.html +101 -0
  87. data/doc/rdoc/files/lib/mongrel/plugins_rb.html +108 -0
  88. data/doc/rdoc/files/lib/mongrel/rails_rb.html +108 -0
  89. data/doc/rdoc/fr_class_index.html +8 -0
  90. data/doc/rdoc/fr_file_index.html +5 -0
  91. data/doc/rdoc/fr_method_index.html +62 -29
  92. data/lib/mongrel/command.rb +5 -5
  93. data/lib/mongrel/plugins.rb +3 -152
  94. data/lib/mongrel/rails.rb +1 -1
  95. metadata +95 -35
  96. data/test/plugins/commands/test1.rb +0 -19
  97. data/test/test_plugins.rb +0 -45
@@ -1,5 +1,5 @@
1
1
  require 'mongrel'
2
-
2
+ require_gem 'rails'
3
3
 
4
4
  # Implements a handler that can run Rails and serve files out of the
5
5
  # Rails application's public directory. This lets you run your Rails
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: mongrel
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.8
7
- date: 2006-03-04 00:00:00 -05:00
6
+ version: 0.3.9
7
+ date: 2006-03-06 00:00:00 -05:00
8
8
  summary: A small fast HTTP library and server that runs Rails, Camping, and Nitro apps.
9
9
  require_paths:
10
10
  - lib
@@ -47,9 +47,21 @@ files:
47
47
  - doc/rdoc/rdoc-style.css
48
48
  - doc/rdoc/classes/Mongrel
49
49
  - doc/rdoc/classes/Mongrel.html
50
+ - doc/rdoc/classes/RailsHandler.html
51
+ - doc/rdoc/classes/RailsHandler.src
52
+ - doc/rdoc/classes/Mongrel/CGIWrapper.html
53
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src
54
+ - doc/rdoc/classes/Mongrel/Command
55
+ - doc/rdoc/classes/Mongrel/Command.html
50
56
  - doc/rdoc/classes/Mongrel/Const.html
57
+ - doc/rdoc/classes/Mongrel/DirHandler.html
58
+ - doc/rdoc/classes/Mongrel/DirHandler.src
59
+ - doc/rdoc/classes/Mongrel/Error404Handler.html
60
+ - doc/rdoc/classes/Mongrel/Error404Handler.src
51
61
  - doc/rdoc/classes/Mongrel/HeaderOut.html
52
62
  - doc/rdoc/classes/Mongrel/HeaderOut.src
63
+ - doc/rdoc/classes/Mongrel/HttpHandler.html
64
+ - doc/rdoc/classes/Mongrel/HttpHandler.src
53
65
  - doc/rdoc/classes/Mongrel/HttpParser.html
54
66
  - doc/rdoc/classes/Mongrel/HttpParser.src
55
67
  - doc/rdoc/classes/Mongrel/HttpRequest.html
@@ -62,35 +74,72 @@ files:
62
74
  - doc/rdoc/classes/Mongrel/TimeoutWorker.html
63
75
  - doc/rdoc/classes/Mongrel/URIClassifier.html
64
76
  - doc/rdoc/classes/Mongrel/URIClassifier.src
65
- - doc/rdoc/classes/Mongrel/HeaderOut.src/M000014.html
66
- - doc/rdoc/classes/Mongrel/HeaderOut.src/M000015.html
67
- - doc/rdoc/classes/Mongrel/HttpParser.src/M000001.html
68
- - doc/rdoc/classes/Mongrel/HttpParser.src/M000002.html
69
- - doc/rdoc/classes/Mongrel/HttpParser.src/M000003.html
70
- - doc/rdoc/classes/Mongrel/HttpParser.src/M000004.html
71
- - doc/rdoc/classes/Mongrel/HttpParser.src/M000005.html
72
- - doc/rdoc/classes/Mongrel/HttpParser.src/M000006.html
73
- - doc/rdoc/classes/Mongrel/HttpParser.src/M000007.html
74
- - doc/rdoc/classes/Mongrel/HttpRequest.src/M000029.html
75
- - doc/rdoc/classes/Mongrel/HttpResponse.src/M000016.html
76
- - doc/rdoc/classes/Mongrel/HttpResponse.src/M000017.html
77
- - doc/rdoc/classes/Mongrel/HttpResponse.src/M000018.html
78
- - doc/rdoc/classes/Mongrel/HttpResponse.src/M000019.html
79
- - doc/rdoc/classes/Mongrel/HttpResponse.src/M000020.html
80
- - doc/rdoc/classes/Mongrel/HttpResponse.src/M000021.html
81
- - doc/rdoc/classes/Mongrel/HttpResponse.src/M000022.html
82
- - doc/rdoc/classes/Mongrel/HttpServer.src/M000008.html
83
- - doc/rdoc/classes/Mongrel/HttpServer.src/M000009.html
84
- - doc/rdoc/classes/Mongrel/HttpServer.src/M000010.html
85
- - doc/rdoc/classes/Mongrel/HttpServer.src/M000011.html
86
- - doc/rdoc/classes/Mongrel/HttpServer.src/M000012.html
87
- - doc/rdoc/classes/Mongrel/HttpServer.src/M000013.html
88
- - doc/rdoc/classes/Mongrel/URIClassifier.src/M000023.html
89
- - doc/rdoc/classes/Mongrel/URIClassifier.src/M000024.html
90
- - doc/rdoc/classes/Mongrel/URIClassifier.src/M000025.html
91
- - doc/rdoc/classes/Mongrel/URIClassifier.src/M000026.html
92
- - doc/rdoc/classes/Mongrel/URIClassifier.src/M000027.html
93
- - doc/rdoc/classes/Mongrel/URIClassifier.src/M000028.html
77
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000051.html
78
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000052.html
79
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000053.html
80
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000054.html
81
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000055.html
82
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000056.html
83
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000057.html
84
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000058.html
85
+ - doc/rdoc/classes/Mongrel/CGIWrapper.src/M000059.html
86
+ - doc/rdoc/classes/Mongrel/Command/Base.html
87
+ - doc/rdoc/classes/Mongrel/Command/Base.src
88
+ - doc/rdoc/classes/Mongrel/Command/Registry.html
89
+ - doc/rdoc/classes/Mongrel/Command/Registry.src
90
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000003.html
91
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000004.html
92
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000005.html
93
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000006.html
94
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000007.html
95
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000008.html
96
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000009.html
97
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000010.html
98
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000011.html
99
+ - doc/rdoc/classes/Mongrel/Command/Base.src/M000012.html
100
+ - doc/rdoc/classes/Mongrel/Command/Registry.src/M000013.html
101
+ - doc/rdoc/classes/Mongrel/Command/Registry.src/M000014.html
102
+ - doc/rdoc/classes/Mongrel/Command/Registry.src/M000015.html
103
+ - doc/rdoc/classes/Mongrel/DirHandler.src/M000023.html
104
+ - doc/rdoc/classes/Mongrel/DirHandler.src/M000024.html
105
+ - doc/rdoc/classes/Mongrel/DirHandler.src/M000025.html
106
+ - doc/rdoc/classes/Mongrel/DirHandler.src/M000026.html
107
+ - doc/rdoc/classes/Mongrel/DirHandler.src/M000027.html
108
+ - doc/rdoc/classes/Mongrel/DirHandler.src/M000028.html
109
+ - doc/rdoc/classes/Mongrel/Error404Handler.src/M000060.html
110
+ - doc/rdoc/classes/Mongrel/Error404Handler.src/M000061.html
111
+ - doc/rdoc/classes/Mongrel/HeaderOut.src/M000035.html
112
+ - doc/rdoc/classes/Mongrel/HeaderOut.src/M000036.html
113
+ - doc/rdoc/classes/Mongrel/HttpHandler.src/M000037.html
114
+ - doc/rdoc/classes/Mongrel/HttpParser.src/M000016.html
115
+ - doc/rdoc/classes/Mongrel/HttpParser.src/M000017.html
116
+ - doc/rdoc/classes/Mongrel/HttpParser.src/M000018.html
117
+ - doc/rdoc/classes/Mongrel/HttpParser.src/M000019.html
118
+ - doc/rdoc/classes/Mongrel/HttpParser.src/M000020.html
119
+ - doc/rdoc/classes/Mongrel/HttpParser.src/M000021.html
120
+ - doc/rdoc/classes/Mongrel/HttpParser.src/M000022.html
121
+ - doc/rdoc/classes/Mongrel/HttpRequest.src/M000062.html
122
+ - doc/rdoc/classes/Mongrel/HttpResponse.src/M000038.html
123
+ - doc/rdoc/classes/Mongrel/HttpResponse.src/M000039.html
124
+ - doc/rdoc/classes/Mongrel/HttpResponse.src/M000040.html
125
+ - doc/rdoc/classes/Mongrel/HttpResponse.src/M000041.html
126
+ - doc/rdoc/classes/Mongrel/HttpResponse.src/M000042.html
127
+ - doc/rdoc/classes/Mongrel/HttpResponse.src/M000043.html
128
+ - doc/rdoc/classes/Mongrel/HttpResponse.src/M000044.html
129
+ - doc/rdoc/classes/Mongrel/HttpServer.src/M000029.html
130
+ - doc/rdoc/classes/Mongrel/HttpServer.src/M000030.html
131
+ - doc/rdoc/classes/Mongrel/HttpServer.src/M000031.html
132
+ - doc/rdoc/classes/Mongrel/HttpServer.src/M000032.html
133
+ - doc/rdoc/classes/Mongrel/HttpServer.src/M000033.html
134
+ - doc/rdoc/classes/Mongrel/HttpServer.src/M000034.html
135
+ - doc/rdoc/classes/Mongrel/URIClassifier.src/M000045.html
136
+ - doc/rdoc/classes/Mongrel/URIClassifier.src/M000046.html
137
+ - doc/rdoc/classes/Mongrel/URIClassifier.src/M000047.html
138
+ - doc/rdoc/classes/Mongrel/URIClassifier.src/M000048.html
139
+ - doc/rdoc/classes/Mongrel/URIClassifier.src/M000049.html
140
+ - doc/rdoc/classes/Mongrel/URIClassifier.src/M000050.html
141
+ - doc/rdoc/classes/RailsHandler.src/M000001.html
142
+ - doc/rdoc/classes/RailsHandler.src/M000002.html
94
143
  - doc/rdoc/files/COPYING.html
95
144
  - doc/rdoc/files/ext
96
145
  - doc/rdoc/files/lib
@@ -98,15 +147,17 @@ files:
98
147
  - doc/rdoc/files/README.html
99
148
  - doc/rdoc/files/ext/http11
100
149
  - doc/rdoc/files/ext/http11/http11_c.html
150
+ - doc/rdoc/files/lib/mongrel
101
151
  - doc/rdoc/files/lib/mongrel_rb.html
102
- - test/plugins
152
+ - doc/rdoc/files/lib/mongrel/cgi_rb.html
153
+ - doc/rdoc/files/lib/mongrel/command_rb.html
154
+ - doc/rdoc/files/lib/mongrel/handlers_rb.html
155
+ - doc/rdoc/files/lib/mongrel/plugins_rb.html
156
+ - doc/rdoc/files/lib/mongrel/rails_rb.html
103
157
  - test/test_http11.rb
104
- - test/test_plugins.rb
105
158
  - test/test_response.rb
106
159
  - test/test_uriclassifier.rb
107
160
  - test/test_ws.rb
108
- - test/plugins/commands
109
- - test/plugins/commands/test1.rb
110
161
  - lib/mongrel
111
162
  - lib/mongrel.rb
112
163
  - lib/mongrel/cgi.rb
@@ -156,3 +207,12 @@ dependencies:
156
207
  - !ruby/object:Gem::Version
157
208
  version: 0.4.2
158
209
  version:
210
+ - !ruby/object:Gem::Dependency
211
+ name: gem_plugin
212
+ version_requirement:
213
+ version_requirements: !ruby/object:Gem::Version::Requirement
214
+ requirements:
215
+ - - ">="
216
+ - !ruby/object:Gem::Version
217
+ version: "0.1"
218
+ version:
@@ -1,19 +0,0 @@
1
-
2
- class First < Mongrel::Plugin "/commands"
3
- def initialize(options = {})
4
- puts "First with options: #{options.inspect}"
5
- end
6
- end
7
-
8
- class Second < Mongrel::Plugin "/commands"
9
- def initialize(options = {})
10
- puts "Second with options: #{options.inspect}"
11
- end
12
- end
13
-
14
- class Last < Mongrel::Plugin "/commands"
15
- def initialize(options = {})
16
- puts "Last with options: #{options.inspect}"
17
- end
18
- end
19
-
@@ -1,45 +0,0 @@
1
- require 'test/unit'
2
- require 'mongrel'
3
-
4
- class ATestPlugin < Mongrel::Plugin "/stuff"
5
- end
6
-
7
-
8
- include Mongrel
9
-
10
- class PluginTest < Test::Unit::TestCase
11
-
12
- def setup
13
- @pmgr = PluginManager.instance
14
- @categories = ["/commands"]
15
- @names = ["/first","/second","/last", "/atestplugin"]
16
- end
17
-
18
- def test_load_plugins
19
- @pmgr.load(File.join(File.dirname(__FILE__),"plugins"))
20
- puts "#{@pmgr.available.inspect}"
21
- @pmgr.available.each {|cat,plugins|
22
- plugins.each do |p|
23
- puts "TEST: #{cat}#{p}"
24
- assert @names.include?(p)
25
- end
26
- }
27
-
28
- @pmgr.available.each do |cat,plugins|
29
- plugins.each do |p|
30
- STDERR.puts "#{cat}#{p}"
31
- plugin = @pmgr.create("#{cat}#{p}", options={"name" => p})
32
- end
33
- end
34
- end
35
-
36
- def test_similar_uris
37
-
38
- @pmgr.register("/test", "/testme", ATestPlugin)
39
- @pmgr.register("/test2", "/testme", ATestPlugin)
40
-
41
- assert_equal @pmgr.create("/test/testme").class, ATestPlugin
42
- assert_equal @pmgr.create("/test2/testme").class, ATestPlugin
43
-
44
- end
45
- end