Rakefile in drake-0.8.5.0.2.2 vs Rakefile in drake-0.8.7.0.2.3
- old
+ new
@@ -144,17 +144,21 @@
DARKFISH_ENABLED = true
rescue LoadError => ex
DARKFISH_ENABLED = false
end
+BASE_RDOC_OPTIONS = [
+ '--line-numbers',
+ '--main', 'README',
+ '--title', 'Drake: Distributed Rake',
+]
+
rd = Rake::RDocTask.new("rdoc") do |rdoc|
rdoc.rdoc_dir = 'html'
rdoc.template = 'doc/jamis.rb'
rdoc.title = "Drake: Distributed Rake"
- rdoc.options << '--line-numbers' << '--inline-source' <<
- '--main' << 'README' <<
- '--title' << 'Drake: Distributed Rake'
+ rdoc.options = BASE_RDOC_OPTIONS.dup
rdoc.options << '-SHN' << '-f' << 'darkfish' if DARKFISH_ENABLED
rdoc.rdoc_files.include('README', 'MIT-LICENSE', 'TODO', 'CHANGES')
rdoc.rdoc_files.include('lib/**/*.rb', 'doc/**/*.rdoc')
rdoc.rdoc_files.exclude(/\bcontrib\b/)
end
@@ -218,10 +222,10 @@
#### Documentation and testing.
s.has_rdoc = true
s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
- s.rdoc_options = rd.options
+ s.rdoc_options = BASE_RDOC_OPTIONS
#### Author and project details.
s.author = "James M. Lawrence"
s.email = "quixoticsycophant@gmail.com"