Sha256: b7e218c22ac2a6255f9b43ca4d65766d39b060a2ef069fc0a005bb9496a609ec
Contents?: true
Size: 935 Bytes
Versions: 5
Compression:
Stored size: 935 Bytes
Contents
require 'rake' require 'rake/testtask' require 'rdoc/task' require 'rails/version' require 'bundler/gem_tasks' desc 'Default: run unit tests.' task :default => :test desc 'Test the wicked_pdf plugin.' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = true end desc "Generate dummy application for test cases" task :dummy_generate do # recursively remove test/dummy directory entity FileUtils.rm_r Dir.glob('test/dummy/*') prefix = '' if Rails::VERSION::MAJOR != 2 prefix = 'new ' end system("rails #{prefix}test/dummy") FileUtils.rm_r Dir.glob('test/dummy/test/*') end desc 'Generate documentation for the wicked_pdf plugin.' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'WickedPdf' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README') rdoc.rdoc_files.include('lib/**/*.rb') end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
wicked_pdf-0.11.0 | Rakefile |
wicked_pdf-0.10.2 | Rakefile |
wicked_pdf-0.10.0 | Rakefile |
wicked_pdf-0.9.10 | Rakefile |
wicked_pdf-0.9.9 | Rakefile |