1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
sinatra/RakeFile

37 lines
1,004 B
Text
Raw Normal View History

2007-09-11 23:16:35 +00:00
require 'rake/testtask'
2007-09-25 17:42:30 +00:00
require 'ftools'
2007-10-01 20:56:34 -07:00
require 'hoe'
Version = '0.1.0'
begin
require 'rubygems'
gem 'echoe'
ENV['RUBY_FLAGS'] = ""
require 'echoe'
Echoe.new('sinatra') do |p|
p.rubyforge_name = 'sinatra'
p.dependencies = ['mongrel >=1.0.1', 'rack >=0.2.0']
p.summary = "Sinatra is a classy web-framework dressed in a DSL"
p.description = "Sinatra is a classy web-framework dressed in a DSL"
p.url = "http://sinatra.rubyforge.org/"
p.author = 'Blake Mizerany'
p.email = "blake.mizerany@gmail.com"
p.test_pattern = 'test/**/*_test.rb'
p.include_rakefile = true
2007-10-04 15:40:12 -07:00
p.rdoc_pattern = ['README', 'LICENSE'] << Dir.glob('lib/**/*.rb') << Dir.glob('vendor/**/*.rb')
2007-10-04 17:43:44 -07:00
p.docs_host = "bmizerany@rubyforge.org:/var/www/gforge-projects/sinatra/"
2007-10-01 20:56:34 -07:00
end
rescue LoadError
end
2007-09-11 23:16:35 +00:00
2007-09-25 17:42:30 +00:00
desc 'Clear all the log files from here down'
task :remove_logs do
Dir.glob(Dir.pwd + '/**/*.log') do |logfile|
FileUtils.rm(logfile)
puts 'Removed: %s' % logfile
end
end