Rakefile in pdf-wrapper-0.3.4 vs Rakefile in pdf-wrapper-0.3.5
- old
+ new
@@ -6,11 +6,12 @@
require "rake/gempackagetask"
require 'spec/rake/spectask'
require 'roodi'
require 'roodi_task'
-PKG_VERSION = "0.3.4"
+
+PKG_VERSION = "0.3.5"
PKG_NAME = "pdf-wrapper"
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
desc "Default Task"
task :default => [ :spec ]
@@ -19,13 +20,11 @@
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.*"]
+ t.libs << File.dirname(__FILE__) + "/specs"
end
# generate specdocs
desc "Generate Specdocs"
Spec::Rake::SpecTask.new("specdocs") do |t|
@@ -76,13 +75,13 @@
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."
spec.add_dependency("cairo", "~>1.8")
- #spec.add_dependency("pango")
- #spec.add_dependency("poppler")
- #spec.add_dependency("gdkpixbuf")
- # TODO - add rsvg2
+ spec.add_dependency("pango")
+ spec.add_dependency("poppler")
+ spec.add_dependency("gdk_pixbuf2")
+ spec.add_dependency("rsvg2")
end
# package the library into a gem
desc "Generate a gem for pdf-wrapper"
Rake::GemPackageTask.new(spec) do |pkg|