1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@877 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
evanweaver 2007-11-12 21:13:03 +00:00
parent 2d38b5d25b
commit c97a9e8bb3
4 changed files with 9 additions and 9 deletions

View file

@ -11,6 +11,8 @@ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
require 'mongrel'
require 'mongrel/rails'
Mongrel::Gems.require 'gem_plugin'
# require 'ruby-debug'
# Debugger.start

View file

@ -9,7 +9,6 @@ require 'stringio'
require 'mongrel/gems'
Mongrel::Gems.require 'gem_plugin'
Mongrel::Gems.require 'cgi_multipart_eof_fix'
Mongrel::Gems.require 'fastthread'
require 'thread'

View file

@ -65,7 +65,7 @@ module Mongrel
REQUEST_URI='REQUEST_URI'.freeze
REQUEST_PATH='REQUEST_PATH'.freeze
MONGREL_VERSION="1.1".freeze
MONGREL_VERSION="1.1.1".freeze
MONGREL_TMP_BASE="mongrel".freeze

View file

@ -2,19 +2,18 @@ module Mongrel
module Gems
class << self
alias :original_require :require
def require(library, version = nil)
begin
original_require library
Kernel.require library
rescue LoadError, RuntimeError => e
unless respond_to? 'gem'
begin
# ActiveSupport breaks 'require' by making it always return a true value
require 'rubygems'
gem library, version if version
retry
version ? gem(library, version) : gem(library)
retry
rescue Gem::LoadError, LoadError, RuntimeError
# puts "** #{library.inspect} could not be loaded" unless library == "mongrel_experimental"
end
# Fail without reraising
end
end