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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f111cca8efc994a90bbfbd969ea76a15bd2b1a7
4
- data.tar.gz: e88e013e2ae11c3b67b41f628bf7273e6e4d20ea
3
+ metadata.gz: 7344ad56ece898e553c1189b17452ffb374deae8
4
+ data.tar.gz: e560a2a52146f435adf8a0a35802ceb15ee64a96
5
5
  SHA512:
6
- metadata.gz: 44f2eda3f7a0e236c61218f0b1b4c6547271d118276548b1c3895feaa39f54c15a3e6fe15359d318a0144c4e577a09b8243c148b2edb7e25c82b1fd7fad600ef
7
- data.tar.gz: 2def8797c05f166a3b88446899fa3e08d1a1aaf3c1e5b2060902f13e08f7cd51e34157c5ca9e99ff8cd76ea08432ec2c657469eca2ff488d7d48ee7b8c654cc2
6
+ metadata.gz: 38ea04be50cb93c26c33a597b7edbaa0f42798ab4ed599849cfeb2dce17a96dd4e21dc1589a3f5b7b450a816a2bd48eabddd3e8526060b9d39abc402737055c5
7
+ data.tar.gz: b1f0306e5b360e16c81fb0141fd0ad2d7d292569cc932ea4d4a41d1fe14bcf82b3fbe26b37b997d631a88d0164ac4e1364957380bc0f73ba4c52620354de8a3a
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'opal-virtual-dom'
3
- s.version = '0.0.2'
3
+ s.version = '0.0.3'
4
4
  s.authors = [ 'Michał Kalbarczyk' ]
5
5
  s.email = 'fazibear@gmail.com'
6
6
  s.homepage = 'http://github.com/fazibear/opal-virtual-dom'
@@ -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 << if name == 'text'
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.2
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-24 00:00:00.000000000 Z
11
+ date: 2015-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal