forked from jeremyevans/scaffolding_extensions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
35 lines (30 loc) · 798 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'
RDOC_OPTS = ["--line-numbers", "--inline-source", '--main', 'README']
begin
gem 'hanna-nouveau'
RDOC_OPTS.concat(['-f', 'hanna'])
rescue Gem::LoadError
end
rdoc_task_class = begin
require "rdoc/task"
RDoc::Task
rescue LoadError
begin
require "rake/rdoctask"
Rake::RDocTask
rescue LoadError, StandardError
end
end
if rdoc_task_class
rdoc_task_class.new do |rdoc|
rdoc.rdoc_dir = "rdoc"
rdoc.options += RDOC_OPTS
rdoc.main = "README"
rdoc.title = "Scaffolding Extensions: Administrative database front-end for multiple web-frameworks and ORMs"
rdoc.rdoc_files.add ["README", "MIT-LICENSE", "lib/**/*.rb", "doc/*.txt"]
end
end
desc "Package Scaffolding Extensions"
task :package do
sh %{gem build scaffolding_extensions.gemspec}
end