From a0f2c4514e969d0a127227201cbdb8e57f71df63 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 5 Jul 2009 15:46:52 -0700 Subject: Rename unicorn/http11 => unicorn_http We couldn't do proper namespacing for the C module so there was a potential conflict with Init_http11() in Mongrel. This was needed because Mongrel's HTTP parser could be used in some applications and we may be unfortunate enough need to support them. --- Rakefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index e7b4c36..29e2d41 100644 --- a/Rakefile +++ b/Rakefile @@ -6,9 +6,9 @@ Echoe.new("unicorn") do |p| p.summary = "Rack HTTP server for Unix, fast clients and nothing else" p.author = "Eric Wong" p.email = "normalperson@yhbt.net" - p.clean_pattern = ['ext/unicorn/http11/*.{bundle,so,o,obj,pdb,lib,def,exp}', + p.clean_pattern = ['ext/unicorn_http/*.{bundle,so,o,obj,pdb,lib,def,exp}', 'lib/*.{bundle,so,o,obj,pdb,lib,def,exp}', - 'ext/unicorn/http11/Makefile', + 'ext/unicorn_http/Makefile', 'pkg', 'lib/*.bundle', '*.gem', 'site/output', '.config', 'coverage', 'test_*.log', 'log', 'doc'] @@ -29,10 +29,10 @@ end desc "Rebuild the Ragel sources" task :ragel do - Dir.chdir "ext/unicorn/http11" do - target = "http11_parser.c" + Dir.chdir "ext/unicorn_http" do + target = "unicorn_http.c" File.unlink target if File.exist? target - sh "ragel http11_parser.rl -C -G2 -o #{target}" + sh "ragel unicorn_http.rl -C -G2 -o #{target}" raise "Failed to build C source" unless File.exist? target end end -- cgit v1.2.3-24-ge0c7