forked from sinatra/sinatra
/
RakeFile
35 lines (30 loc) · 980 Bytes
/
RakeFile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require 'rake/testtask'
require 'ftools'
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
p.rdoc_pattern = ['README', 'LICENSE'] + Dir.glob('lib/**/*.rb') + Dir.glob('vendor/**/*.rb')
p.docs_host = "bmizerany@rubyforge.org:/var/www/gforge-projects/"
end
rescue LoadError
end
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