Rakefile in pdf-wrapper-0.0.7 vs Rakefile in pdf-wrapper-0.1.0
- old
+ new
@@ -4,24 +4,24 @@
require 'rake/rdoctask'
require 'rake/testtask'
require "rake/gempackagetask"
require 'spec/rake/spectask'
-PKG_VERSION = "0.0.7"
+PKG_VERSION = "0.1.0"
PKG_NAME = "pdf-wrapper"
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
desc "Default Task"
task :default => [ :spec ]
# run all rspecs
desc "Run all rspec files"
Spec::Rake::SpecTask.new("spec") do |t|
- #t.spec_files = FileList['specs/**/*_spec.rb']
- t.spec_files = ['specs/load_spec.rb','specs/image_spec.rb','specs/shapes_spec.rb','specs/text_spec.rb','specs/wrapper_spec.rb']
+ # 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.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.*"]
+ t.rcov_opts = ["--exclude","spec.*\.rb","--exclude",".*cairo.*","--exclude",".*rcov.*","--exclude",".*rspec.*","--exclude",".*pdf-reader.*", "--exclude",".*gems.*"]
end
# generate specdocs
desc "Generate Specdocs"
Spec::Rake::SpecTask.new("specdocs") do |t|