prawn-flexible-table 0.1 → 0.1.1
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 +1 -1
- data/lib/prawn/flexible-table.rb +1 -1
- data/lib/prawn/flexible-table/cell.rb +0 -17
- metadata +12 -12
data/Rakefile
CHANGED
data/lib/prawn/flexible-table.rb
CHANGED
@@ -43,7 +43,7 @@ class Prawn::Document
|
|
43
43
|
raise Prawn::Errors::EmptyTable,
|
44
44
|
"data must be a non-empty, non-nil, two dimensional array of Prawn::Cells or strings"
|
45
45
|
end
|
46
|
-
Prawn::
|
46
|
+
Prawn::FlexibleTable.new(data,self,options).draw
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
@@ -1,22 +1,5 @@
|
|
1
1
|
module Prawn
|
2
2
|
|
3
|
-
class Document
|
4
|
-
# Builds and renders a FlexibleTable::Cell. A cell is essentially a
|
5
|
-
# special-purpose bounding box designed for flowing text within a bordered
|
6
|
-
# area. For available options, see FlexibleTable::Cell#new.
|
7
|
-
#
|
8
|
-
# Prawn::Document.generate("cell.pdf") do
|
9
|
-
# f_cell [100,500],
|
10
|
-
# :width => 200,
|
11
|
-
# :text => "The rain in Spain falls mainly on the plains"
|
12
|
-
# end
|
13
|
-
#
|
14
|
-
def f_cell(point, options={})
|
15
|
-
Prawn::FlexibleTable::Cell.new(
|
16
|
-
options.merge(:document => self, :point => point)).draw
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
3
|
class FlexibleTable
|
21
4
|
# A cell is a special-purpose bounding box designed to flow text within a
|
22
5
|
# bordered area. This is used by Prawn's Document::FlexibleTable implementation but
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prawn-flexible-table
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Jes\xC3\xBAs Garc\xC3\xADa S\xC3\xA1ez"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-26 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -22,24 +22,24 @@ extensions: []
|
|
22
22
|
extra_rdoc_files:
|
23
23
|
- README
|
24
24
|
files:
|
25
|
-
- examples/table_widths.rb
|
26
|
-
- examples/addressbook.csv
|
27
|
-
- examples/currency.csv
|
28
|
-
- examples/table_rowspan.rb
|
29
|
-
- examples/table_header_underline.rb
|
30
|
-
- examples/table_alignment.rb
|
31
25
|
- examples/table_colspan.rb
|
32
|
-
- examples/
|
33
|
-
- examples/fancy_table.rb
|
34
|
-
- examples/table.rb
|
26
|
+
- examples/table_rowspan.rb
|
35
27
|
- examples/cell.rb
|
28
|
+
- examples/fancy_table.rb
|
36
29
|
- examples/table_border_color.rb
|
30
|
+
- examples/currency.csv
|
31
|
+
- examples/table_header_color.rb
|
32
|
+
- examples/table_alignment.rb
|
33
|
+
- examples/table_widths.rb
|
34
|
+
- examples/table_header_underline.rb
|
35
|
+
- examples/addressbook.csv
|
36
|
+
- examples/table.rb
|
37
37
|
- lib/prawn/flexible-table.rb
|
38
38
|
- lib/prawn/flexible-table/cell.rb
|
39
39
|
- lib/prawn/errors.rb
|
40
|
-
- spec/page_layout_spec.rb
|
41
40
|
- spec/grid_spec.rb
|
42
41
|
- spec/table_spec.rb
|
42
|
+
- spec/page_layout_spec.rb
|
43
43
|
- spec/spec_helper.rb
|
44
44
|
- Rakefile
|
45
45
|
- README
|