Sha256: c9f025862552f1d247a606ad686f041e944b4ff30601855c1d45d4f29173476e

Contents?: true

Size: 1.24 KB

Versions: 6

Compression:

Stored size: 1.24 KB

Contents

require 'rubygems'
require 'echoe'

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}',
                     'lib/*.{bundle,so,o,obj,pdb,lib,def,exp}',
                     'ext/unicorn/http11/Makefile',
                     'pkg', 'lib/*.bundle', '*.gem',
                     'site/output', '.config', 'coverage',
                     'test_*.log', 'log', 'doc']
  p.url = "http://unicorn.bogomips.org/"
  p.ignore_pattern = /^(pkg|site|projects|doc|log)|CVS|\.log/
  p.need_tar_gz = false
  p.need_tgz = true
  p.dependencies = [ 'rack' ]

  p.extension_pattern = ["ext/**/extconf.rb"]

  # Eric hasn't bothered to figure out running exec tests properly
  # from Rake, but Eric prefers GNU make to Rake for tests anyways...
  p.test_pattern = [ 'test/unit/test*.rb' ]
end

#### Ragel builder

desc "Rebuild the Ragel sources"
task :ragel do
  Dir.chdir "ext/unicorn/http11" do
    target = "http11_parser.c"
    File.unlink target if File.exist? target
    sh "ragel http11_parser.rl -C -G2 -o #{target}"
    raise "Failed to build C source" unless File.exist? target
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
unicorn-0.8.4 Rakefile
unicorn-0.8.2 Rakefile
unicorn-0.8.3 Rakefile
unicorn-0.9.0 Rakefile
unicorn-0.9.1 Rakefile
unicorn-0.8.1 Rakefile