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
|
||||
require 'fastthread'
|
||||
rescue RuntimeError => e
|
||||
warn "fastthread not loaded: #{ e.message }"
|
||||
rescue LoadError
|
||||
rescue LoadError, RuntimeError
|
||||
require 'rubygems' and retry
|
||||
ensure
|
||||
require 'thread'
|
||||
end
|
||||
|
||||
require 'cgi_multipart_eof_fix'
|
||||
begin
|
||||
require 'cgi_multipart_eof_fix'
|
||||
rescue LoadError
|
||||
require 'rubygems' and retry
|
||||
end
|
||||
|
||||
require 'mongrel/cgi'
|
||||
require 'mongrel/handlers'
|
||||
|
|
|
@ -4,10 +4,14 @@
|
|||
# Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html
|
||||
# for more information.
|
||||
|
||||
require 'rubygems'
|
||||
require 'singleton'
|
||||
require 'optparse'
|
||||
require 'gem_plugin'
|
||||
|
||||
begin
|
||||
require 'gem_plugin'
|
||||
rescue LoadError
|
||||
require 'rubygems' and retry
|
||||
end
|
||||
|
||||
module Mongrel
|
||||
|
||||
|
|
|
@ -39,6 +39,8 @@ module Mongrel
|
|||
|
||||
# You pass in initial defaults and then a block to continue configuring.
|
||||
def initialize(defaults={}, &block)
|
||||
p defaults
|
||||
p instance_variables
|
||||
@listener = nil
|
||||
@listener_name = nil
|
||||
@listeners = {}
|
||||
|
|
|
@ -4,10 +4,13 @@
|
|||
# Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html
|
||||
# for more information.
|
||||
|
||||
require 'rubygems'
|
||||
require 'gem_plugin'
|
||||
begin
|
||||
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