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

Small adjustments to Rakefiles (:clean, :compile, :test) for all.

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@443 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
luislavena 2006-11-27 16:43:35 +00:00
parent f9e5eb791f
commit 20f0ad8d61
2 changed files with 15 additions and 7 deletions

View file

@ -6,10 +6,13 @@ require 'tools/rakehelp'
GEM_VERSION="0.4.1"
task :default => ['fastthread', 'test', 'package']
setup_extension('fastthread', 'fastthread')
desc "Compiles native extensions"
task :compile => [:fastthread]
task :default => [:compile, :test]
Rake::TestTask.new do |task|
task.libs << 'test'
task.test_files = Dir.glob( 'test/test*.rb' )
@ -38,6 +41,7 @@ gemspec = Gem::Specification.new do |gemspec|
end
end
task :package => [:clean, :compile, :test]
Rake::GemPackageTask.new( gemspec ) do |task|
task.gem_spec = gemspec
task.need_tar = true

View file

@ -14,11 +14,14 @@ setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config"]
setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
desc "Does a full compile, test run"
task :default => [:test, :compile, :package]
task :default => [:compile, :test]
GEM_VERSION = "0.3.0"
GEM_NAME = "mongrel_service"
desc "Compile native code"
task :compile => [:native_lib, :native_service]
# ServiceFB namespace (lib)
namespace :lib do
project_task 'servicefb' do
@ -39,8 +42,8 @@ namespace :lib do
end
# add lib namespace to global tasks
#include_projects_of :lib
task :compile => "lib:build"
task :clobber => "lib:clobber"
task :native_lib => "lib:build"
task :clean => "lib:clobber"
# mongrel_service (native)
namespace :native do
@ -65,9 +68,10 @@ namespace :native do
end
end
#include_projects_of :native
task :compile => "native:build"
task :clobber => "native:clobber"
task :native_service => "native:build"
task :clean => "native:clobber"
task :package => [:clean, :compile, :test]
setup_gem(GEM_NAME, GEM_VERSION) do |spec|
spec.summary = "Mongrel Native Win32 Service Plugin for Rails"