dom_render 0.4.0 → 0.4.1
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.tar.gz.sig +0 -0
- data/lib/dom_render.rb +9 -11
- metadata +2 -2
- 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: e1b8a550981b1641a8219c576237838a4287a9d359450568bdbafe2a817c0bcb
|
4
|
+
data.tar.gz: 5b38fc7ad769585477c12b8e459e38799899884a386ac4874a4558587f148141
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a62df3febafd99a11dfe1e251645fcfcfb0c481a7768f76bf614547e211d74d52c31b083654d7fe2f3030baa83859f70ac827c13bdba117540c5b2840f4b103
|
7
|
+
data.tar.gz: 0f3d40b15a47651cbf5948e12dcfe469e65f485c876dd1435c5df165258383518b9b81ba6f003dcc6d40b2e720f6a12f4a66603799904efffaf267f637464a9c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dom_render.rb
CHANGED
@@ -67,11 +67,9 @@ class DomRender
|
|
67
67
|
puts 'inside render'.info if @debug
|
68
68
|
|
69
69
|
style = x.attributes.has_key?(:style) ? fetch_style(x.attributes) : {}
|
70
|
-
|
71
|
-
args.concat([x.attributes, style])
|
72
|
-
|
70
|
+
puts 'style: ' + style.inspect if @debug
|
73
71
|
puts 'x.name: ' + x.name.to_sym.inspect if @debug
|
74
|
-
r = method(x.name.to_sym).call(
|
72
|
+
r = method(x.name.to_sym).call(x, x.attributes.merge(style))
|
75
73
|
puts 'r: ' + r.inspect if @debug
|
76
74
|
|
77
75
|
return [] unless r and r.length > 0
|
@@ -113,22 +111,22 @@ class DomRender
|
|
113
111
|
|
114
112
|
end
|
115
113
|
|
116
|
-
def script(e, attributes
|
114
|
+
def script(e, attributes)
|
117
115
|
[]
|
118
116
|
end
|
119
117
|
|
120
|
-
def style(e, attributes
|
118
|
+
def style(e, attributes)
|
121
119
|
[]
|
122
120
|
end
|
123
121
|
|
124
122
|
def to_a(inspect: false, verbose: false)
|
125
123
|
|
126
|
-
if inspect or verbose then
|
127
|
-
|
128
|
-
|
129
|
-
else
|
124
|
+
#if inspect or verbose then
|
125
|
+
# scan @a
|
126
|
+
# puts
|
127
|
+
#else
|
130
128
|
@a
|
131
|
-
end
|
129
|
+
#end
|
132
130
|
|
133
131
|
end
|
134
132
|
|
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.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
UOXZAsx7FyG8daWTRpj9raifrl9pxOv/urh3FMd+j0twYVRBesRbBj3LKz7sRI6H
|
36
36
|
dDQhWjwG/xapk9uTGle5FfUF
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2020-
|
38
|
+
date: 2020-06-07 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rexle
|
metadata.gz.sig
CHANGED
Binary file
|