mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
415b75bb57
Echoe creates a test task that works exactly like the one explicitly specified in the Rakefile. Remove the explicit test task.
26 lines
696 B
Ruby
26 lines
696 B
Ruby
require 'rubygems'
|
|
require 'rake/rdoctask'
|
|
require 'echoe'
|
|
|
|
task :default => :test
|
|
|
|
task :test do
|
|
ENV['SINATRA_ENV'] = 'test'
|
|
end
|
|
|
|
Rake::RDocTask.new do |rd|
|
|
rd.main = "README.rdoc"
|
|
rd.rdoc_files += ["README.rdoc"]
|
|
rd.rdoc_files += Dir.glob("lib/**/*.rb")
|
|
rd.rdoc_dir = 'doc'
|
|
end
|
|
|
|
Echoe.new("sinatra") do |p|
|
|
p.author = "Blake Mizerany"
|
|
p.summary = "Classy web-development dressed in a DSL"
|
|
p.url = "http://www.sinatrarb.com"
|
|
p.docs_host = "sinatrarb.com:/var/www/blakemizerany.com/public/docs/"
|
|
p.dependencies = ["mongrel >=1.0.1", "rack >= 0.3.0"]
|
|
p.install_message = "*** Be sure to checkout the site for helpful tips! sinatrarb.com ***"
|
|
p.include_rakefile = true
|
|
end
|