Rakefile in drake-0.8.4.1.2.1 vs Rakefile in drake-0.8.5.0.2.2

- old
+ new

@@ -137,21 +137,29 @@ ruby "install.rb" end # Create a task to build the RDOC documentation tree. -rd = Rake::RDocTask.new("rdoc") { |rdoc| +begin + require 'darkfish-rdoc' + DARKFISH_ENABLED = true +rescue LoadError => ex + DARKFISH_ENABLED = false +end + +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 << '-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 # ==================================================================== # Create a task that will package the Rake software into distributable # tar, zip and gem files. @@ -166,9 +174,10 @@ 'test/**/Rakefile*', 'test/**/subdir', 'doc/**/*' ] PKG_FILES.exclude('doc/example/*.o') +PKG_FILES.exclude('TAGS') PKG_FILES.exclude(%r{doc/example/main$}) if ! defined?(Gem) puts "Package Target requires RubyGEMs" else