Permalink
Browse files

signed mongrel gem

git-svn-id: svn://rubyforge.org/var/svn/mongrel/trunk@607 19e92222-5c0b-0410-8929-a290d50e31e9
  • Loading branch information...
1 parent 93035a2 commit 0d0240d07d12e4b1aeb3e4762ff050b448642b18 evanweaver committed Sep 23, 2007
Showing with 250 additions and 186 deletions.
  1. +2 −0 CHANGELOG
  2. +160 −0 Manifest
  3. +68 −69 Rakefile
  4. +20 −0 mongrel-public_cert.pem
  5. 0 {doc → }/site/README
  6. 0 {doc → }/site/atom.rb
  7. 0 {doc → }/site/config.yml
  8. 0 {doc → }/site/src/adoption.page
  9. 0 {doc → }/site/src/attributions.page
  10. 0 {doc → }/site/src/books.page
  11. 0 {doc → }/site/src/certified.page
  12. 0 {doc → }/site/src/default.css
  13. 0 {doc → }/site/src/default.template
  14. BIN {doc → }/site/src/docs/SimpleLighttpdMongrelSetup.jpg
  15. 0 {doc → }/site/src/docs/apache.page
  16. 0 {doc → }/site/src/docs/choosing_deployment.page
  17. 0 {doc → }/site/src/docs/contrib.page
  18. 0 {doc → }/site/src/docs/debian-sarge.page
  19. 0 {doc → }/site/src/docs/distributed_worker.page
  20. 0 {doc → }/site/src/docs/frameworks.page
  21. 0 {doc → }/site/src/docs/gem_plugin.page
  22. 0 {doc → }/site/src/docs/how_many_mongrels.page
  23. 0 {doc → }/site/src/docs/howto.page
  24. 0 {doc → }/site/src/docs/index.page
  25. 0 {doc → }/site/src/docs/lighttpd.page
  26. 0 {doc → }/site/src/docs/litespeed.page
  27. 0 {doc → }/site/src/docs/mongrel_cluster.page
  28. 0 {doc → }/site/src/docs/osx.page
  29. 0 {doc → }/site/src/docs/pen_balance.page
  30. 0 {doc → }/site/src/docs/pound.page
  31. 0 {doc → }/site/src/docs/security.page
  32. 0 {doc → }/site/src/docs/started.page
  33. 0 {doc → }/site/src/docs/upload_progress.page
  34. 0 {doc → }/site/src/docs/upload_progress_form.rhtml
  35. 0 {doc → }/site/src/docs/upload_progress_javascript.js
  36. 0 {doc → }/site/src/docs/upload_progress_rails.rb
  37. 0 {doc → }/site/src/docs/win32.page
  38. 0 {doc → }/site/src/dogs.page
  39. 0 {doc → }/site/src/faq.page
  40. 0 {doc → }/site/src/fasq.page
  41. BIN {doc → }/site/src/images/3930442_6cbcae1335.jpg
  42. BIN {doc → }/site/src/images/3colls_p1.jpg
  43. BIN {doc → }/site/src/images/3colls_p2.jpg
  44. BIN {doc → }/site/src/images/3colls_p3.jpg
  45. BIN {doc → }/site/src/images/6267035_eeec5b0f16.jpg
  46. BIN {doc → }/site/src/images/63325054_12298eb2a3.jpg
  47. BIN {doc → }/site/src/images/79968762_e063fc1317.jpg
  48. BIN {doc → }/site/src/images/85895062_beb6249744.jpg
  49. BIN {doc → }/site/src/images/86461088_9a747a6a5e.jpg
  50. BIN {doc → }/site/src/images/87022458_3981942f0c.jpg
  51. BIN {doc → }/site/src/images/90208926_7d64788f30.jpg
  52. BIN {doc → }/site/src/images/92211824_d01a4ce59c.jpg
  53. BIN {doc → }/site/src/images/98452447_1be256a96c.jpg
  54. BIN {doc → }/site/src/images/bug_votes.png
  55. BIN {doc → }/site/src/images/config_tool_snap.png
  56. 0 {doc → }/site/src/images/index.page
  57. BIN {doc → }/site/src/images/iron_mongrel.jpg
  58. BIN {doc → }/site/src/images/li1a-c1.gif
  59. BIN {doc → }/site/src/images/li1a.gif
  60. BIN {doc → }/site/src/images/li1b-c1.gif
  61. BIN {doc → }/site/src/images/li1b.gif
  62. BIN {doc → }/site/src/images/li2-c1.gif
  63. BIN {doc → }/site/src/images/li2.gif
  64. BIN {doc → }/site/src/images/li3-c1.gif
  65. BIN {doc → }/site/src/images/li3.gif
  66. BIN {doc → }/site/src/images/li4.gif
  67. BIN {doc → }/site/src/images/mongrel_not_scgi.jpg
  68. BIN {doc → }/site/src/images/side_p1.gif
  69. BIN {doc → }/site/src/images/side_p2.gif
  70. BIN {doc → }/site/src/images/side_p3.gif
  71. BIN {doc → }/site/src/images/tl_contact-c1-on.gif
  72. BIN {doc → }/site/src/images/tl_contact-c1.gif
  73. BIN {doc → }/site/src/images/tl_contact-on.gif
  74. BIN {doc → }/site/src/images/tl_contact.gif
  75. BIN {doc → }/site/src/images/tl_home-c1-on.gif
  76. BIN {doc → }/site/src/images/tl_home-c1.gif
  77. BIN {doc → }/site/src/images/tl_home-on.gif
  78. BIN {doc → }/site/src/images/tl_home.gif
  79. BIN {doc → }/site/src/images/tl_sitemap-c1-on.gif
  80. BIN {doc → }/site/src/images/tl_sitemap-c1.gif
  81. BIN {doc → }/site/src/images/tl_sitemap-on.gif
  82. BIN {doc → }/site/src/images/tl_sitemap.gif
  83. BIN {doc → }/site/src/images/tn_bg1.gif
  84. BIN {doc → }/site/src/images/tn_bg2.gif
  85. BIN {doc → }/site/src/images/visual.jpg
  86. BIN {doc → }/site/src/images/visual_dog.jpg
  87. 0 {doc → }/site/src/index.page
  88. 0 {doc → }/site/src/license.page
  89. 0 {doc → }/site/src/news.include
  90. 0 {doc → }/site/src/news.page
  91. 0 {doc → }/site/src/not_mongrel.page
  92. 0 {doc → }/site/src/plugins.page
  93. 0 {doc → }/site/src/security.page
  94. 0 {doc → }/site/src/sitemap.page
  95. +0 −117 tools/rakehelp.rb
