
# Gem::Specification for Mongrel-1.1.5
# Originally generated by Echoe

Gem::Specification.new do |s|
  s.name = %q{mongrel}
  s.version = "1.1.5"

  s.specification_version = 2 if s.respond_to? :specification_version=

  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
  s.authors = ["Zed A. Shaw"]
  s.date = %q{2008-05-22}
  s.default_executable = %q{mongrel_rails}
  s.description = %q{A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.}
  s.email = %q{}
  s.executables = ["mongrel_rails"]
  s.extensions = ["ext/http11/extconf.rb"]
  s.extra_rdoc_files = ["CHANGELOG", "COPYING", "lib/mongrel/camping.rb", "lib/mongrel/cgi.rb", "lib/mongrel/command.rb", "lib/mongrel/configurator.rb", "lib/mongrel/const.rb", "lib/mongrel/debug.rb", "lib/mongrel/gems.rb", "lib/mongrel/handlers.rb", "lib/mongrel/header_out.rb", "lib/mongrel/http_request.rb", "lib/mongrel/http_response.rb", "lib/mongrel/init.rb", "lib/mongrel/rails.rb", "lib/mongrel/stats.rb", "lib/mongrel/tcphack.rb", "lib/mongrel/uri_classifier.rb", "lib/mongrel.rb", "LICENSE", "README"]
  s.has_rdoc = true
  s.homepage = %q{http://mongrel.rubyforge.org}
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Mongrel", "--main", "README"]
  s.require_paths = ["lib", "ext"]
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.4")
  s.rubyforge_project = %q{mongrel}
  s.rubygems_version = %q{1.0.1}
  s.summary = %q{A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.}
  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"]

  s.add_dependency(%q<gem_plugin>, [">= 0.2.3"])
  s.add_dependency(%q<daemons>, [">= 1.0.3"])
  s.add_dependency(%q<fastthread>, [">= 1.0.1"])
end


# # Original Rakefile source (requires the Echoe gem):
# 
# 
# require 'rubygems'
# gem 'echoe', '>=2.7.5'
# require 'echoe'
# 
# e = Echoe.new("mongrel") do |p|
#   p.summary = "A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps."
#   p.author ="Zed A. Shaw"
#   p.clean_pattern = ['ext/http11/*.{bundle,so,o,obj,pdb,lib,def,exp}', 'lib/*.{bundle,so,o,obj,pdb,lib,def,exp}', 'ext/http11/Makefile', 'pkg', 'lib/*.bundle', '*.gem', 'site/output', '.config', 'lib/http11.jar', 'ext/http11_java/classes', 'coverage', 'doc']
#   p.url = "http://mongrel.rubyforge.org"
#   p.rdoc_pattern = ['README', 'LICENSE', 'CHANGELOG', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
#   p.docs_host = 'mongrel.cloudbur.st:/home/eweaver/www/mongrel/htdocs/web'
#   p.ignore_pattern = /^(pkg|site|projects|doc|log)|CVS|\.log/
#   p.ruby_version = '>=1.8.4'
#   p.dependencies = ['gem_plugin >=0.2.3']  
#   p.extension_pattern = nil
#   
#     when 'eweaver' 
#     when 'luislavena'
#   end
#   
#   p.need_tar_gz = false
#   p.need_tgz = true
# 
#   if RUBY_PLATFORM !~ /mswin|java/
#     p.extension_pattern = ["ext/**/extconf.rb"]
#   end
# 
#   p.eval = proc do
#     case RUBY_PLATFORM
#     when /mswin/
#       self.files += ['lib/http11.so']
#       self.platform = Gem::Platform::CURRENT
#       add_dependency('cgi_multipart_eof_fix', '>= 2.4')
#     when /java/
#       self.files += ['lib/http11.jar']
#       self.platform = 'jruby' # XXX Is this right?
#     else
#       add_dependency('daemons', '>= 1.0.3')
#       add_dependency('fastthread', '>= 1.0.1')
#       add_dependency('cgi_multipart_eof_fix', '>= 2.4')
#     end
#   end
# 
# end
# 
# #### Ragel builder
# 
# desc "Rebuild the Ragel sources"
# task :ragel do
#   Dir.chdir "ext/http11" do
#     target = "http11_parser.c"
#     File.unlink target if File.exist? target
#     sh "ragel http11_parser.rl | rlgen-cd -G2 -o #{target}"
#     raise "Failed to build C source" unless File.exist? target
#   end
#   Dir.chdir "ext/http11" do
#     target = "../../ext/http11_java/org/jruby/mongrel/Http11Parser.java"
#     File.unlink target if File.exist? target
#     sh "ragel -J http11_parser.java.rl | rlgen-java -o #{target}"
#     raise "Failed to build Java source" unless File.exist? target
#   end
# end
# 
# #### Pre-compiled extensions for alternative platforms
# 
# def move_extensions
#   Dir["ext/**/*.#{Config::CONFIG['DLEXT']}"].each { |file| mv file, "lib/" }
# end
# 
# def java_classpath_arg
#   # A myriad of ways to discover the JRuby classpath
#   classpath = begin
#     require 'java'
#     # Already running in a JRuby JVM
#     Java::java.lang.System.getProperty('java.class.path')
#   rescue LoadError
#     ENV['JRUBY_PARENT_CLASSPATH'] || ENV['JRUBY_HOME'] && FileList["#{ENV['JRUBY_HOME']}/lib/*.jar"].join(File::PATH_SEPARATOR)
#   end
#   classpath ? "-cp #{classpath}" : ""
# end
# 
# case RUBY_PLATFORM
# when /mswin/
#   filename = "lib/http11.so"
#   file filename do
#     Dir.chdir("ext/http11") do
#       ruby "extconf.rb"
#       system(PLATFORM =~ /mswin/ ? 'nmake' : 'make')
#     end
#     move_extensions
#   end
#   task :compile => [filename]
# 
# when /java/
# 
#   # Avoid JRuby in-process launching problem
#   begin
#     require 'jruby'
#     JRuby.runtime.instance_config.run_ruby_in_process = false 
#   rescue LoadError
#   end
# 
#   filename = "lib/http11.jar"
#   file filename do
#     build_dir = "ext/http11_java/classes"
#     mkdir_p build_dir
#     sources = FileList['ext/http11_java/**/*.java'].join(' ')
#     sh "javac -target 1.4 -source 1.4 -d #{build_dir} #{java_classpath_arg} #{sources}"
#     sh "jar cf lib/http11.jar -C #{build_dir} ."
#     move_extensions
#   end
#   task :compile => [filename]
# 
# end
# 
# #### Project-wide install and uninstall tasks
# 
# def sub_project(project, *targets)
#   targets.each do |target|
#     Dir.chdir "projects/#{project}" do
#       unless RUBY_PLATFORM =~ /mswin/
#         sh("rake #{target.to_s}") # --trace 
#       end
#     end
#   end
# end
# 
# desc "Package Mongrel and all subprojects"
# task :package_all => [:package] do
#   sub_project("gem_plugin", :package)
#   sub_project("cgi_multipart_eof_fix", :package)
#   sub_project("fastthread", :package)
#   sub_project("mongrel_status", :package)
#   sub_project("mongrel_upload_progress", :package)
#   sub_project("mongrel_console", :package)
#   sub_project("mongrel_cluster", :package)
#   sub_project("mongrel_experimental", :package)
# 
#   sh("rake java package") unless RUBY_PLATFORM =~ /java/
#   
#   # XXX Broken by RubyGems 0.9.5
#   # sub_project("mongrel_service", :package) if RUBY_PLATFORM =~ /mswin/
#   # sh("rake mswin package") unless RUBY_PLATFORM =~ /mswin/
# end
# 
# task :install_requirements do
#   # These run before Mongrel is installed
#   sub_project("gem_plugin", :install)
#   sub_project("cgi_multipart_eof_fix", :install)
#   sub_project("fastthread", :install)
# end
# 
# desc "for Mongrel and all subprojects"
# task :install => [:install_requirements] do
#   # These run after Mongrel is installed
#   sub_project("mongrel_status", :install)
#   sub_project("mongrel_upload_progress", :install)
#   sub_project("mongrel_console", :install)
#   sub_project("mongrel_cluster", :install)
#   # sub_project("mongrel_experimental", :install)
#   sub_project("mongrel_service", :install) if RUBY_PLATFORM =~ /mswin/
# end
# 
# desc "for Mongrel and all its subprojects"
# task :uninstall => [:clean] do
#   sub_project("mongrel_status", :uninstall)
#   sub_project("cgi_multipart_eof_fix", :uninstall)
#   sub_project("mongrel_upload_progress", :uninstall)
#   sub_project("mongrel_console", :uninstall)
#   sub_project("gem_plugin", :uninstall)
#   sub_project("fastthread", :uninstall)
#   # sub_project("mongrel_experimental", :uninstall)
#   sub_project("mongrel_service", :uninstall) if RUBY_PLATFORM =~ /mswin/
# end
# 
# desc "for Mongrel and all its subprojects"
# task :clean do
#   sub_project("gem_plugin", :clean)
#   sub_project("cgi_multipart_eof_fix", :clean)
#   sub_project("fastthread", :clean)
#   sub_project("mongrel_status", :clean)
#   sub_project("mongrel_upload_progress", :clean)
#   sub_project("mongrel_console", :clean)
#   sub_project("mongrel_cluster", :clean)
#   sub_project("mongrel_experimental", :clean)
#   sub_project("mongrel_service", :clean) if RUBY_PLATFORM =~ /mswin/
# end
# 
# #### Site upload tasks
# 
# namespace :site do
#   desc "Upload the coverage report"
#   task :coverage => [:rcov] do
#     sh "rsync -azv --no-perms --no-times test/coverage/* mongrel.cloudbur.st:/home/eweaver/www/mongrel/htdocs/web/coverage" rescue nil
#   end
# end
