-
Notifications
You must be signed in to change notification settings - Fork 54
/
Rakefile
32 lines (28 loc) · 1004 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
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "yard-rest-plugin"
gem.summary = %Q{A plugin for Yardoc that produces API documentation for Restful web services}
gem.description = %Q{A plugin for Yardoc that produces API documentation for Restful web services. See README.markdown for more details}
gem.email = "aisha.fenton@visfleet.com"
gem.homepage = "http://github.com/visfleet/yard-rest-plugin"
gem.authors = ["Aisha Fenton"]
gem.add_dependency("yard", '>= 0.5')
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
namespace :ex do
desc "Generate example docs"
task :generate do
`yardoc 'example/*.rb' -t rest --backtrace -p ./templates -e ./lib/yard-rest-plugin.rb -r example/README.markdown --title 'Sample API'`
end
desc "Clean example docs"
task :clean do
`rm -R doc`
`rm -R .yardoc`
end
end