Updated and working!
[sinatra.git] / RakeFile
blobf88404b56e5a0f09685414e47a6f5c7c14abc6a8
1 require 'rake/testtask'
2 require 'ftools'
3 require 'hoe'
5 Version = '0.1.0'
7 begin
8   require 'rubygems'
9   gem 'echoe'
10   ENV['RUBY_FLAGS'] = ""
11   require 'echoe'
13   Echoe.new('sinatra') do |p|
14     p.rubyforge_name = 'sinatra'
15     p.dependencies = ['mongrel >=1.0.1', 'rack >=0.2.0']    
16     p.summary = "Sinatra is a classy web-framework dressed in a DSL"
17     p.description = "Sinatra is a classy web-framework dressed in a DSL"
18     p.url = "http://sinatra.rubyforge.org/"
19     p.author = 'Blake Mizerany'
20     p.email = "blake.mizerany@gmail.com"
21     p.test_pattern = 'test/**/*_test.rb'
22     p.include_rakefile = true
23   end
25 rescue LoadError
26 end
28 desc 'Clear all the log files from here down'
29 task :remove_logs do
30   Dir.glob(Dir.pwd + '/**/*.log') do |logfile|
31     FileUtils.rm(logfile)
32     puts 'Removed: %s' % logfile
33   end
34 end