Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (40 sloc) 1.288 kb
c4e7397 @sbfaulkner Initial commit to sinatra-prawn.
sbfaulkner authored
1 require 'rake'
2
3 begin
4 require 'jeweler'
5 Jeweler::Tasks.new do |s|
6 s.name = "sinatra-prawn"
7 s.summary = %Q{Sinatra extension to add support for pdf rendering with Prawn templates.}
8 s.email = "brentf@unwwwired.net"
9 s.homepage = "http://github.com/sbfaulkner/sinatra-prawn"
9002a95 @sbfaulkner first working version
sbfaulkner authored
10 s.description = "Sinatra extension to add support for pdf rendering with Prawn templates."
c4e7397 @sbfaulkner Initial commit to sinatra-prawn.
sbfaulkner authored
11 s.authors = ["S. Brent Faulkner"]
9002a95 @sbfaulkner first working version
sbfaulkner authored
12 s.add_dependency "prawn"
c4e7397 @sbfaulkner Initial commit to sinatra-prawn.
sbfaulkner authored
13 end
14 rescue LoadError
15 puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
16 end
17
18 require 'rake/rdoctask'
19 Rake::RDocTask.new do |rdoc|
20 rdoc.rdoc_dir = 'rdoc'
21 rdoc.title = 'sinatra-prawn'
22 rdoc.options << '--line-numbers' << '--inline-source'
23 rdoc.rdoc_files.include('README*')
24 rdoc.rdoc_files.include('lib/**/*.rb')
25 end
26
27 require 'rake/testtask'
28 Rake::TestTask.new(:test) do |t|
29 t.libs << 'lib' << 'test'
30 t.pattern = 'test/**/*_test.rb'
31 t.verbose = false
32 end
33
34 begin
35 require 'rcov/rcovtask'
36 Rcov::RcovTask.new do |t|
37 t.libs << 'test'
38 t.test_files = FileList['test/**/*_test.rb']
39 t.verbose = true
40 end
41 rescue LoadError
42 puts "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
43 end
44
45 task :default => :test
Something went wrong with that request. Please try again.