Sha256: 353c7cf904dd1d576a521865cc692d2fa492a163ad825324cf7da0ced8679680
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
require "bundler" Bundler.setup require 'rake' require 'rspec/core/rake_task' require 'rdoc/task' require 'rubygems/package_task' task :default => [:spec] desc "Run all rspec files" RSpec::Core::RakeTask.new("spec") do |c| c.rspec_opts = "-t ~unresolved" end desc "Show library's code statistics" task :stats do require 'code_statistics' CodeStatistics::TEST_TYPES << "Specs" CodeStatistics.new( ["Prawn", "lib"], ["Specs", "spec"] ).to_s end desc "genrates documentation" RDoc::Task.new do |rdoc| rdoc.rdoc_files.include( "README.md", "COPYING", "LICENSE", "lib/" ) rdoc.main = "README.md" rdoc.rdoc_dir = "doc/html" rdoc.title = "Prawn Documentation" end desc "Generate the 'Prawn by Example' manual" task :manual do puts "Building manual..." require File.expand_path(File.join(File.dirname(__FILE__), %w[manual manual manual])) puts "The Prawn manual is available at manual.pdf. Happy Prawning!" end spec = Gem::Specification.load "prawn.gemspec" Gem::PackageTask.new(spec) do |pkg| pkg.need_zip = true pkg.need_tar = true end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
prawn-0.13.2 | Rakefile |
prawn-0.13.1 | Rakefile |
prawn-0.13.0 | Rakefile |