bookify 0.0.3 → 0.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1315e44054edb01d1a6574c97a44d0cfac2dc78b
4
- data.tar.gz: cb26f41624166abe8b7aaad0970a957d6acfe434
3
+ metadata.gz: 3df3e570ad270226931d79d665e00910a7bdf67f
4
+ data.tar.gz: 77f01e4cc113bd8d0ae9dc84b9a4171bbad26277
5
5
  SHA512:
6
- metadata.gz: 7b15bef0103c8b172cb46eeb14b458962ce52c4fc2519aaa9602358f8fe557ef60f722378ef38f9ee63cb98ce347b1a484aad897f2d0de17ef80404a3eefd397
7
- data.tar.gz: 29b78eb136b93c9ef0732dd1da04bd3c2bdbaac604ed13be26963cf7869c88f84104956b039b2d33adece50b04072269cafd038103a645992409320e16ab1e74
6
+ metadata.gz: abd8704451bfdd8150c2867a3f25c4d22c027b354608071a69c0132c9a08c6e20d1b5144010b47ea18f3fc1a88a78c200f8da86cee4e0a11a799a9f854bf49a3
7
+ data.tar.gz: 8d3d037ae2edce7ed38cf854f459aee1e6ac1e691adb24fb14fb6172165d930b83749ef9c26b987143eb9d1dfdbd39083fd241af231f67e8f4b119196aa155ff
@@ -3,12 +3,18 @@ module Bookify::Node
3
3
  def render
4
4
  font :primary
5
5
 
6
- bounding_box [bounds.left + 10, cursor], width: bounds.width - 10 do
7
- node.css("p").each do |p|
8
- text p.inner_html.strip, inline_format: true
9
- move_down 10
10
- end
6
+ data = node.css("p").map { |p| [" ", p.inner_html.strip] }
7
+
8
+ table(data) do
9
+ cells.inline_format = true
10
+ cells.borders = []
11
+ cells.padding = 5
12
+
13
+ column(0).borders = [:left]
14
+ column(0).border_width = 0.5
11
15
  end
16
+
17
+ move_down 10
12
18
  end
13
19
  end
14
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joey Schoblaska
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-05 00:00:00.000000000 Z
11
+ date: 2017-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri