dom_render 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/dom_render.rb +17 -3
- data.tar.gz.sig +0 -0
- metadata +27 -27
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65b42b04ff383bd444b79aec7a6b178c2beeaa7369f6fca36163d4abdaeaaa4e
|
4
|
+
data.tar.gz: 58e682ecc1c70e4068c8aa423a6c8b768b33fb63621542ef303685afa28c4c63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9342f7cefac51fce01c3518882c3ea1f4487e62da0a23de2d9beafeeccd9bd3fba3b4f4373d8ea66d230b73c01e01cce007cac280d173df652b4cf000fe44859
|
7
|
+
data.tar.gz: 912173a16a3456058cbca2ec777ff625a5cfa44bdecad848380596e53e3796d0499d727084a830bfba750ec09650910e2c50c450e912ea573415dfc867a9d3e6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/dom_render.rb
CHANGED
@@ -63,15 +63,18 @@ class DomRender
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def render(x)
|
66
|
-
|
66
|
+
|
67
|
+
puts 'inside render'.info if @debug
|
67
68
|
|
68
69
|
style = x.attributes.has_key?(:style) ? fetch_style(x.attributes) : {}
|
69
70
|
args = [x]
|
70
71
|
args.concat([x.attributes, style])
|
71
72
|
|
73
|
+
puts 'x.name: ' + x.name.to_sym.inspect if @debug
|
72
74
|
r = method(x.name.to_sym).call(*args)
|
75
|
+
puts 'r: ' + r.inspect if @debug
|
73
76
|
|
74
|
-
return unless r and r.length > 0
|
77
|
+
return [] unless r and r.length > 0
|
75
78
|
|
76
79
|
# jr051216 the following statement was commented out because it caused a
|
77
80
|
# bug when reading style attributes by exploding the coordinates array
|
@@ -84,6 +87,7 @@ class DomRender
|
|
84
87
|
|
85
88
|
def render_all(x)
|
86
89
|
|
90
|
+
puts 'x.children: ' + x.children.inspect if @debug
|
87
91
|
len = x.children.length - 1
|
88
92
|
|
89
93
|
r = x.children.map.with_index do |obj,i|
|
@@ -95,8 +99,10 @@ class DomRender
|
|
95
99
|
''
|
96
100
|
end
|
97
101
|
elsif obj.is_a? Rexle::Element
|
102
|
+
|
103
|
+
puts 'obj: ' + obj.inspect
|
98
104
|
a = render obj
|
99
|
-
puts ('
|
105
|
+
puts ('_a: ' + a.inspect).debug if @debug
|
100
106
|
|
101
107
|
a.length > 1 ? a : nil
|
102
108
|
end
|
@@ -107,6 +113,14 @@ class DomRender
|
|
107
113
|
|
108
114
|
end
|
109
115
|
|
116
|
+
def script(e, attributes, style)
|
117
|
+
[]
|
118
|
+
end
|
119
|
+
|
120
|
+
def style(e, attributes, style)
|
121
|
+
[]
|
122
|
+
end
|
123
|
+
|
110
124
|
def to_a(inspect: false, verbose: false)
|
111
125
|
|
112
126
|
if inspect or verbose then
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dom_render
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -11,31 +11,31 @@ cert_chain:
|
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9Z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
|
+
BgkqhkiG9w0BAQsFAAOCAYEAMhe+HKUvLOt3slpK+U7wQLCGxNN8Vcii+uq2bU/A
|
29
|
+
ponA/f1onQ5YzR1i33UHmiSHJq4rieZ6dhKOOaO70b3Qpd1EFfES93c4vrbMng7I
|
30
|
+
iXZlTPBL98PT9YPs4E48FNdE3Bmrx9vx57faZTebAGIf7hCEkf6vkfoc1npQuX6K
|
31
|
+
P/sn12C1kuOYVXFoQ0wwbRKY4ciam8KCOAV3WC/EGPl1G/JmXsPnLGUrpHvETt4i
|
32
|
+
HL2xlP90Kl77mtfgc4iJCdK+z1rgy7zCMbDKFXrCiUgRCVnlFh8KSf/pXG4Mj6YZ
|
33
|
+
2E5VIkQRRMeV9Iw++OAuZ3ncGyKWO0ZQ+Fv4+o5ecihcAjHnM4FiRB2xdE04nbT4
|
34
|
+
06O3ljtplA/YNiLVSVIxYGEQk03c48zHE0nvQQLvNErl0fw+P+/OeUCp0oygcurZ
|
35
|
+
UOXZAsx7FyG8daWTRpj9raifrl9pxOv/urh3FMd+j0twYVRBesRbBj3LKz7sRI6H
|
36
|
+
dDQhWjwG/xapk9uTGle5FfUF
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2020-05-11 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rexle
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
version: '1.5'
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 1.5.
|
49
|
+
version: 1.5.6
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
version: '1.5'
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 1.5.
|
59
|
+
version: 1.5.6
|
60
60
|
description:
|
61
61
|
email: james@jamesrobertson.eu
|
62
62
|
executables: []
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
rubygems_version: 3.0.
|
86
|
+
rubygems_version: 3.0.3
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Designed to render HTML
|
metadata.gz.sig
CHANGED
Binary file
|