rabidprawns 0.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rabidprawns.rb +7 -2
- data/lib/rabidprawns/columned_page.rb +2 -2
- data/lib/rabidprawns/simple_tables.rb +2 -2
- data/rabidprawns.gemspec +1 -1
- metadata +6 -6
data/lib/rabidprawns.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'prawn'
|
2
2
|
|
3
|
-
|
3
|
+
module RabidPrawns
|
4
4
|
class << self
|
5
5
|
# Returns array of available rabids for loading
|
6
6
|
def available_rabids
|
@@ -26,8 +26,13 @@ class RabidPrawns
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
module RabidPrawns
|
30
|
+
class Document < Prawn::Document
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
29
34
|
if(Prawn::VERSION > '0.6')
|
30
|
-
module
|
35
|
+
module RabidPrawns
|
31
36
|
class Document
|
32
37
|
def height_of(text, args)
|
33
38
|
unless(args.is_a?(Hash))
|
@@ -6,7 +6,7 @@ unless([].respond_to?(:sum))
|
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
|
-
module
|
9
|
+
module RabidPrawns
|
10
10
|
class Document
|
11
11
|
# tables:: Array of tables
|
12
12
|
# options:: Table options
|
@@ -473,4 +473,4 @@ class Document
|
|
473
473
|
h + (opts[:padding] * 2) + 2 # bit of safety to keep from busting the cell
|
474
474
|
end
|
475
475
|
end
|
476
|
-
end
|
476
|
+
end
|
data/rabidprawns.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabidprawns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 23
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.2
|
10
|
+
version: 1.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Roberts
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-18 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
requirements: []
|
64
64
|
|
65
65
|
rubyforge_project:
|
66
|
-
rubygems_version: 1.
|
66
|
+
rubygems_version: 1.6.2
|
67
67
|
signing_key:
|
68
68
|
specification_version: 3
|
69
69
|
summary: Rabid Prawns
|