View
@@ -0,0 +1,2 @@
+
+v1.0.2. Signed gem; various bugfixes and patches.
View
160 Manifest
@@ -0,0 +1,160 @@
+tools/trickletest.rb
+test_stdout.log
+test_stderr.log
+test/testhelp.rb
+test/test_ws.rb
+test/test_uriclassifier.rb
+test/test_stats.rb
+test/test_response.rb
+test/test_request_progress.rb
+test/test_redirect_handler.rb
+test/test_http11.rb
+test/test_handlers.rb
+test/test_debug.rb
+test/test_configurator.rb
+test/test_conditional.rb
+test/test_command.rb
+test/test_cgi_wrapper.rb
+test/mongrel.conf
+test/mime.yaml
+site/src/sitemap.page
+site/src/security.page
+site/src/plugins.page
+site/src/not_mongrel.page
+site/src/news.page
+site/src/news.include
+site/src/license.page
+site/src/index.page
+site/src/images/visual_dog.jpg
+site/src/images/visual.jpg
+site/src/images/tn_bg2.gif
+site/src/images/tn_bg1.gif
+site/src/images/tl_sitemap.gif
+site/src/images/tl_sitemap-on.gif
+site/src/images/tl_sitemap-c1.gif
+site/src/images/tl_sitemap-c1-on.gif
+site/src/images/tl_home.gif
+site/src/images/tl_home-on.gif
+site/src/images/tl_home-c1.gif
+site/src/images/tl_home-c1-on.gif
+site/src/images/tl_contact.gif
+site/src/images/tl_contact-on.gif
+site/src/images/tl_contact-c1.gif
+site/src/images/tl_contact-c1-on.gif
+site/src/images/side_p3.gif
+site/src/images/side_p2.gif
+site/src/images/side_p1.gif
+site/src/images/mongrel_not_scgi.jpg
+site/src/images/li4.gif
+site/src/images/li3.gif
+site/src/images/li3-c1.gif
+site/src/images/li2.gif
+site/src/images/li2-c1.gif
+site/src/images/li1b.gif
+site/src/images/li1b-c1.gif
+site/src/images/li1a.gif
+site/src/images/li1a-c1.gif
+site/src/images/iron_mongrel.jpg
+site/src/images/index.page
+site/src/images/config_tool_snap.png
+site/src/images/bug_votes.png
+site/src/images/98452447_1be256a96c.jpg
+site/src/images/92211824_d01a4ce59c.jpg
+site/src/images/90208926_7d64788f30.jpg
+site/src/images/87022458_3981942f0c.jpg
+site/src/images/86461088_9a747a6a5e.jpg
+site/src/images/85895062_beb6249744.jpg
+site/src/images/79968762_e063fc1317.jpg
+site/src/images/63325054_12298eb2a3.jpg
+site/src/images/6267035_eeec5b0f16.jpg
+site/src/images/3colls_p3.jpg
+site/src/images/3colls_p2.jpg
+site/src/images/3colls_p1.jpg
+site/src/images/3930442_6cbcae1335.jpg
+site/src/fasq.page
+site/src/faq.page
+site/src/dogs.page
+site/src/docs/win32.page
+site/src/docs/upload_progress_rails.rb
+site/src/docs/upload_progress_javascript.js
+site/src/docs/upload_progress_form.rhtml
+site/src/docs/upload_progress.page
+site/src/docs/started.page
+site/src/docs/SimpleLighttpdMongrelSetup.jpg
+site/src/docs/security.page
+site/src/docs/pound.page
+site/src/docs/pen_balance.page
+site/src/docs/osx.page
+site/src/docs/mongrel_cluster.page
+site/src/docs/litespeed.page
+site/src/docs/lighttpd.page
+site/src/docs/index.page
+site/src/docs/howto.page
+site/src/docs/how_many_mongrels.page
+site/src/docs/gem_plugin.page
+site/src/docs/frameworks.page
+site/src/docs/distributed_worker.page
+site/src/docs/debian-sarge.page
+site/src/docs/contrib.page
+site/src/docs/choosing_deployment.page
+site/src/docs/apache.page
+site/src/default.template
+site/src/default.css
+site/src/certified.page
+site/src/books.page
+site/src/attributions.page
+site/src/adoption.page
+site/README
+site/config.yml
+site/atom.rb
+setup.rb
+README
+mongrel.gemspec
+mongrel-public_cert.pem
+Manifest
+log/mongrel_debug/objects.log
+LICENSE
+lib/mutex_fix.rb
+lib/mongrel.rb
+lib/mongrel/tcphack.rb
+lib/mongrel/stats.rb
+lib/mongrel/rails.rb
+lib/mongrel/mime_types.yml
+lib/mongrel/init.rb
+lib/mongrel/handlers.rb
+lib/mongrel/debug.rb
+lib/mongrel/configurator.rb
+lib/mongrel/command.rb
+lib/mongrel/cgi.rb
+lib/mongrel/camping.rb
+ext/http11/tst_search.c
+ext/http11/tst_insert.c
+ext/http11/tst_init.c
+ext/http11/tst_grow_node_free_list.c
+ext/http11/tst_delete.c
+ext/http11/tst_cleanup.c
+ext/http11/tst.h
+ext/http11/mkmf.log
+ext/http11/MANIFEST
+ext/http11/http11_parser.rl
+ext/http11/http11_parser.h
+ext/http11/http11_parser.c
+ext/http11/http11.c
+ext/http11/extconf.rb
+ext/http11/ext_help.h
+examples/webrick_compare.rb
+examples/simpletest.rb
+examples/random_thrash.rb
+examples/monitrc
+examples/mongrel_simple_service.rb
+examples/mongrel_simple_ctrl.rb
+examples/mongrel.conf
+examples/mime.yaml
+examples/httpd.conf
+examples/camping/tepee.rb
+examples/camping/README
+examples/camping/blog.rb
+examples/builder.rb
+COPYING
+CHANGELOG
+bin/mongrel_rails
View
137 Rakefile
@@ -1,22 +1,35 @@
-require 'rake'
-require 'rake/testtask'
-require 'rake/clean'
-require 'rake/gempackagetask'
-require 'rake/rdoctask'
-require 'tools/rakehelp'
-require 'fileutils'
-include FileUtils
-setup_tests
-setup_clean ["ext/http11/*.{bundle,so,obj,pdb,lib,def,exp}", "ext/http11/Makefile", "pkg", "lib/*.bundle", "*.gem", "doc/site/output", ".config"]
-
-setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc', 'ext/http11/http11.c']
-
-desc "Does a full compile, test run"
-task :default => [:compile, :test]
+require 'echoe'
+
+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}", "ext/http11/Makefile", "pkg", "lib/*.bundle", "*.gem", "doc/site/output", ".config"]
+ p.rdoc_pattern = ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc', 'ext/http11/http11.c']
+ p.ignore_pattern = /^projects/
+ p.ruby_version = '>= 1.8.4'
+ p.dependencies = ['gem_plugin >=0.2.2', 'cgi_multipart_eof_fix >=2']
+
+ p.need_tar_gz = false
+ p.need_tgz = true
+ p.certificate_chain = ['/Users/eweaver/p/configuration/gem_certificates/mongrel/mongrel-public_cert.pem',
+ '/Users/eweaver/p/configuration/gem_certificates/evan_weaver-mongrel-public_cert.pem']
+ p.require_signed = true
+
+ p.eval = proc do
+ if RUBY_PLATFORM =~ /mswin/
+ files += ['lib/http11.so']
+ extensions.clear
+ platform = Gem::Platform::WIN32
+ else
+ add_dependency('daemons', '>= 1.0.3')
+ add_dependency('fastthread', '>= 0.6.2')
+ end
+ end
+end
-desc "Compiles all extensions"
-task :compile => [:http11] do
+task :compile do
+ # Append a sanity check to the compile task
if Dir.glob(File.join("lib","http11.*")).length == 0
STDERR.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
STDERR.puts "Gem actually failed to build. Your system is"
@@ -26,63 +39,25 @@ task :compile => [:http11] do
end
end
-task :package => [:clean,:compile,:test,:rerdoc]
-
-task :ragel do
- sh %{ragel ext/http11/http11_parser.rl | rlgen-cd -G2 -o ext/http11/http11_parser.c}
-end
-
-task :site_webgen do
- sh %{pushd doc/site; webgen; ruby atom.rb > output/feed.atom; rsync -azv output/* rubyforge.org:/var/www/gforge-projects/mongrel/; popd }
-end
-
-task :site_rdoc do
- sh %{ rsync -azv doc/rdoc/* rubyforge.org:/var/www/gforge-projects/mongrel/rdoc/ }
-end
-
-task :site_coverage => [:rcov] do
- sh %{ rsync -azv test/coverage/* rubyforge.org:/var/www/gforge-projects/mongrel/coverage/ }
-end
-
-task :site_projects_rdoc do
- sh %{ cd projects/gem_plugin; rake site }
-end
-
-task :site => [:site_webgen, :site_rdoc, :site_coverage, :site_projects_rdoc]
-
-setup_extension("http11", "http11")
-
-name="mongrel"
-version="1.0.2"
+#### Project-wide install and uninstall tasks
-setup_gem(name, version) do |spec|
- spec.summary = "A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps."
- spec.description = spec.summary
- spec.test_files = Dir.glob('test/test_*.rb')
- spec.author="Zed A. Shaw"
- spec.executables=['mongrel_rails']
- spec.files += %w(ext/http11/MANIFEST README Rakefile setup.rb lib/mongrel/mime_types.yml)
-
- spec.required_ruby_version = '>= 1.8.4'
-
- if RUBY_PLATFORM =~ /mswin/
- spec.files += ['lib/http11.so']
- spec.extensions.clear
- spec.platform = Gem::Platform::WIN32
- else
- spec.add_dependency('daemons', '>= 1.0.3')
- spec.add_dependency('fastthread', '>= 0.6.2')
+def sub_project(project, *targets)
+ targets.each do |target|
+ Dir.chdir "projects/#{project}" do
+ sh %{rake --trace #{target.to_s} }
+ end
end
-
- spec.add_dependency('gem_plugin', '>= 0.2.2')
- spec.add_dependency('cgi_multipart_eof_fix', '>= 2')
end
-task :install do
+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)
- sh %{rake package}
- sh %{gem install pkg/mongrel-#{version}}
+end
+
+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)
@@ -94,17 +69,19 @@ end
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)
- sh %{gem uninstall mongrel}
sub_project("gem_plugin", :uninstall)
sub_project("fastthread", :uninstall)
if RUBY_PLATFORM =~ /mswin/
sub_project("mongrel_service", :install)
end
end
+#### Documentation upload tasks
+# Is this still used?
task :gem_source do
mkdir_p "pkg/gems"
mkdir_p "pkg/tar"
@@ -116,3 +93,25 @@ task :gem_source do
sh %{ index_gem_repository.rb -d pkg }
sh %{ scp -r ChangeLog pkg/* rubyforge.org:/var/www/gforge-projects/mongrel/releases/ }
end
+
+task :ragel do
+ sh %{ragel ext/http11/http11_parser.rl | rlgen-cd -G2 -o ext/http11/http11_parser.c}
+end
+
+task :site_webgen do
+ sh %{pushd site; webgen; ruby atom.rb > output/feed.atom; rsync -azv output/* rubyforge.org:/var/www/gforge-projects/mongrel/; popd }
+end
+
+task :site_rdoc => [:redoc] do
+ sh %{ rsync -azv doc/* rubyforge.org:/var/www/gforge-projects/mongrel/rdoc/ }
+end
+
+task :site_coverage => [:rcov] do
+ sh %{ rsync -azv test/coverage/* rubyforge.org:/var/www/gforge-projects/mongrel/coverage/ }
+end
+
+task :site_projects_rdoc do
+ sh %{ cd projects/gem_plugin; rake site }
+end
+
+task :site => [:site_webgen, :site_rdoc, :site_coverage, :site_projects_rdoc]
View
@@ -0,0 +1,20 @@
+-----BEGIN CERTIFICATE-----
+MIIDUDCCAjigAwIBAgIBADANBgkqhkiG9w0BAQUFADBOMRwwGgYDVQQDDBNtb25n
+cmVsLWRldmVsb3BtZW50MRkwFwYKCZImiZPyLGQBGRY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----END CERTIFICATE-----
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.

0 comments on commit 0d0240d

Please sign in to comment.