bookify 1.3.1 → 1.3.2
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/paragraph.rb +4 -2
- 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: e43a4bd9903c2e61207edafdbd780a62cbbe1852
|
4
|
+
data.tar.gz: 41386c9c902fe0655c76b162332402573bcf4ce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc1393531b3cda73004ee240ec3874e333988ae172bf5031d285c5a5967b73b8907d6c8c16a515b02c43043da8fa845b2254832837aeb0921a338b0f31874d92
|
7
|
+
data.tar.gz: 36d7ec1082fb090faeda97b756812b610404be09531f1259193ef39665363f80a24bf091957ee2f3c5602b474e6215096e9403446d1edd29670c62c6c8b2699b
|
@@ -1,8 +1,10 @@
|
|
1
1
|
module Bookify::Node
|
2
2
|
class Paragraph < Base
|
3
3
|
def render
|
4
|
-
if node.children.
|
5
|
-
|
4
|
+
if node.children.all? { |c| c.name.to_sym == :img || c.inner_html == "" }
|
5
|
+
node.children.select { |c| c.name.to_sym == :img }.each do |img|
|
6
|
+
SUBCLASSES[:img].render(img, pdf)
|
7
|
+
end
|
6
8
|
else
|
7
9
|
html = clean_html(node.inner_html)
|
8
10
|
font :primary
|
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: 1.3.
|
4
|
+
version: 1.3.2
|
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-12-
|
11
|
+
date: 2017-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|