isomorfeus-react 16.10.7 → 16.10.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/top_level.rb +4 -3
- data/lib/react.rb +2 -2
- data/lib/react/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4e282b6791c9a739cde5039e051d9edc78d54fb39a8b6cd1e8c90f4d8f9007d
|
4
|
+
data.tar.gz: b8358d33d9cbb221829053bae6f84f33941a5007db32ea8dfef7e3d11cc0cd84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb43c54e03a5cba4a31f8ab3cff891b49e84a578e0e17956a48745196df6129b00e1d6e56d4bc9d65c86dab6d6df6def5d99e634eddef0bcdf9d31b69f13720f
|
7
|
+
data.tar.gz: 717d220b8d9bdf184a0632f979ecc84ef7e2ae3d211a7c1d9e28b78ea7610b7e4d4b05dce8978cd2e010ee59001271857be3186b12f8c805b8f36b9584039d12
|
data/lib/isomorfeus/top_level.rb
CHANGED
@@ -34,13 +34,14 @@ module Isomorfeus
|
|
34
34
|
end
|
35
35
|
begin
|
36
36
|
Isomorfeus::TopLevel.mount_component(component, props, root_element, hydrated)
|
37
|
-
rescue Exception
|
37
|
+
rescue Exception => e
|
38
38
|
@timeout_start = Time.now unless @timeout_start
|
39
39
|
if (Time.now - @timeout_start) < 10
|
40
40
|
`setTimeout(Opal.Isomorfeus.TopLevel['$mount!'], 100)`
|
41
41
|
else
|
42
|
-
`console.error("Unable to mount '" + #{component_name} + "'!")`
|
43
|
-
|
42
|
+
`console.error("Unable to mount '" + #{component_name} + "'! Error: " + #{e.message} + "!")`
|
43
|
+
`console.error(#{e.backtrace.join("\n")})`
|
44
|
+
end
|
44
45
|
end
|
45
46
|
end
|
46
47
|
end
|
data/lib/react.rb
CHANGED
@@ -46,9 +46,9 @@ module React
|
|
46
46
|
}
|
47
47
|
} else if (key[0] === 'a' && key.startsWith("aria_")) {
|
48
48
|
result[key.replace("_", "-")] = ruby_style_props['$[]'](key);
|
49
|
-
} else if (
|
49
|
+
} else if (key === "style") {
|
50
50
|
var val = ruby_style_props['$[]'](key);
|
51
|
-
if (typeof val
|
51
|
+
if (typeof val.$to_n === "function") { val = val.$to_n() }
|
52
52
|
result["style"] = val;
|
53
53
|
} else {
|
54
54
|
result[key.indexOf('_') > 0 ? Opal.React.lower_camelize(key) : key] = ruby_style_props['$[]'](key);
|
data/lib/react/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-react
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 16.10.
|
4
|
+
version: 16.10.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|