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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: affd48e6d6da883e726fc51daf2e9582d2b6718a
4
- data.tar.gz: e4371716afbd5a772e0a7226486c6511dd59add5
3
+ metadata.gz: 7cc990c4c96f2e28448f288b3ea4052eb8cd2f19
4
+ data.tar.gz: d8f664e45585821c6d59b68f9de7344505e5b415
5
5
  SHA512:
6
- metadata.gz: 5201474d2788cabeeb6337c1f5b6e530e14a6b28d886cd5d1856e85d64819fff4a398523ed85eacd751215c68d9ad0e7201f705c5119dce48bd909544a4423a5
7
- data.tar.gz: ad6753e518d81e9021af1a80918f2ec6cab287541fcef9628dd663c8333975737a86188b195174868e68f6a7ac5a1c14432885dae0dbb1808734de3e34f7ae78
6
+ metadata.gz: 02c7bbf79cef887b97c9a4dddf7c9d6ab6f7e4e6062b9fee26496e70d92e9895f0df9f11a1c9d4d3d3f3fece98e3d4bb3941b1aaa0e19d2890b7b2e474fa2e92
7
+ data.tar.gz: 57bf94f20257d81900009c565a064a1d1ab08b1c06a481883d7e028b8debc450739e2e0e33166c14ab7631653d2f807668da4a82486b343fbcfbef0ab468c8eb
data/.gitignore CHANGED
@@ -1,4 +1,3 @@
1
1
  pkg/
2
-
2
+ *.gem
3
3
  Gemfile.lock
4
-
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'opal-virtual-dom'
3
- s.version = '0.0.4'
3
+ s.version = '0.0.5'
4
4
  s.authors = [ 'Michał Kalbarczyk' ]
5
5
  s.email = 'fazibear@gmail.com'
6
6
  s.homepage = 'http://github.com/fazibear/opal-virtual-dom'
@@ -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['className'] = params.delete('class') if params.keys.include?('class')
60
- params
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
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-07-25 00:00:00.000000000 Z
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.5
76
+ rubygems_version: 2.4.8
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: virtual-dom wrapper for opal