1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

GemPlugin now doesn't use autorequire. Mongrel adapted to cover an error with daemonize, logger, and closed files.

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@88 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
zedshaw 2006-03-09 03:05:11 +00:00
parent 5bf3bca495
commit 97502ebea9
7 changed files with 8 additions and 10 deletions

View file

@ -1,7 +1,6 @@
require 'rubygems'
require 'mongrel/rails'
require 'yaml'
require 'mongrel'
class Start < GemPlugin::Plugin "/commands"
@ -78,7 +77,7 @@ class Start < GemPlugin::Plugin "/commands"
ENV['RAILS_ENV'] = @environment
require 'config/environment'
require 'dispatcher'
require 'cgi'
require 'mongrel/rails'
# configure the rails handler
rails = RailsHandler.new(@docroot, load_mime_map)

View file

@ -5,7 +5,6 @@ require 'stringio'
require 'mongrel/cgi'
require 'mongrel/handlers'
require 'mongrel/command'
require 'mongrel/plugins'
require 'timeout'
# Mongrel module containing all of the classes (include C extensions) for running

View file

@ -1,6 +1,7 @@
require 'rubygems'
require 'singleton'
require 'optparse'
require 'mongrel/plugins'
require 'gem_plugin'
module Mongrel

View file

@ -1,5 +1,5 @@
require 'rubygems'
require_gem 'gem_plugin'
require 'gem_plugin'
# file is just a stub that makes sure the mongrel_plugins gem is loaded and ready

View file

@ -1,7 +1,6 @@
require 'mongrel'
require 'cgi'
# Implements a handler that can run Rails and serve files out of the
# Rails application's public directory. This lets you run your Rails
# application with Mongrel during development and testing, then use it

View file

@ -15,7 +15,7 @@ setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
desc "Does a full compile, test run"
task :default => [:test, :package]
version="0.1"
version="0.2"
summary = "A plugin system based only on rubygems"
test_file = "test/test_plugins.rb"
author="Zed A. Shaw"
@ -23,7 +23,7 @@ name="gem_plugin"
scripts=[]
setup_gem(name, version, author, summary, scripts, test_file) do |spec|
spec.autorequire = "gem_plugin"
spec.description = summary
end
task :gem_test => [:package] do

View file

@ -110,7 +110,7 @@ module GemPlugin
# makes them false so we'll skip this gem if any excludes are found
if (check.select {|name,test| !test}).length == 0
# looks like no needs were set to false, so it's good
require_gem gem.name
require "#{gem.name}/init"
@loaded_gems << gem.name
end