mongrel 1.1.5-x86-mingw32 → 1.2.0.pre2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/History.txt +68 -0
  2. data/{Manifest → Manifest.txt} +15 -15
  3. data/{README → README.txt} +6 -0
  4. data/Rakefile +8 -0
  5. data/bin/mongrel_rails +5 -4
  6. data/examples/camping/blog.rb +0 -0
  7. data/ext/{http11_java → http11}/Http11Service.java +0 -0
  8. data/ext/http11/ext_help.h +1 -0
  9. data/ext/http11/http11.c +152 -20
  10. data/ext/http11/http11_parser.c +262 -240
  11. data/ext/http11/http11_parser.java.rl +3 -14
  12. data/ext/http11/http11_parser.rl +19 -18
  13. data/ext/http11/http11_parser_common.rl +1 -1
  14. data/ext/{http11_java → http11}/org/jruby/mongrel/Http11.java +37 -62
  15. data/ext/http11/org/jruby/mongrel/Http11Parser.java +486 -0
  16. data/lib/1.8/http11.so +0 -0
  17. data/lib/1.9/http11.so +0 -0
  18. data/lib/mongrel.rb +16 -5
  19. data/lib/mongrel/cgi.rb +2 -2
  20. data/lib/mongrel/command.rb +1 -3
  21. data/lib/mongrel/configurator.rb +5 -5
  22. data/lib/mongrel/const.rb +1 -1
  23. data/lib/mongrel/handlers.rb +5 -5
  24. data/lib/mongrel/http_request.rb +1 -1
  25. data/lib/mongrel/http_response.rb +4 -1
  26. data/lib/mongrel/rails.rb +1 -1
  27. data/tasks/gem.rake +28 -0
  28. data/tasks/native.rake +24 -0
  29. data/tasks/ragel.rake +20 -0
  30. data/test/test_conditional.rb +2 -2
  31. data/test/test_configurator.rb +4 -5
  32. data/test/test_handlers.rb +33 -24
  33. data/test/test_redirect_handler.rb +2 -3
  34. data/test/test_request_progress.rb +4 -5
  35. data/test/test_ws.rb +2 -0
  36. data/test/testhelp.rb +1 -9
  37. metadata +86 -86
  38. data.tar.gz.sig +0 -4
  39. data/CHANGELOG +0 -18
  40. data/examples/mongrel_simple_ctrl.rb +0 -92
  41. data/examples/mongrel_simple_service.rb +0 -116
  42. data/ext/http11_java/org/jruby/mongrel/Http11Parser.java +0 -572
  43. data/lib/http11.so +0 -0
  44. data/mongrel-public_cert.pem +0 -20
  45. data/mongrel.gemspec +0 -242
  46. metadata.gz.sig +0 -1
