forked from defunkt/sake
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
33 lines (28 loc) · 1.09 KB
/
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
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 = "[email protected]"
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