thousand_island 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/thousand_island/components/base.rb +5 -0
- data/lib/thousand_island/components/footer.rb +5 -1
- data/lib/thousand_island/table_settings.rb +6 -1
- data/lib/thousand_island/version.rb +1 -1
- data/spec/thousand_island/components/footer_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73dfa3ef74fa1effeae7c2223f5d11a4675aed04
|
4
|
+
data.tar.gz: fa7d1b129d45ddf925fe661ba8e0ccd7d39851d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fe42d5cb6fbf9e90c2d86ffda051a3abd78344555b6592861247220de39607e8e21b18445d4cfb9f164d9b37fc0b09a81cd5708f2172c2afa61974262e78444
|
7
|
+
data.tar.gz: 6d9751ac454a5d1c3db76b16b8289cd9913bf59886d22b1804ad874b7c79093151844c6d943a943a9eb2fdba5523d7a66f7be13a559ec0766ab00e16e978fab0
|
data/README.md
CHANGED
@@ -305,7 +305,7 @@ A PrawnTable is very configurable. The goal of the Table component of **Thousand
|
|
305
305
|
### Table Settings
|
306
306
|
You can use the defaults, or create your own <code>TableSettings</code> class as below:
|
307
307
|
```ruby
|
308
|
-
class MyTableSettings
|
308
|
+
class MyTableSettings < ThousandIsland::TableSettings
|
309
309
|
def table_options
|
310
310
|
{...}
|
311
311
|
end
|
@@ -14,10 +14,14 @@ module ThousandIsland
|
|
14
14
|
pdf.bounding_box([0, box_height], width: pdf.bounds.width, height: box_height) do
|
15
15
|
col1
|
16
16
|
col2(&block)
|
17
|
-
col3
|
17
|
+
# col3
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
+
def after_render
|
22
|
+
col3
|
23
|
+
end
|
24
|
+
|
21
25
|
def col1_width
|
22
26
|
pdf.bounds.width * 0.15
|
23
27
|
end
|
@@ -16,7 +16,7 @@ module ThousandIsland
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def settings
|
19
|
-
|
19
|
+
deep_merger.merge_options(overrides, table_settings, default_options)
|
20
20
|
end
|
21
21
|
|
22
22
|
def default_options
|
@@ -53,6 +53,11 @@ module ThousandIsland
|
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
|
+
private
|
57
|
+
|
58
|
+
def deep_merger
|
59
|
+
@deep_merger ||= Utilities::DeepMerge::TableOptions
|
60
|
+
end
|
56
61
|
|
57
62
|
end
|
58
63
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thousand_island
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Weight
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prawn
|