Binary file
@@ -1,20 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDUDCCAjigAwIBAgIBADANBgkqhkiG9w0BAQUFADBOMRwwGgYDVQQDDBNtb25n
3
- cmVsLWRldmVsb3BtZW50MRkwFwYKCZImiZPyLGQBGRYJcnVieWZvcmdlMRMwEQYK
4
- CZImiZPyLGQBGRYDb3JnMB4XDTA3MDkxNjEwMzI0OVoXDTA4MDkxNTEwMzI0OVow
5
- TjEcMBoGA1UEAwwTbW9uZ3JlbC1kZXZlbG9wbWVudDEZMBcGCgmSJomT8ixkARkW
6
- CXJ1Ynlmb3JnZTETMBEGCgmSJomT8ixkARkWA29yZzCCASIwDQYJKoZIhvcNAQEB
7
- BQADggEPADCCAQoCggEBAMb9v3B01eOHk3FyypbQgKXzJplUE5P6dXoG+xpPm0Lv
8
- P7BQmeMncOwqQ7zXpVQU+lTpXtQFTsOE3vL7KnhQFJKGvUAkbh24VFyopu1I0yqF
9
- mGu4nRqNXGXVj8TvLSj4S1WpSRLAa0acLPNyKhGmoV9+crqQypSjM6XKjBeppifo
10
- 4eBmWGjiJEYMIJBvJZPJ4rAVDDA8C6CM1m3gMBGNh8ELDhU8HI9AP3dMIkTI2Wx9
11
- 9xkJwHdroAaS0IFFtYChrwee4FbCF1FHDgoTosMwa47DrLHg4hZ6ojaKwK5QVWEV
12
- XGb6ju5UqpktnSWF2W+Lvl/K0tI42OH2CAhebT1gEVUCAwEAAaM5MDcwCQYDVR0T
13
- BAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFGHChyMSZ16u9WOzKhgJSQ9lqDc5
14
- MA0GCSqGSIb3DQEBBQUAA4IBAQA/lfeN2WdB1xN+82tT7vNS4HOjRQw6MUh5yktu
15
- GQjaGqm0UB+aX0Z9y0B0qpfv9rj7nmIvEGiwBmDepNWYCGuW15JyqpN7QVVnG2xS
16
- Mrame7VqgjM7A+VGDD5In5LtWbM/CHAATvvFlQ5Ph13YE1EdnVbZ65c+KQv+5sFY
17
- Q+zEop74d878uaC/SAHHXS46TiXneocaLSYw1CEZs/MAIy+9c4Q5ESbGpgnfg1Ad
18
- 6lwl7k3hsNHO/+tZzx4HJtOXDI1yAl3+q6T9J0yI3z97EinwvAKhS1eyOI2Y5eeT
19
- tbQaNYkU127B3l/VNpd8fQm3Jkl/PqCCmDBQjUszFrJEODug
20
- -----END CERTIFICATE-----
@@ -1,242 +0,0 @@
1
-
2
- # Gem::Specification for Mongrel-1.1.5
3
- # Originally generated by Echoe
4
-
5
- Gem::Specification.new do |s|
6
- s.name = %q{mongrel}
7
- s.version = "1.1.5"
8
- s.platform = %q{x86-mingw32}
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Zed A. Shaw"]
12
- s.date = %q{2008-08-16}
13
- s.default_executable = %q{mongrel_rails}
14
- s.description = %q{A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.}
15
- s.email = %q{}
16
- s.executables = ["mongrel_rails"]
17
- s.has_rdoc = true
18
- s.homepage = %q{http://mongrel.rubyforge.org}
19
- s.require_paths = ["lib", "ext"]
20
- s.required_ruby_version = Gem::Requirement.new(">= 1.8.4")
21
- s.rubyforge_project = %q{mongrel}
22
- s.rubygems_version = %q{1.2.0}
23
- s.summary = %q{A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.}
24
- s.test_files = ["test/test_cgi_wrapper.rb", "test/test_command.rb", "test/test_conditional.rb", "test/test_configurator.rb", "test/test_debug.rb", "test/test_handlers.rb", "test/test_http11.rb", "test/test_redirect_handler.rb", "test/test_request_progress.rb", "test/test_response.rb", "test/test_stats.rb", "test/test_uriclassifier.rb", "test/test_ws.rb"]
25
-
26
- if s.respond_to? :specification_version then
27
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
28
- s.specification_version = 2
29
-
30
- if current_version >= 3 then
31
- s.add_runtime_dependency(%q<gem_plugin>, [">= 0.2.3"])
32
- s.add_runtime_dependency(%q<cgi_multipart_eof_fix>, [">= 2.4"])
33
- else
34
- s.add_dependency(%q<gem_plugin>, [">= 0.2.3"])
35
- s.add_dependency(%q<cgi_multipart_eof_fix>, [">= 2.4"])
36
- end
37
- else
38
- s.add_dependency(%q<gem_plugin>, [">= 0.2.3"])
39
- s.add_dependency(%q<cgi_multipart_eof_fix>, [">= 2.4"])
40
- end
41
- end
42
-
43
-
44
- # # Original Rakefile source (requires the Echoe gem):
45
- #
46
- #
47
- # require 'rubygems'
48
- # gem 'echoe', '>=2.7.5'
49
- # require 'echoe'
50
- #
51
- # e = Echoe.new("mongrel") do |p|
52
- # p.summary = "A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps."
53
- # p.author ="Zed A. Shaw"
54
- # p.clean_pattern = ['ext/http11/*.{bundle,so,o,obj,pdb,lib,def,exp}', 'lib/*.{bundle,so,o,obj,pdb,lib,def,exp}', 'ext/http11/Makefile', 'pkg', 'lib/*.bundle', '*.gem', 'site/output', '.config', 'lib/http11.jar', 'ext/http11_java/classes', 'coverage', 'doc']
55
- # p.url = "http://mongrel.rubyforge.org"
56
- # p.rdoc_pattern = ['README', 'LICENSE', 'CHANGELOG', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
57
- # p.docs_host = 'mongrel.cloudbur.st:/home/eweaver/www/mongrel/htdocs/web'
58
- # p.ignore_pattern = /^(pkg|site|projects|doc|log)|CVS|\.log/
59
- # p.ruby_version = '>=1.8.4'
60
- # p.dependencies = ['gem_plugin >=0.2.3']
61
- # p.extension_pattern = nil
62
- #
63
- # when 'eweaver'
64
- # when 'Luis', 'luislavena'
65
- # end
66
- #
67
- # p.need_tar_gz = false
68
- # p.need_tgz = true
69
- #
70
- # if RUBY_PLATFORM !~ /mswin|mingw|java/
71
- # p.extension_pattern = ["ext/**/extconf.rb"]
72
- # end
73
- #
74
- # p.eval = proc do
75
- # case RUBY_PLATFORM
76
- # when /mswin|mingw/
77
- # self.files += ['lib/http11.so']
78
- # self.platform = Gem::Platform::CURRENT
79
- # add_dependency('cgi_multipart_eof_fix', '>= 2.4')
80
- # when /java/
81
- # self.files += ['lib/http11.jar']
82
- # self.platform = 'jruby' # XXX Is this right?
83
- # else
84
- # add_dependency('daemons', '>= 1.0.3')
85
- # add_dependency('fastthread', '>= 1.0.1')
86
- # add_dependency('cgi_multipart_eof_fix', '>= 2.4')
87
- # end
88
- # end
89
- #
90
- # end
91
- #
92
- # #### Ragel builder
93
- #
94
- # desc "Rebuild the Ragel sources"
95
- # task :ragel do
96
- # Dir.chdir "ext/http11" do
97
- # target = "http11_parser.c"
98
- # File.unlink target if File.exist? target
99
- # sh "ragel http11_parser.rl | rlgen-cd -G2 -o #{target}"
100
- # raise "Failed to build C source" unless File.exist? target
101
- # end
102
- # Dir.chdir "ext/http11" do
103
- # target = "../../ext/http11_java/org/jruby/mongrel/Http11Parser.java"
104
- # File.unlink target if File.exist? target
105
- # sh "ragel -J http11_parser.java.rl | rlgen-java -o #{target}"
106
- # raise "Failed to build Java source" unless File.exist? target
107
- # end
108
- # end
109
- #
110
- # #### Pre-compiled extensions for alternative platforms
111
- #
112
- # def move_extensions
113
- # Dir["ext/**/*.#{Config::CONFIG['DLEXT']}"].each { |file| mv file, "lib/" }
114
- # end
115
- #
116
- # def java_classpath_arg
117
- # # A myriad of ways to discover the JRuby classpath
118
- # classpath = begin
119
- # require 'java'
120
- # # Already running in a JRuby JVM
121
- # Java::java.lang.System.getProperty('java.class.path')
122
- # rescue LoadError
123
- # ENV['JRUBY_PARENT_CLASSPATH'] || ENV['JRUBY_HOME'] && FileList["#{ENV['JRUBY_HOME']}/lib/*.jar"].join(File::PATH_SEPARATOR)
124
- # end
125
- # classpath ? "-cp #{classpath}" : ""
126
- # end
127
- #
128
- # case RUBY_PLATFORM
129
- # when /mswin|mingw/
130
- # filename = "lib/http11.so"
131
- # file filename do
132
- # Dir.chdir("ext/http11") do
133
- # ruby "extconf.rb"
134
- # system(PLATFORM =~ /mswin/ ? 'nmake' : 'make')
135
- # end
136
- # move_extensions
137
- # end
138
- # task :compile => [filename]
139
- #
140
- # when /java/
141
- #
142
- # # Avoid JRuby in-process launching problem
143
- # begin
144
- # require 'jruby'
145
- # JRuby.runtime.instance_config.run_ruby_in_process = false
146
- # rescue LoadError
147
- # end
148
- #
149
- # filename = "lib/http11.jar"
150
- # file filename do
151
- # build_dir = "ext/http11_java/classes"
152
- # mkdir_p build_dir
153
- # sources = FileList['ext/http11_java/**/*.java'].join(' ')
154
- # sh "javac -target 1.4 -source 1.4 -d #{build_dir} #{java_classpath_arg} #{sources}"
155
- # sh "jar cf lib/http11.jar -C #{build_dir} ."
156
- # move_extensions
157
- # end
158
- # task :compile => [filename]
159
- #
160
- # end
161
- #
162
- # #### Project-wide install and uninstall tasks
163
- #
164
- # def sub_project(project, *targets)
165
- # targets.each do |target|
166
- # Dir.chdir "projects/#{project}" do
167
- # unless RUBY_PLATFORM =~ /mswin/
168
- # sh("rake #{target.to_s}") # --trace
169
- # end
170
- # end
171
- # end
172
- # end
173
- #
174
- # desc "Package Mongrel and all subprojects"
175
- # task :package_all => [:package] do
176
- # sub_project("gem_plugin", :package)
177
- # sub_project("cgi_multipart_eof_fix", :package)
178
- # sub_project("fastthread", :package)
179
- # sub_project("mongrel_status", :package)
180
- # sub_project("mongrel_upload_progress", :package)
181
- # sub_project("mongrel_console", :package)
182
- # sub_project("mongrel_cluster", :package)
183
- # sub_project("mongrel_experimental", :package)
184
- #
185
- # sh("rake java package") unless RUBY_PLATFORM =~ /java/
186
- #
187
- # # XXX Broken by RubyGems 0.9.5
188
- # # sub_project("mongrel_service", :package) if RUBY_PLATFORM =~ /mswin/
189
- # # sh("rake mswin package") unless RUBY_PLATFORM =~ /mswin/
190
- # end
191
- #
192
- # task :install_requirements do
193
- # # These run before Mongrel is installed
194
- # sub_project("gem_plugin", :install)
195
- # sub_project("cgi_multipart_eof_fix", :install)
196
- # sub_project("fastthread", :install)
197
- # end
198
- #
199
- # desc "for Mongrel and all subprojects"
200
- # task :install => [:install_requirements] do
201
- # # These run after Mongrel is installed
202
- # sub_project("mongrel_status", :install)
203
- # sub_project("mongrel_upload_progress", :install)
204
- # sub_project("mongrel_console", :install)
205
- # sub_project("mongrel_cluster", :install)
206
- # # sub_project("mongrel_experimental", :install)
207
- # sub_project("mongrel_service", :install) if RUBY_PLATFORM =~ /mswin|mingw/
208
- # end
209
- #
210
- # desc "for Mongrel and all its subprojects"
211
- # task :uninstall => [:clean] do
212
- # sub_project("mongrel_status", :uninstall)
213
- # sub_project("cgi_multipart_eof_fix", :uninstall)
214
- # sub_project("mongrel_upload_progress", :uninstall)
215
- # sub_project("mongrel_console", :uninstall)
216
- # sub_project("gem_plugin", :uninstall)
217
- # sub_project("fastthread", :uninstall)
218
- # # sub_project("mongrel_experimental", :uninstall)
219
- # sub_project("mongrel_service", :uninstall) if RUBY_PLATFORM =~ /mswin|mingw/
220
- # end
221
- #
222
- # desc "for Mongrel and all its subprojects"
223
- # task :clean do
224
- # sub_project("gem_plugin", :clean)
225
- # sub_project("cgi_multipart_eof_fix", :clean)
226
- # sub_project("fastthread", :clean)
227
- # sub_project("mongrel_status", :clean)
228
- # sub_project("mongrel_upload_progress", :clean)
229
- # sub_project("mongrel_console", :clean)
230
- # sub_project("mongrel_cluster", :clean)
231
- # sub_project("mongrel_experimental", :clean)
232
- # sub_project("mongrel_service", :clean) if RUBY_PLATFORM =~ /mswin|mingw/
233
- # end
234
- #
235
- # #### Site upload tasks
236
- #
237
- # namespace :site do
238
- # desc "Upload the coverage report"
239
- # task :coverage => [:rcov] do
240
- # sh "rsync -azv --no-perms --no-times test/coverage/* mongrel.cloudbur.st:/home/eweaver/www/mongrel/htdocs/web/coverage" rescue nil
241
- # end
242
- # end
metadata.gz.sig DELETED
@@ -1 +0,0 @@
1
- ���=�� uG�a���2�p�&m�_E��܎X|�o�H;�σh�a� *4�+������ѰxL�F�B�BA��j�B�آ�E��(�I5����l�W��=��� ��M���t_��&OJ}�%�i, p