mongrel 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of mongrel might be problematic. Click here for more details.

data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ v1.1.2. Fix worker termination bug; fix JRuby 1.0.3 load order issue; fix require issue on systems without Rubygems.
3
+
2
4
  v1.1.1. Fix mongrel_rails restart bug; fix bug with Rack status codes.
3
5
 
4
6
  v1.1. Pure Ruby URIClassifier. More modular architecture. JRuby support. Move C URIClassifier into mongrel_experimental project.
@@ -384,7 +384,7 @@ void Init_http11()
384
384
  DEF_GLOBAL(server_protocol, "SERVER_PROTOCOL");
385
385
  DEF_GLOBAL(server_protocol_value, "HTTP/1.1");
386
386
  DEF_GLOBAL(http_host, "HTTP_HOST");
387
- DEF_GLOBAL(mongrel_version, "Mongrel 1.1.1"); /* XXX Why is this defined here? */
387
+ DEF_GLOBAL(mongrel_version, "Mongrel 1.1.2"); /* XXX Why is this defined here? */
388
388
  DEF_GLOBAL(server_software, "SERVER_SOFTWARE");
389
389
  DEF_GLOBAL(port_80, "80");
390
390
 
@@ -215,7 +215,7 @@ public class Http11 extends RubyObject {
215
215
 
216
216
  req.setInstanceVariable("@http_body", RubyString.newString(runtime, new ByteList(hp.parser.buffer, at, length)));
217
217
  req.aset(runtime.newString("SERVER_PROTOCOL"),runtime.newString("HTTP/1.1"));
218
- req.aset(runtime.newString("SERVER_SOFTWARE"),runtime.newString("Mongrel 1.0.1"));
218
+ req.aset(runtime.newString("SERVER_SOFTWARE"),runtime.newString("Mongrel 1.1.2"));
219
219
  }
220
220
  };
221
221
 
@@ -1,4 +1,5 @@
1
1
 
2
+ # Standard libraries
2
3
  require 'socket'
3
4
  require 'tempfile'
4
5
  require 'yaml'
@@ -7,13 +8,16 @@ require 'etc'
7
8
  require 'uri'
8
9
  require 'stringio'
9
10
 
10
- require 'mongrel/gems'
11
+ # Compiled Mongrel extension
12
+ require 'http11'
11
13
 
14
+ # Gem conditional loader
15
+ require 'mongrel/gems'
12
16
  Mongrel::Gems.require 'cgi_multipart_eof_fix'
13
17
  Mongrel::Gems.require 'fastthread'
14
18
  require 'thread'
15
19
 
16
- require 'http11'
20
+ # Ruby Mongrel
17
21
  require 'mongrel/cgi'
18
22
  require 'mongrel/handlers'
19
23
  require 'mongrel/command'
@@ -213,7 +217,7 @@ module Mongrel
213
217
  worker[:started_on] = Time.now if not worker[:started_on]
214
218
 
215
219
  if mark - worker[:started_on] > @timeout + @throttle
216
- STDERR.puts "Thread #{w.inspect} is too old, killing."
220
+ STDERR.puts "Thread #{worker.inspect} is too old, killing."
217
221
  worker.raise(TimeoutError.new(error_msg))
218
222
  end
219
223
  end
@@ -65,7 +65,7 @@ module Mongrel
65
65
  REQUEST_URI='REQUEST_URI'.freeze
66
66
  REQUEST_PATH='REQUEST_PATH'.freeze
67
67
 
68
- MONGREL_VERSION="1.1.1".freeze
68
+ MONGREL_VERSION="1.1.2".freeze
69
69
 
70
70
  MONGREL_TMP_BASE="mongrel".freeze
71
71
 
@@ -8,7 +8,7 @@ module Mongrel
8
8
  rescue LoadError, RuntimeError => e
9
9
  begin
10
10
  # ActiveSupport breaks 'require' by making it always return a true value
11
- require 'rubygems'
11
+ Kernel.require 'rubygems'
12
12
  version ? gem(library, version) : gem(library)
13
13
  retry
14
14
  rescue Gem::LoadError, LoadError, RuntimeError
