snabberb 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/examples/rack/Gemfile.lock +4 -4
- data/examples/roda/Gemfile.lock +10 -10
- data/lib/snabberb/version.rb +1 -1
- data/opal/snabberb/component.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06f949bb8e21a1a4de373b27c14292b72c33e1a5c1bc99d92b287fa473c368e1
|
|
4
|
+
data.tar.gz: 8bd75c2e21a5c3873b9a020a1f1a3261b3e625e8a2581e0f6cea487edec95671
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19b903e934d164e7b84dc99518087d3bbadcc8a24e21b1912599ddf1fc7ea64daaab6e4427c82b56c87b7880425e19cd8f14a9ac0b376e08a0cb09893480cdaf
|
|
7
|
+
data.tar.gz: 5a2716bc72c460493d236c8eb8f6c544075bf256caf1629fa398e320690d65ba34c92ca8379214d31357ed4dd08d6f75bd2db5ad596f9370761c65e4463d0b1f
|
data/examples/rack/Gemfile.lock
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ../..
|
|
3
3
|
specs:
|
|
4
|
-
snabberb (1.
|
|
5
|
-
opal (
|
|
4
|
+
snabberb (1.5.0)
|
|
5
|
+
opal (>= 1.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
10
|
ast (2.4.2)
|
|
11
|
-
opal (1.
|
|
11
|
+
opal (1.2.0)
|
|
12
12
|
ast (>= 2.3.0)
|
|
13
13
|
parser (~> 3.0)
|
|
14
|
-
parser (3.0.
|
|
14
|
+
parser (3.0.2.0)
|
|
15
15
|
ast (~> 2.4.1)
|
|
16
16
|
rack (2.2.3)
|
|
17
17
|
webrick (1.7.0)
|
data/examples/roda/Gemfile.lock
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ../..
|
|
3
3
|
specs:
|
|
4
|
-
snabberb (1.
|
|
5
|
-
opal (
|
|
4
|
+
snabberb (1.5.0)
|
|
5
|
+
opal (>= 1.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
10
|
ast (2.4.2)
|
|
11
|
-
concurrent-ruby (1.1.
|
|
12
|
-
execjs (2.
|
|
13
|
-
libv8-node (15.14.0.
|
|
11
|
+
concurrent-ruby (1.1.9)
|
|
12
|
+
execjs (2.8.1)
|
|
13
|
+
libv8-node (15.14.0.1)
|
|
14
14
|
mini_racer (0.4.0)
|
|
15
15
|
libv8-node (~> 15.14.0.0)
|
|
16
|
-
opal (1.
|
|
16
|
+
opal (1.2.0)
|
|
17
17
|
ast (>= 2.3.0)
|
|
18
18
|
parser (~> 3.0)
|
|
19
|
-
opal-sprockets (1.0.
|
|
20
|
-
opal (>= 1.0, <
|
|
19
|
+
opal-sprockets (1.0.1)
|
|
20
|
+
opal (>= 1.0, < 2.0)
|
|
21
21
|
sprockets (~> 4.0)
|
|
22
22
|
tilt (>= 1.4)
|
|
23
|
-
parser (3.0.
|
|
23
|
+
parser (3.0.2.0)
|
|
24
24
|
ast (~> 2.4.1)
|
|
25
25
|
rack (2.2.3)
|
|
26
|
-
roda (3.
|
|
26
|
+
roda (3.46.0)
|
|
27
27
|
rack
|
|
28
28
|
sprockets (4.0.2)
|
|
29
29
|
concurrent-ruby (~> 1.0)
|
data/lib/snabberb/version.rb
CHANGED
data/opal/snabberb/component.rb
CHANGED
|
@@ -173,6 +173,7 @@ module Snabberb
|
|
|
173
173
|
props_is_hash = props.is_a?(Hash)
|
|
174
174
|
children = props if !children && !props_is_hash
|
|
175
175
|
props = {} unless props_is_hash
|
|
176
|
+
children = children.to_s if children.is_a?(String)
|
|
176
177
|
`snabbdom.h(#{element}, #{Native.convert(props)}, #{children})`
|
|
177
178
|
end
|
|
178
179
|
end
|