mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
use rubygems a little less aggressively
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@808 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
2a7f00e80a
commit
00dc68a5a4
4 changed files with 21 additions and 9 deletions
|
@ -10,14 +10,17 @@ require 'stringio'
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'fastthread'
|
require 'fastthread'
|
||||||
rescue RuntimeError => e
|
rescue LoadError, RuntimeError
|
||||||
warn "fastthread not loaded: #{ e.message }"
|
require 'rubygems' and retry
|
||||||
rescue LoadError
|
|
||||||
ensure
|
ensure
|
||||||
require 'thread'
|
require 'thread'
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'cgi_multipart_eof_fix'
|
begin
|
||||||
|
require 'cgi_multipart_eof_fix'
|
||||||
|
rescue LoadError
|
||||||
|
require 'rubygems' and retry
|
||||||
|
end
|
||||||
|
|
||||||
require 'mongrel/cgi'
|
require 'mongrel/cgi'
|
||||||
require 'mongrel/handlers'
|
require 'mongrel/handlers'
|
||||||
|
|
|
@ -4,10 +4,14 @@
|
||||||
# Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html
|
# Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html
|
||||||
# for more information.
|
# for more information.
|
||||||
|
|
||||||
require 'rubygems'
|
|
||||||
require 'singleton'
|
require 'singleton'
|
||||||
require 'optparse'
|
require 'optparse'
|
||||||
require 'gem_plugin'
|
|
||||||
|
begin
|
||||||
|
require 'gem_plugin'
|
||||||
|
rescue LoadError
|
||||||
|
require 'rubygems' and retry
|
||||||
|
end
|
||||||
|
|
||||||
module Mongrel
|
module Mongrel
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,8 @@ module Mongrel
|
||||||
|
|
||||||
# You pass in initial defaults and then a block to continue configuring.
|
# You pass in initial defaults and then a block to continue configuring.
|
||||||
def initialize(defaults={}, &block)
|
def initialize(defaults={}, &block)
|
||||||
|
p defaults
|
||||||
|
p instance_variables
|
||||||
@listener = nil
|
@listener = nil
|
||||||
@listener_name = nil
|
@listener_name = nil
|
||||||
@listeners = {}
|
@listeners = {}
|
||||||
|
|
|
@ -4,10 +4,13 @@
|
||||||
# Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html
|
# Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html
|
||||||
# for more information.
|
# for more information.
|
||||||
|
|
||||||
require 'rubygems'
|
begin
|
||||||
require 'gem_plugin'
|
require 'gem_plugin'
|
||||||
|
rescue LoadError
|
||||||
|
require 'rubygems' and retry
|
||||||
|
end
|
||||||
|
|
||||||
# file is just a stub that makes sure the mongrel_plugins gem is loaded and ready
|
# File is just a stub that makes sure the mongrel_plugins gem is loaded and ready
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue