-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
52 lines (47 loc) · 1.36 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
begin
require 'rubygems'
rescue LoadError
end
require 'rake'
require 'rake/testtask'
require "rake/rdoctask"
require 'rake/gempackagetask'
PRAWN_GRID_VERSION = '0.4.1'
desc 'Run all tests'
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = Dir["test/*_test.rb"]
t.verbose = true
end
desc "Genrate documentation"
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include( "README",
"LICENSE",
"lib/" )
rdoc.main = "README"
rdoc.rdoc_dir = "doc/html"
rdoc.title = "Prawn Grid Documentation"
end
spec = Gem::Specification.new do |s|
s.name = "prawn_grid"
s.version = PRAWN_GRID_VERSION
s.platform = Gem::Platform::RUBY
s.summary = "A simple way to build grid layouts for Prawn"
s.files = Dir.glob("{examples,lib,test}/**/*") + ["Rakefile"]
s.require_path = "lib"
s.add_dependency("prawn")
s.test_files = Dir["test/*_test.rb"]
s.has_rdoc = true
s.rdoc_options << '--title' << 'Prawn Grid Documentation' <<
'--main' << 'README' << '-q'
s.author = "Andrew O'Brien"
s.email = "[email protected]"
s.homepage = "http://github.com/AndrewO/prawn_grid"
s.description = <<END_DESC
Prawn grid adds functionality to prawn to enable easy access to Page Grid coordinates
END_DESC
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end