opal-virtual-dom 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -2
- data/opal-virtual-dom.gemspec +1 -1
- data/opal/virtual_dom/node_factory.rb +9 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cc990c4c96f2e28448f288b3ea4052eb8cd2f19
|
4
|
+
data.tar.gz: d8f664e45585821c6d59b68f9de7344505e5b415
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02c7bbf79cef887b97c9a4dddf7c9d6ab6f7e4e6062b9fee26496e70d92e9895f0df9f11a1c9d4d3d3f3fece98e3d4bb3941b1aaa0e19d2890b7b2e474fa2e92
|
7
|
+
data.tar.gz: 57bf94f20257d81900009c565a064a1d1ab08b1c06a481883d7e028b8debc450739e2e0e33166c14ab7631653d2f807668da4a82486b343fbcfbef0ab468c8eb
|
data/.gitignore
CHANGED
data/opal-virtual-dom.gemspec
CHANGED
@@ -14,7 +14,7 @@ module VirtualDOM
|
|
14
14
|
map mark menu meta meter
|
15
15
|
nav noscript
|
16
16
|
object ol optgroup option output
|
17
|
-
param pre progress
|
17
|
+
p param pre progress
|
18
18
|
q
|
19
19
|
rp rt ruby
|
20
20
|
s samp script section select small source span strong style sub summary sup
|
@@ -56,8 +56,14 @@ module VirtualDOM
|
|
56
56
|
|
57
57
|
def process_params(params)
|
58
58
|
if params && params.is_a?(Hash)
|
59
|
-
params
|
60
|
-
|
59
|
+
params.each do |k, v|
|
60
|
+
case k
|
61
|
+
when 'class'
|
62
|
+
params['className'] = params.delete('class')
|
63
|
+
when /^on/
|
64
|
+
params[k] = ->(e) { v.call(Native(e)) }
|
65
|
+
end
|
66
|
+
end
|
61
67
|
else
|
62
68
|
{}
|
63
69
|
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.5
|
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-
|
11
|
+
date: 2015-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
75
|
rubyforge_project:
|
76
|
-
rubygems_version: 2.4.
|
76
|
+
rubygems_version: 2.4.8
|
77
77
|
signing_key:
|
78
78
|
specification_version: 4
|
79
79
|
summary: virtual-dom wrapper for opal
|