sskirby-sskirby-prawn-layout 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +70 -0
- metadata +54 -0
data/Rakefile
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
require 'rake/testtask'
|
4
|
+
require "rake/rdoctask"
|
5
|
+
require "rake/gempackagetask"
|
6
|
+
|
7
|
+
PRAWN_LAYOUT_VERSION = "0.1.0"
|
8
|
+
|
9
|
+
task :default => [:test]
|
10
|
+
|
11
|
+
desc "Run all tests, test-spec and mocha required"
|
12
|
+
Rake::TestTask.new do |test|
|
13
|
+
test.libs << "spec"
|
14
|
+
test.test_files = Dir[ "spec/*_spec.rb" ]
|
15
|
+
test.verbose = true
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Show library's code statistics"
|
19
|
+
task :stats do
|
20
|
+
require 'code_statistics'
|
21
|
+
CodeStatistics.new( ["prawn-layout", "lib"],
|
22
|
+
["Specs", "spec"] ).to_s
|
23
|
+
end
|
24
|
+
|
25
|
+
desc "genrates documentation"
|
26
|
+
Rake::RDocTask.new do |rdoc|
|
27
|
+
rdoc.rdoc_files.include( "README", "lib/" )
|
28
|
+
rdoc.main = "README"
|
29
|
+
rdoc.rdoc_dir = "doc/html"
|
30
|
+
rdoc.title = "Prawn Documentation"
|
31
|
+
end
|
32
|
+
|
33
|
+
desc "run all examples, and then diff them against reference PDFs"
|
34
|
+
task :examples do
|
35
|
+
mkdir_p "output"
|
36
|
+
examples = Dir["examples/**/*.rb"]
|
37
|
+
t = Time.now
|
38
|
+
puts "Running Examples"
|
39
|
+
examples.each { |file| `ruby -Ilib #{file}` }
|
40
|
+
puts "Ran in #{Time.now - t} s"
|
41
|
+
`mv *.pdf output`
|
42
|
+
end
|
43
|
+
|
44
|
+
spec = Gem::Specification.new do |spec|
|
45
|
+
spec.name = "prawn-layout"
|
46
|
+
spec.version = PRAWN_LAYOUT_VERSION
|
47
|
+
spec.platform = Gem::Platform::RUBY
|
48
|
+
spec.summary = "An extension to Prawn that provides table support and other layout functionality"
|
49
|
+
spec.files = Dir.glob("{examples,lib,spec,vendor,data}/**/**/*") +
|
50
|
+
["Rakefile"]
|
51
|
+
spec.require_path = "lib"
|
52
|
+
|
53
|
+
spec.test_files = Dir[ "test/*_test.rb" ]
|
54
|
+
spec.has_rdoc = true
|
55
|
+
spec.extra_rdoc_files = %w{README}
|
56
|
+
spec.rdoc_options << '--title' << 'Prawn Documentation' <<
|
57
|
+
'--main' << 'README' << '-q'
|
58
|
+
spec.author = "Gregory Brown"
|
59
|
+
spec.email = " gregory.t.brown@gmail.com"
|
60
|
+
spec.rubyforge_project = "prawn"
|
61
|
+
spec.homepage = "http://prawn.majesticseacreature.com"
|
62
|
+
spec.description = <<END_DESC
|
63
|
+
An extension to Prawn that provides table support and other layout functionality
|
64
|
+
END_DESC
|
65
|
+
end
|
66
|
+
|
67
|
+
Rake::GemPackageTask.new(spec) do |pkg|
|
68
|
+
pkg.need_zip = true
|
69
|
+
pkg.need_tar = true
|
70
|
+
end
|
metadata
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sskirby-sskirby-prawn-layout
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Gregory Brown
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-04-08 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: An extension to Prawn that provides table support and other layout functionality
|
17
|
+
email: " gregory.t.brown@gmail.com"
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files: []
|
23
|
+
|
24
|
+
files:
|
25
|
+
- Rakefile
|
26
|
+
has_rdoc: true
|
27
|
+
homepage: http://prawn.majesticseacreature.com
|
28
|
+
post_install_message:
|
29
|
+
rdoc_options:
|
30
|
+
- --title
|
31
|
+
- Prawn Documentation
|
32
|
+
require_paths:
|
33
|
+
- lib
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: "0"
|
39
|
+
version:
|
40
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: "0"
|
45
|
+
version:
|
46
|
+
requirements: []
|
47
|
+
|
48
|
+
rubyforge_project: prawn
|
49
|
+
rubygems_version: 1.2.0
|
50
|
+
signing_key:
|
51
|
+
specification_version: 2
|
52
|
+
summary: An extension to Prawn that provides table support and other layout functionality
|
53
|
+
test_files: []
|
54
|
+
|