bookify 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bookify/node/list.rb +5 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f35a3c9a5590e74718158c155393f90d3fdf092
4
- data.tar.gz: 00903c46e7d64924b3ff9a67079ca9ac18eaec31
3
+ metadata.gz: 9f26a767b8d02a68ce1e2313acf1dc61d8c2b128
4
+ data.tar.gz: abb81f7b8e6d8fab654afd8f6908205a17d11f39
5
5
  SHA512:
6
- metadata.gz: a7c71a012bc3d80e7c9896d1a3047eb6caac2bb6c86c45a1a8be5fa027cb92496908c2a77a37f5700ed4b6ec1e36c8850c15e9a899206ae8e0a5d952c0596790
7
- data.tar.gz: 168147b07a52b275e920d20aefeb4c40fde655ed3ce0e297e9cdfdcd8a93fc269fb8f2c052f62ad7dea88046beb0e0ab9ab162deeffafacf1e9ffa0ece60b0d3
6
+ metadata.gz: 6c44b7dff9f884d33b12af0eea366c33b559a1bcdb52afade24a07a55b2973d4ad613611e36dd121c8e2a66d0ab70a2f71737a097724e232fb90c878dbccb3d0
7
+ data.tar.gz: a44dc63f3ee480a98c17785034b9ba01d5321f132a7ba6f61e2db0ff3407289cee6fad248b091db7fc7f90772e6bc202ea9f3bf6fead588843206746bacdff83
@@ -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 5
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 = 5
17
+ cells.padding = PADDING
16
18
  end
17
19
 
18
- move_down 5
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.5
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-07 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri