jerryvos-prawn-layout 0.2.0.2

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.
Files changed (2) hide show
  1. data/Rakefile +67 -0
  2. metadata +55 -0
data/Rakefile ADDED
@@ -0,0 +1,67 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'rake/testtask'
4
+ require "rake/rdoctask"
5
+ require "rake/gempackagetask"
6
+
7
+ PRAWN_LAYOUT_VERSION = "0.2.0.2"
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( "lib/" )
28
+ rdoc.rdoc_dir = "doc/html"
29
+ rdoc.title = "Prawn Documentation"
30
+ end
31
+
32
+ desc "run all examples, and then diff them against reference PDFs"
33
+ task :examples do
34
+ mkdir_p "output"
35
+ examples = Dir["examples/**/*.rb"]
36
+ t = Time.now
37
+ puts "Running Examples"
38
+ examples.each { |file| `ruby -Ilib #{file}` }
39
+ puts "Ran in #{Time.now - t} s"
40
+ `mv *.pdf output`
41
+ end
42
+
43
+ spec = Gem::Specification.new do |spec|
44
+ spec.name = "prawn-layout"
45
+ spec.version = PRAWN_LAYOUT_VERSION
46
+ spec.platform = Gem::Platform::RUBY
47
+ spec.summary = "An extension to Prawn that provides table support and other layout functionality"
48
+ spec.files = Dir.glob("{examples,lib,spec,vendor,data}/**/**/*") +
49
+ ["Rakefile"]
50
+ spec.require_path = "lib"
51
+
52
+ spec.test_files = Dir[ "test/*_test.rb" ]
53
+ spec.has_rdoc = true
54
+ spec.rdoc_options << '--title' << 'Prawn Documentation'
55
+ spec.author = "Gregory Brown"
56
+ spec.email = " gregory.t.brown@gmail.com"
57
+ spec.rubyforge_project = "prawn"
58
+ spec.homepage = "http://prawn.majesticseacreature.com"
59
+ spec.description = <<END_DESC
60
+ An extension to Prawn that provides table support and other layout functionality
61
+ END_DESC
62
+ end
63
+
64
+ Rake::GemPackageTask.new(spec) do |pkg|
65
+ pkg.need_zip = true
66
+ pkg.need_tar = true
67
+ end
metadata ADDED
@@ -0,0 +1,55 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jerryvos-prawn-layout
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Gregory Brown
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-05-16 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
+ licenses:
29
+ post_install_message:
30
+ rdoc_options:
31
+ - --title
32
+ - Prawn Documentation
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: "0"
40
+ version:
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ version:
47
+ requirements: []
48
+
49
+ rubyforge_project: prawn
50
+ rubygems_version: 1.3.5
51
+ signing_key:
52
+ specification_version: 2
53
+ summary: An extension to Prawn that provides table support and other layout functionality
54
+ test_files: []
55
+