We don't use test and rdoc
This commit is contained in:
parent
400f256799
commit
21df7b559e
27
Rakefile
27
Rakefile
|
@ -23,29 +23,4 @@ Jeweler::Tasks.new do |gem|
|
||||||
gem.authors = ["James Hu"]
|
gem.authors = ["James Hu"]
|
||||||
# dependencies defined in Gemfile
|
# dependencies defined in Gemfile
|
||||||
end
|
end
|
||||||
Jeweler::RubygemsDotOrgTasks.new
|
Jeweler::RubygemsDotOrgTasks.new
|
||||||
|
|
||||||
require 'rake/testtask'
|
|
||||||
Rake::TestTask.new(:test) do |test|
|
|
||||||
test.libs << 'lib' << 'test'
|
|
||||||
test.pattern = 'test/**/test_*.rb'
|
|
||||||
test.verbose = true
|
|
||||||
end
|
|
||||||
|
|
||||||
desc "Code coverage detail"
|
|
||||||
task :simplecov do
|
|
||||||
ENV['COVERAGE'] = "true"
|
|
||||||
Rake::Task['test'].execute
|
|
||||||
end
|
|
||||||
|
|
||||||
task :default => :test
|
|
||||||
|
|
||||||
require 'rdoc/task'
|
|
||||||
Rake::RDocTask.new do |rdoc|
|
|
||||||
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
|
||||||
|
|
||||||
rdoc.rdoc_dir = 'rdoc'
|
|
||||||
rdoc.title = "rails-reverse-proxy #{version}"
|
|
||||||
rdoc.rdoc_files.include('README*')
|
|
||||||
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
||||||
end
|
|
Loading…
Reference in New Issue