Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (33 sloc) 1015 Bytes
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "saucerly"
gemspec.summary = "PDF rending plugin for Rails using FlyingSaucer."
gemspec.email = "tim@openmonkey.com"
gemspec.homepage = "http://github.com/timriley/saucerly"
gemspec.authors = ["Tim Riley"]
gemspec.add_dependency('flying_saucer')
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install jeweler"
end
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the saucerly plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the saucerly plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Saucerly'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end