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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2913ab6d448bc2bb31ee56bc8063381b95c9f8d1ffcb915754200aa703a7beea
4
- data.tar.gz: e4bbba8e09510e42a42df6451dfa2aa246f28dbf87d56b679bf4c37e7f58ea4c
3
+ metadata.gz: 65b42b04ff383bd444b79aec7a6b178c2beeaa7369f6fca36163d4abdaeaaa4e
4
+ data.tar.gz: 58e682ecc1c70e4068c8aa423a6c8b768b33fb63621542ef303685afa28c4c63
5
5
  SHA512:
6
- metadata.gz: bb40594767d7dbd970755b4f67726f8b58f2390bf6d4f3b5198a9faec8e5b00526bc46ba92793e1f37fca1bd17ba87c0821d8758a83a589cbc67f94e7aed5187
7
- data.tar.gz: 10c7a298c0906a8fb72947ed565145d85fb6924a45137fd6f03902933e7dd3e4d0604385254dbede532a30a86c4488bfedcecb71c6627bff2ccc9997d483831e
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
- puts 'inside render'
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 ('a: ' + a.inspect).debug if @debug
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.3.2
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
- YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTkwMjA5MTgwNTIyWhcN
15
- MjAwMjA5MTgwNTIyWjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
16
- cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCeBh0S
17
- e6ZmVJqv8ZDQahB2eJpij8z7HeiCzZbWZTsfkmlq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56lqaYhB7gVaGTaNV
36
- LCN6Py3/mF1OpkEeQj+JMKXZ
28
+ 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: 2019-02-09 00:00:00.000000000 Z
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.1
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.1
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.2
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