@@ -1,16 +1,16 @@
1
1
 
2
- # Gem::Specification for Mongrel-1.1.1
2
+ # Gem::Specification for Mongrel-1.1.2
3
3
  # Originally generated by Echoe
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = %q{mongrel}
7
- s.version = "1.1.1"
7
+ s.version = "1.1.2"
8
8
 
9
9
  s.specification_version = 2 if s.respond_to? :specification_version=
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Zed A. Shaw"]
13
- s.date = %q{2007-11-12}
13
+ s.date = %q{2007-12-15}
14
14
  s.default_executable = %q{mongrel_rails}
15
15
  s.description = %q{A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.}
16
16
  s.email = %q{}
@@ -21,14 +21,14 @@ Gem::Specification.new do |s|
21
21
  s.require_paths = ["lib", "ext"]
22
22
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.4")
23
23
  s.rubyforge_project = %q{mongrel}
24
- s.rubygems_version = %q{0.9.4.6}
24
+ s.rubygems_version = %q{0.9.5}
25
25
  s.summary = %q{A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.}
26
26
  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"]
27
27
 
28
28
  s.add_dependency(%q<gem_plugin>, [">= 0.2.3"])
29
- s.add_dependency(%q<cgi_multipart_eof_fix>, [">= 2.4"])
30
29
  s.add_dependency(%q<daemons>, [">= 1.0.3"])
31
30
  s.add_dependency(%q<fastthread>, [">= 1.0.1"])
31
+ s.add_dependency(%q<cgi_multipart_eof_fix>, [">= 2.4"])
32
32
  end
33
33
 
34
34
 
@@ -36,7 +36,7 @@ end
36
36
  #
37
37
  #
38
38
  # require 'rubygems'
39
- # gem 'echoe', '>=2.7'
39
+ # gem 'echoe', '>=2.7.5'
40
40
  # require 'echoe'
41
41
  #
42
42
  # e = Echoe.new("mongrel") do |p|
@@ -46,30 +46,32 @@ end
46
46
  # p.rdoc_pattern = ['README', 'LICENSE', 'CHANGELOG', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
47
47
  # p.ignore_pattern = /^(pkg|site|projects|doc|log)|CVS|\.log/
48
48
  # p.ruby_version = '>= 1.8.4'
49
- # p.dependencies = ['gem_plugin >=0.2.3', 'cgi_multipart_eof_fix >=2.4']
50
- # (p.rdoc_template = `allison --path`.chomp) rescue nil
51
- #
49
+ # p.dependencies = ['gem_plugin >=0.2.3']
50
+ # p.extension_pattern = nil
51
+ #
52
52
  # p.need_tar_gz = false
53
53
  # p.need_tgz = true
54
54
  #
55
- # # case RUBY_PLATFORM
56
- # # when /mswin/
57
- # # else
58
- # # end
55
+ # case RUBY_PLATFORM
56
+ # when /mswin/
57
+ # when /java/
58
+ # else
59
+ # p.extension_pattern = ["ext/**/extconf.rb"]
60
+ # end
59
61
  #
60
62
  # p.eval = proc do
61
63
  # case RUBY_PLATFORM
62
64
  # when /mswin/
63
- # extensions.clear
64
65
  # self.files += ['lib/http11.so']
65
66
  # self.platform = Gem::Platform::WIN32
67
+ # add_dependency('cgi_multipart_eof_fix', '>= 2.4')
66
68
  # when /java/
67
- # extensions.clear
68
69
  # self.files += ['lib/http11.jar']
69
70
  # self.platform = 'jruby'
70
71
  # else
71
72
  # add_dependency('daemons', '>= 1.0.3')
72
73
  # add_dependency('fastthread', '>= 1.0.1')
74
+ # add_dependency('cgi_multipart_eof_fix', '>= 2.4')
73
75
  # end
74
76
  # end
75
77
  #
@@ -93,16 +95,7 @@ end
93
95
  # end
94
96
  # end
95
97
  #
