wunderbar 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wunderbar/render.rb +10 -1
- data/lib/wunderbar/version.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b41fc0cdf18f4493457caaf8ea0be99429a7ef2b93f3725dc255c0be969c49c
|
4
|
+
data.tar.gz: 6f3c9aba7491dcf8c7a2a3e6f344b063b5a0901b54f17e736c6e96f1f410d83d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab2ffb039d0bbf017f27b280724ac84b13f3887c7e1eb9c903bb9870cd598da31b9df369a20bc6fb7881177ecc75e29fb5c93a4433e2ccfdcd5fea2fdd3bd728
|
7
|
+
data.tar.gz: 4035385caae931b83278a621855d98ceb60be387ecff963fb621712daeec443313f4a6671642388ed72f261b5be8ec420194a57bddb10253154c2a03bb43a3fd
|
data/lib/wunderbar/render.rb
CHANGED
@@ -30,7 +30,7 @@ class Wunderbar::ClientScriptNode < Wunderbar::ScriptNode
|
|
30
30
|
end
|
31
31
|
|
32
32
|
class Wunderbar::XmlMarkup
|
33
|
-
def render(container, &block)
|
33
|
+
def render(container, timeout: nil, &block)
|
34
34
|
csspath = Wunderbar::Node.parse_css_selector(container)
|
35
35
|
root = @node.root
|
36
36
|
|
@@ -124,6 +124,15 @@ class Wunderbar::XmlMarkup
|
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
127
|
+
# add timeout, if requested
|
128
|
+
#
|
129
|
+
# useful if the rendering itself is inherently synchronous, but may make
|
130
|
+
# use of a library routines that set up event handlers that will never fire.
|
131
|
+
#
|
132
|
+
if timeout
|
133
|
+
server += ";\nsetTimeout(() => {process.exit()}, #{timeout})"
|
134
|
+
end
|
135
|
+
|
127
136
|
# concatenate and execute scripts on server
|
128
137
|
if browserify
|
129
138
|
setup += requires.map {|key, value|
|
data/lib/wunderbar/version.rb
CHANGED
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wunderbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2019-06-07 00:00:00.000000000 Z
|
@@ -89,7 +89,7 @@ homepage: http://github.com/rubys/wunderbar
|
|
89
89
|
licenses:
|
90
90
|
- MIT
|
91
91
|
metadata: {}
|
92
|
-
post_install_message:
|
92
|
+
post_install_message:
|
93
93
|
rdoc_options: []
|
94
94
|
require_paths:
|
95
95
|
- lib
|
@@ -104,8 +104,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
|
-
rubygems_version: 3.
|
108
|
-
signing_key:
|
107
|
+
rubygems_version: 3.3.7
|
108
|
+
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: HTML Generator and CGI application support
|
111
111
|
test_files: []
|