Rakefile in pdf-wrapper-0.1.0 vs Rakefile in pdf-wrapper-0.1.3

- old
+ new

@@ -4,11 +4,11 @@ require 'rake/rdoctask' require 'rake/testtask' require "rake/gempackagetask" require 'spec/rake/spectask' -PKG_VERSION = "0.1.0" +PKG_VERSION = "0.1.3" PKG_NAME = "pdf-wrapper" PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" desc "Default Task" task :default => [ :spec ] @@ -16,10 +16,11 @@ # run all rspecs desc "Run all rspec files" Spec::Rake::SpecTask.new("spec") do |t| # spec files listed explicitly so that load_spec is the first one run t.spec_files = ['specs/load_spec.rb','specs/image_spec.rb','specs/graphics_spec.rb','specs/tables_spec.rb','specs/text_spec.rb','specs/wrapper_spec.rb'] + t.spec_opts = ['-c'] t.rcov = true t.rcov_dir = (ENV['CC_BUILD_ARTIFACTS'] || 'doc') + "/rcov" t.rcov_opts = ["--exclude","spec.*\.rb","--exclude",".*cairo.*","--exclude",".*rcov.*","--exclude",".*rspec.*","--exclude",".*pdf-reader.*", "--exclude",".*gems.*"] end @@ -43,11 +44,11 @@ # Genereate the RDoc documentation desc "Create documentation" Rake::RDocTask.new("doc") do |rdoc| rdoc.title = "pdf-wrapper" rdoc.rdoc_dir = (ENV['CC_BUILD_ARTIFACTS'] || 'doc') + '/rdoc' - rdoc.rdoc_files.include('README') + rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('CHANGELOG') rdoc.rdoc_files.include('TODO') rdoc.rdoc_files.include('lib/**/*.rb') rdoc.options << "--inline-source" end @@ -65,11 +66,12 @@ spec.platform = Gem::Platform::RUBY spec.summary = "A PDF generating library built on top of cairo" spec.files = Dir.glob("{examples,lib,specs}/**/**/*") + ["Rakefile"] spec.require_path = "lib" spec.has_rdoc = true - spec.extra_rdoc_files = %w{README CHANGELOG TODO} - spec.rdoc_options << '--title' << 'PDF::Wrapper Documentation' << '--main' << 'README' << '-q' + spec.extra_rdoc_files = %w{README.rdoc CHANGELOG TODO} + spec.rdoc_options << '--title' << 'PDF::Wrapper Documentation' << '--main' << 'README.rdoc' << '-q' + spec.add_dependency 'cairo', '>=1.5.0' spec.author = "James Healy" spec.homepage = "http://pdf-wrapper.rubyforge.org/" spec.email = "jimmy@deefa.com" spec.rubyforge_project = "pdf-wrapper" spec.description = "A unicode aware PDF writing library that uses the ruby bindings to various c libraries ( like cairo, pango, poppler and rsvg ) to do the heavy lifting."