Rakefile in prawn-0.2.3 vs Rakefile in prawn-0.3.0

- old
+ new

@@ -2,11 +2,11 @@ require 'rake' require 'rake/testtask' require "rake/rdoctask" require "rake/gempackagetask" -PRAWN_VERSION = "0.2.3" +PRAWN_VERSION = "0.3.0" task :default => [:test] desc "Run all tests, test-spec and mocha required" Rake::TestTask.new do |test| @@ -24,34 +24,25 @@ desc "genrates documentation" Rake::RDocTask.new do |rdoc| rdoc.rdoc_files.include( "README", "COPYING", - "LICENSE", "lib/" ) + "LICENSE", + "HACKING", "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" task :examples do mkdir_p "output" - examples = Dir["examples/*.rb"] + examples = Dir["examples/**/*.rb"] t = Time.now puts "Running Examples" examples.each { |file| `ruby -Ilib #{file}` } puts "Ran in #{Time.now - t} s" `mv *.pdf output` - - unless RUBY_VERSION < "1.9" - puts "Checking for differences..." - output = Dir["output/*.pdf"] - ref = Dir["reference_pdfs/*.pdf"] - output.zip(ref).each do |o,r| - system "diff -q #{o} #{r}" - end - end - end spec = Gem::Specification.new do |spec| spec.name = "prawn" spec.version = PRAWN_VERSION