opal-virtual-dom 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/opal-virtual-dom.gemspec +1 -1
- data/opal/virtual_dom/node_factory.rb +3 -5
- 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: 7344ad56ece898e553c1189b17452ffb374deae8
|
4
|
+
data.tar.gz: e560a2a52146f435adf8a0a35802ceb15ee64a96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38ea04be50cb93c26c33a597b7edbaa0f42798ab4ed599849cfeb2dce17a96dd4e21dc1589a3f5b7b450a816a2bd48eabddd3e8526060b9d39abc402737055c5
|
7
|
+
data.tar.gz: b1f0306e5b360e16c81fb0141fd0ad2d7d292569cc932ea4d4a41d1fe14bcf82b3fbe26b37b997d631a88d0164ac4e1364957380bc0f73ba4c52620354de8a3a
|
data/opal-virtual-dom.gemspec
CHANGED
@@ -11,12 +11,10 @@ module VirtualDOM
|
|
11
11
|
def method_missing(name, *args, &block)
|
12
12
|
if @self.send(:respond_to?, name)
|
13
13
|
@self.send(name, *args, &block)
|
14
|
+
elsif name == 'text'
|
15
|
+
@nodes << VirtualTextNode.new(args.first).vnode
|
14
16
|
elsif HTML_TAGS.include?(name)
|
15
|
-
@nodes <<
|
16
|
-
VirtualTextNode.new(args.first).vnode
|
17
|
-
else
|
18
|
-
VirtualNode.new(name, params(args), childrens(args, block)).vnode
|
19
|
-
end
|
17
|
+
@nodes << VirtualNode.new(name, params(args), childrens(args, block)).vnode
|
20
18
|
else
|
21
19
|
super
|
22
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-virtual-dom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michał Kalbarczyk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|