Rakefile in pdf-wrapper-0.0.1 vs Rakefile in pdf-wrapper-0.0.2

- old
+ new

@@ -4,11 +4,11 @@ require 'rake/rdoctask' require 'rake/testtask' require "rake/gempackagetask" require 'spec/rake/spectask' -PKG_VERSION = "0.0.1" +PKG_VERSION = "0.0.2" PKG_NAME = "pdf-wrapper" PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" desc "Default Task" task :default => [ :spec ] @@ -17,11 +17,11 @@ desc "Run all rspec files" Spec::Rake::SpecTask.new("spec") do |t| t.spec_files = FileList['specs/**/*.rb'] 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",".*df-reader.*"] + t.rcov_opts = ["--exclude","spec.*\.rb","--exclude",".*cairo.*","--exclude",".*rcov.*","--exclude",".*rspec.*","--exclude",".*pdf-reader.*"] end # generate specdocs desc "Generate Specdocs" Spec::Rake::SpecTask.new("specdocs") do |t| @@ -49,28 +49,35 @@ rdoc.rdoc_files.include('DESIGN') rdoc.rdoc_files.include('lib/**/*.rb') rdoc.options << "--inline-source" end +desc "Publish rdocs to rubyforge" +task :publish_rdoc => [ :doc ] do + rdoc_dir = File.dirname(__FILE__) + "/doc/rdoc/" + `scp -r #{rdoc_dir} yob@rubyforge.org:/var/www/gforge-projects/pdf-wrapper/` +end + # a gemspec for packaging this library spec = Gem::Specification.new do |spec| - spec.name = PKG_NAME - spec.version = PKG_VERSION - spec.platform = Gem::Platform::RUBY - spec.summary = "A PDF generating library built on top of cairo" - spec.files = Dir.glob("{examples,lib}/**/**/*") + ["Rakefile"] + spec.name = PKG_NAME + spec.version = PKG_VERSION + 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 DESIGN CHANGELOG} - spec.rdoc_options << '--title' << 'PDF::Wrapper Documentation' << '--main' << 'README' << '-q' + spec.has_rdoc = true + spec.extra_rdoc_files = %w{README DESIGN CHANGELOG} + spec.rdoc_options << '--title' << 'PDF::Wrapper Documentation' << '--main' << 'README' << '-q' spec.author = "James Healy" - spec.email = "jimmy@deefa.com" - spec.rubyforge_project = "pdf-wrapper" - spec.description = "A PDF writing library that uses the cairo and pango libraries to do the heavy lifting." + 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." end # package the library into a gem desc "Generate a gem for pdf-wrapper" Rake::GemPackageTask.new(spec) do |pkg| - pkg.need_zip = true - pkg.need_tar = true + pkg.need_zip = true + pkg.need_tar = true end