From a4a346877b799f039d62a3751cdd94730d695fdb Mon Sep 17 00:00:00 2001 From: Luis Lavena Date: Sun, 8 Jan 2012 14:06:50 -0300 Subject: [PATCH] Initial cleanup of Rakefile --- Rakefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Rakefile b/Rakefile index 66e63886..2f7a33d2 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,33 @@ +require "hoe" +require "rake/extensiontask" + +HOE = Hoe.spec "puma" do + self.rubyforge_name = 'puma' + self.readme_file = "README.md" + + developer 'Evan Phoenix', 'evan@phx.io' + + spec_extras[:extensions] = ["ext/puma_http11/extconf.rb"] + spec_extras[:executables] = ['puma', 'pumactl'] + + dependency "rack", "~> 1.2" + + extra_dev_deps << ["rake-compiler", "~> 0.8.0"] +end + +# puma.gemspec +file "#{HOE.spec.name}.gemspec" => ['Rakefile'] do |t| + puts "Generating #{t.name}" + File.open(t.name, 'wb') { |f| f.write HOE.spec.to_ruby } +end + +desc "Generate or update the standalone gemspec file for the project" +task :gemspec => ["#{HOE.spec.name}.gemspec"] + +# tests require extension be compiled +task :test => [:compile] + +__END__ require 'rubygems' require 'hoe'