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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65b42b04ff383bd444b79aec7a6b178c2beeaa7369f6fca36163d4abdaeaaa4e
4
- data.tar.gz: 58e682ecc1c70e4068c8aa423a6c8b768b33fb63621542ef303685afa28c4c63
3
+ metadata.gz: e1b8a550981b1641a8219c576237838a4287a9d359450568bdbafe2a817c0bcb
4
+ data.tar.gz: 5b38fc7ad769585477c12b8e459e38799899884a386ac4874a4558587f148141
5
5
  SHA512:
6
- metadata.gz: 9342f7cefac51fce01c3518882c3ea1f4487e62da0a23de2d9beafeeccd9bd3fba3b4f4373d8ea66d230b73c01e01cce007cac280d173df652b4cf000fe44859
7
- data.tar.gz: 912173a16a3456058cbca2ec777ff625a5cfa44bdecad848380596e53e3796d0499d727084a830bfba750ec09650910e2c50c450e912ea573415dfc867a9d3e6
6
+ metadata.gz: 9a62df3febafd99a11dfe1e251645fcfcfb0c481a7768f76bf614547e211d74d52c31b083654d7fe2f3030baa83859f70ac827c13bdba117540c5b2840f4b103
7
+ data.tar.gz: 0f3d40b15a47651cbf5948e12dcfe469e65f485c876dd1435c5df165258383518b9b81ba6f003dcc6d40b2e720f6a12f4a66603799904efffaf267f637464a9c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- args = [x]
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(*args)
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, style)
114
+ def script(e, attributes)
117
115
  []
118
116
  end
119
117
 
120
- def style(e, attributes, style)
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
- scan @a
128
- puts
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.0
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-05-11 00:00:00.000000000 Z
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