96
- # #### XXX Hack around JRuby test/unit interaction problems
97
- #
98
- # desc "Run each test suite in isolation on JRuby"
99
- # task :test_java do
100
- # e.test_pattern.each do |f|
101
- # sh "/opt/local/jruby/bin/jruby -w -Ilib:ext:bin:test -e 'require \"#{f}\"'" rescue nil
102
- # end
103
- # end
104
- #
105
- # #### XXX Hack around RubyGems and Echoe for pre-compiled extensions.
98
+ # #### Pre-compiled extensions for alternative platforms
106
99
  #
107
100
  # def move_extensions
108
101
  # Dir["ext/**/*.#{Config::CONFIG['DLEXT']}"].each { |file| mv file, "lib/" }
@@ -133,6 +126,14 @@ end
133
126
  # task :compile => [filename]
134
127
  #
135
128
  # when /java/
129
+ #
130
+ # # Avoid JRuby in-process launching problem
131
+ # begin
132
+ # require 'jruby'
133
+ # JRuby.runtime.instance_config.run_ruby_in_process = false
134
+ # rescue LoadError
135
+ # end
136
+ #
136
137
  # filename = "lib/http11.jar"
137
138
  # file filename do
138
139
  # build_dir = "ext/http11_java/classes"
@@ -168,8 +169,11 @@ end
168
169
  # sub_project("mongrel_console", :package)
169
170
  # sub_project("mongrel_cluster", :package)
170
171
  # sub_project("mongrel_experimental", :package)
171
- # sub_project("mongrel_service", :package) if RUBY_PLATFORM =~ /mswin/
172
+ #
172
173
  # sh("rake java package") unless RUBY_PLATFORM =~ /java/
174
+ #
175
+ # # XXX Broken by RubyGems 0.9.5
176
+ # # sub_project("mongrel_service", :package) if RUBY_PLATFORM =~ /mswin/
173
177
  # # sh("rake mswin package") unless RUBY_PLATFORM =~ /mswin/
174
178
  # end
175
179
  #
@@ -230,9 +234,6 @@ end
230
234
  # FileList["**/*.gem"].each { |gem| mv gem, "pkg/gems" }
231
235
  # FileList["**/*.tgz"].each {|tgz| mv tgz, "pkg/tars" }
232
236
  #
233
- # # XXX Hack, because only Luis can package for Win32 right now
234
- # sh "cp ~/Downloads/mongrel-#{e.version}-mswin32.gem pkg/gems/"
235
- # sh "cp ~/Downloads/mongrel_service-0.3.3-mswin32.gem pkg/gems/"
236
237
  # sh "rm -rf pkg/mongrel*"
237
238
  # sh "gem generate_index -d pkg"
238
239
  # sh "scp -r CHANGELOG pkg/* rubyforge.org:/var/www/gforge-projects/mongrel/releases/"
@@ -245,6 +246,7 @@ end
245
246
  # task :web do
246
247
  # # Requires the 'webgem' gem
247
248
  # sh "cd site; webgen; webgen; curl 'http://feed43.com/mongrel.xml' > output/rss.xml; rsync -azv --no-perms --no-times output/* rubyforge.org:/var/www/gforge-projects/mongrel/"
249
+ # puts "\nMake sure to re-run the site update 6 hours later if you updated the news. This delay is required for Feed43 to pick up the site changes."
248
250
  # end
249
251
  #
250
252
  # desc "Upload the rdocs"
metadata CHANGED
@@ -1,36 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4.6
3
- specification_version: 2
4
2
  name: mongrel
5
3
  version: !ruby/object:Gem::Version
6
- version: 1.1.1
7
- date: 2007-11-12 00:00:00 -05:00
8
- summary: A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.
9
- require_paths:
10
- - lib
11
- - ext
12
- email: ""
13
- homepage: ""
14
- rubyforge_project: mongrel
15
- description: A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.
4
+ version: 1.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Zed A. Shaw
16
8
  autorequire:
17
- default_executable:
18
9
  bindir: bin
19
- has_rdoc: true
20
- required_ruby_version: !ruby/object:Gem::Requirement
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: 1.8.4
25
- version:
26
- required_rubygems_version: !ruby/object:Gem::Requirement
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- version: "0"
31
- version:
32
- platform: ruby
33
- signing_key:
34
10
  cert_chain:
