Rakefile in prawn-layout-0.3.2 vs Rakefile in prawn-layout-0.7.1

- old
+ new

@@ -2,11 +2,11 @@ require 'rake' require 'rake/testtask' require "rake/rdoctask" require "rake/gempackagetask" -PRAWN_LAYOUT_VERSION = "0.3.2" +PRAWN_LAYOUT_VERSION = "0.7.1" task :default => [:test] desc "Run all tests, test-spec and mocha required" Rake::TestTask.new do |test| @@ -22,11 +22,12 @@ ["Specs", "spec"] ).to_s end desc "genrates documentation" Rake::RDocTask.new do |rdoc| - rdoc.rdoc_files.include( "lib/" ) + rdoc.rdoc_files.include( "README", "lib/" ) + rdoc.main = "README" rdoc.rdoc_dir = "doc/html" rdoc.title = "Prawn Documentation" end desc "run all examples, and then diff them against reference PDFs" @@ -49,10 +50,12 @@ ["Rakefile"] spec.require_path = "lib" spec.test_files = Dir[ "test/*_test.rb" ] spec.has_rdoc = true - spec.rdoc_options << '--title' << 'Prawn Documentation' + spec.extra_rdoc_files = %w{README} + spec.rdoc_options << '--title' << 'Prawn Documentation' << + '--main' << 'README' << '-q' spec.author = "Gregory Brown" spec.email = " gregory.t.brown@gmail.com" spec.rubyforge_project = "prawn" spec.homepage = "http://prawn.majesticseacreature.com" spec.description = <<END_DESC