Sha256: f84910c4e31b6b5fcf1185e190c2d657949caf5b8cbdef2f647985a0ffeaeef1

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'tools/rakehelp'
require 'fileutils'
include FileUtils

setup_tests
setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config", "ext/**/Makefile"]

setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']

setup_extension('http11_client','http11_client')
setup_extension('fuzzrnd','fuzzrnd')

desc "Does a full compile, test run"
task :default => [:http11_client, :fuzzrnd, :test]

version="0.8"
name="rfuzz"

setup_gem(name, version) do |spec|
  spec.summary = "The rfuzz web server destructor"
  spec.description = spec.summary
  spec.author="Zed A. Shaw"
  spec.add_dependency("mongrel",">= 0.3.13.3")
  spec.files += Dir.glob("resources/**/*")
  spec.files += Dir.glob("ext/**/*.rl")
end


task :ragel do
  sh %{/usr/local/bin/ragel ext/http11_client/http11_parser.rl | /usr/local/bin/rlcodegen -G2 -o ext/http11_client/http11_parser.c}
end

task :install => [:test, :package] do
  sh %{sudo gem install pkg/#{name}-#{version}.gem}
end

task :uninstall => [:clean] do
  sh %{sudo gem uninstall #{name}}
end

task :site do
  sh %{pushd doc/site; webgen; popd}
  sh %{scp -r doc/site/output/* @rubyforge.org:/var/www/gforge-projects/rfuzz/}
end

task :project => [:clean, :ragel, :default, :test, :rdoc, :rcov, :package, :site] do
  sh %{scp -r doc/rdoc test/coverage @rubyforge.org:/var/www/gforge-projects/rfuzz/}
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rfuzz-0.8 Rakefile