about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-03-10 06:46:45 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-03-10 06:46:45 +0000
commite0d06cdcb71a8b3bffefbe2ef5c44ced8287086d (patch)
tree5035fcc554cc4bac0c9ae73b07a3b36ac79509fb /Rakefile
parent0fb0a0f09723c4b55bbd5ff6935ccdafe266b156 (diff)
downloadunicorn-e0d06cdcb71a8b3bffefbe2ef5c44ced8287086d.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@92 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile33
1 files changed, 24 insertions, 9 deletions
diff --git a/Rakefile b/Rakefile
index 076a328..0dcb663 100644
--- a/Rakefile
+++ b/Rakefile
@@ -31,27 +31,42 @@ end
 
 setup_extension("http11", "http11")
 
-version="0.3.10"
-summary = "A small fast HTTP library and server that runs Rails, Camping, and Nitro apps."
-test_file = "test/test_ws.rb"
-author="Zed A. Shaw"
 name="mongrel"
-scripts=['mongrel_rails']
+version="0.3.10"
+
+setup_gem(name, version) do |spec|
+  spec.summary = "A small fast HTTP library and server that runs Rails, Camping, and Nitro apps."
+  spec.description = spec.summary
+  spec.test_file = "test/test_ws.rb"
+  spec.author="Zed A. Shaw"
+  spec.executables=['mongrel_rails']
+  spec.files += %w(ext/http11/MANIFEST README Rakefile setup.rb)
 
-setup_gem(name, version,  author, summary, scripts, test_file) do |spec|
   spec.add_dependency('daemons', '>= 0.4.2')
   spec.add_dependency('gem_plugin', ">= 0.1")
+  spec.required_ruby_version = '>= 1.8.4'
 end
 
 desc "Build a binary gem for Win32"
 task :win32_gem => [:clean, :compile, :test, :rerdoc, :package_win32]
 
-scripts_win32 = scripts + ['mongrel_rails_service']
 task :package_win32 do
-  setup_win32_gem(name, version,  version, summary, scripts_win32, test_file) do |spec|
+  setup_win32_gem(name, version) do |spec|
+    spec.summary = "A small fast HTTP library and server that runs Rails, Camping, and Nitro apps."
+    spec.description = spec.summary
+    spec.test_files = Dir.glob('test/test_*.rb')
+    spec.author="Zed A. Shaw"
+    spec.executables=['mongrel_rails', 'mongrel_rails_service']
+    spec.homepage="http://mongrel.rubyforge.org"
+    spec.rubyforge_project="mongrel"
+    spec.files += %w(ext/http11/MANIFEST README Rakefile setup.rb)
+    spec.files << 'ext/http11/http11.so'
+
+    spec.required_ruby_version = '>= 1.8.4'
+
     spec.add_dependency('win32-service', '>= 0.5.0')
     spec.add_dependency('gem_plugin', ">= 0.1")
-    spec.files << 'ext/http11/http11.so'
+
     spec.extensions = []
     spec.platform = Gem::Platform::WIN32
   end