bookify 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bookify/node/list.rb +5 -3
- 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: 9f26a767b8d02a68ce1e2313acf1dc61d8c2b128
|
4
|
+
data.tar.gz: abb81f7b8e6d8fab654afd8f6908205a17d11f39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c44b7dff9f884d33b12af0eea366c33b559a1bcdb52afade24a07a55b2973d4ad613611e36dd121c8e2a66d0ab70a2f71737a097724e232fb90c878dbccb3d0
|
7
|
+
data.tar.gz: a44dc63f3ee480a98c17785034b9ba01d5321f132a7ba6f61e2db0ff3407289cee6fad248b091db7fc7f90772e6bc202ea9f3bf6fead588843206746bacdff83
|
data/lib/bookify/node/list.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
module Bookify::Node
|
2
2
|
class List < Base
|
3
|
+
PADDING = 3
|
4
|
+
|
3
5
|
def render
|
4
6
|
font :primary
|
5
7
|
|
6
|
-
move_up
|
8
|
+
move_up PADDING
|
7
9
|
|
8
10
|
data = node.css("li").each_with_index.map do |li, i|
|
9
11
|
[bullet(i), li.inner_html.strip]
|
@@ -12,10 +14,10 @@ module Bookify::Node
|
|
12
14
|
table(data) do
|
13
15
|
cells.inline_format = true
|
14
16
|
cells.borders = []
|
15
|
-
cells.padding =
|
17
|
+
cells.padding = PADDING
|
16
18
|
end
|
17
19
|
|
18
|
-
move_down
|
20
|
+
move_down (10 - PADDING)
|
19
21
|
end
|
20
22
|
|
21
23
|
def bullet(index)
|
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.
|
4
|
+
version: 0.0.6
|
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-
|
11
|
+
date: 2017-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|