Sha256: 7f6e1d4007fdacb53bf7214bb2bb230927349120d6c398a23ecf130d11194c17

Contents?: true

Size: 853 Bytes

Versions: 9

Compression:

Stored size: 853 Bytes

Contents

require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rdoc/task'

Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test' << '.'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = true
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/*_test.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

task :default => :test

Rake::RDocTask.new do |rdoc|
  if File.exist?('VERSION')
    version = File.read('VERSION')
  else
    version = ""
  end

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "rack-rewrite #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('History.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
rack-rewrite-1.5.1 Rakefile
rack-rewrite-1.5.0 Rakefile
rack-rewrite-1.4.1 Rakefile
rack-rewrite-1.4.01 Rakefile
rack-rewrite-matches-1.3.3 Rakefile
rack-rewrite-1.3.3 Rakefile
rack-rewrite-1.3.2 Rakefile
rack-rewrite-1.3.1 Rakefile
rack-rewrite-1.3.0 Rakefile