35
11
  - |
36
12
  -----BEGIN CERTIFICATE-----
@@ -76,9 +52,53 @@ cert_chain:
76
52
  ALN3mi/9z0Mf1YroliUgF0v5Yw==
77
53
  -----END CERTIFICATE-----
78
54
 
79
- post_install_message:
80
- authors:
81
- - Zed A. Shaw
55
+ date: 2007-12-15 00:00:00 -05:00
56
+ default_executable:
57
+ dependencies:
58
+ - !ruby/object:Gem::Dependency
59
+ name: gem_plugin
60
+ version_requirement:
61
+ version_requirements: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 0.2.3
66
+ version:
67
+ - !ruby/object:Gem::Dependency
68
+ name: daemons
69
+ version_requirement:
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 1.0.3
75
+ version:
76
+ - !ruby/object:Gem::Dependency
77
+ name: fastthread
78
+ version_requirement:
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: 1.0.1
84
+ version:
85
+ - !ruby/object:Gem::Dependency
86
+ name: cgi_multipart_eof_fix
87
+ version_requirement:
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: "2.4"
93
+ version:
94
+ description: A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.
95
+ email: ""
96
+ executables:
97
+ - mongrel_rails
98
+ extensions:
99
+ - ext/http11/extconf.rb
100
+ extra_rdoc_files: []
101
+
82
102
  files:
83
103
  - bin/mongrel_rails
84
104
  - CHANGELOG
@@ -149,6 +169,33 @@ files:
149
169
  - test/testhelp.rb
150
170
  - TODO
151
171
  - tools/trickletest.rb
172
+ has_rdoc: true
173
+ homepage: ""
174
+ post_install_message:
175
+ rdoc_options: []
176
+
177
+ require_paths:
178
+ - lib
179
+ - ext
180
+ required_ruby_version: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: 1.8.4
185
+ version:
186
+ required_rubygems_version: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: "0"
191
+ version:
192
+ requirements: []
193
+
194
+ rubyforge_project: mongrel
195
+ rubygems_version: 0.9.5
196
+ signing_key:
197
+ specification_version: 2
198
+ summary: A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.
152
199
  test_files:
153
200
  - test/test_cgi_wrapper.rb
154
201
  - test/test_command.rb
@@ -163,50 +210,3 @@ test_files:
163
210
  - test/test_stats.rb
164
211
  - test/test_uriclassifier.rb
165
212
  - test/test_ws.rb
166
- rdoc_options: []
167
-
168
- extra_rdoc_files: []
169
-
170
- executables:
171
- - mongrel_rails
172
- extensions:
173
- - ext/http11/extconf.rb
174
- requirements: []
175
-
176
- dependencies:
177
- - !ruby/object:Gem::Dependency
178
- name: gem_plugin
179
- version_requirement:
180
- version_requirements: !ruby/object:Gem::Requirement
181
- requirements:
182
- - - ">="
183
- - !ruby/object:Gem::Version
184
- version: 0.2.3
185
- version:
186
- - !ruby/object:Gem::Dependency
187
- name: cgi_multipart_eof_fix
188
- version_requirement:
189
- version_requirements: !ruby/object:Gem::Requirement
190
- requirements:
191
- - - ">="
192
- - !ruby/object:Gem::Version
193
- version: "2.4"
194
- version:
195
- - !ruby/object:Gem::Dependency
196
- name: daemons
197
- version_requirement:
198
- version_requirements: !ruby/object:Gem::Requirement
199
- requirements:
200
- - - ">="
201
- - !ruby/object:Gem::Version
202
- version: 1.0.3
203
- version:
204
- - !ruby/object:Gem::Dependency
205
- name: fastthread
206
- version_requirement:
207
- version_requirements: !ruby/object:Gem::Requirement
208
- requirements:
209
- - - ">="
210
- - !ruby/object:Gem::Version
211
- version: 1.0.1
212
- version:
metadata.gz.sig CHANGED
Binary file