public
Description: System wide Rake.
Homepage: http://errtheblog.com/posts/60-sake-bomb
Clone URL: git://github.com/defunkt/sake.git
sake / Rakefile
100644 34 lines (28 sloc) 1.113 kb
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
require 'rubygems'
require 'rake'
 
require 'lib/sake' unless defined? Sake
 
begin
  require 'echoe'
 
  Echoe.new('sake', Sake::Version::String) do |p|
    p.rubyforge_name = 'err'
    p.summary = "Sake tastes great and helps maintain system-level Rake files."
    p.description = "Sake tastes great and helps maintain system-level Rake files."
    p.url = "http://errtheblog.com/"
    p.author = 'Chris Wanstrath'
    p.email = "chris@ozmm.org"
    p.dependencies = ['ParseTree >=2.1.1', 'ruby2ruby >=1.1.8']
  end
 
rescue LoadError => boom
  puts "You are missing a dependency required for meta-operations on this gem."
  puts "#{boom.to_s.capitalize}."
end
 
desc 'Generate RDoc documentation for Sake.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  files = ['README', 'LICENSE', 'lib/**/*.rb']
  rdoc.rdoc_files.add(files)
  rdoc.main = "README" # page to start on
  rdoc.title = "sake"
  rdoc.template = File.exists?(t="/Users/chris/ruby/projects/err/rock/template.rb") ? t : "/var/www/rock/template.rb"
  rdoc.rdoc_dir = 'doc' # rdoc output folder
  rdoc.options << '--inline-source'
end