wunderbar 1.5.0 → 1.5.1
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 +1 -1
- data/lib/wunderbar/version.rb +1 -1
- data/lib/wunderbar/websocket.rb +17 -17
- 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: 2633787e3fe5370fb9c661d09f7774f01e0bd8343d6f67e03ff0798827c7b19f
|
4
|
+
data.tar.gz: 39ca7d33dae070f59192b525c318c485f2e931a21c0b375be21ae350be65169a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b44d6101629179c0ec3048b118a2bd2246bc3faf439452202b44dfa22ec09be3457db421b98a8713be47c4c0c68a5b21dfed86d092b0f90a50476172c267f542
|
7
|
+
data.tar.gz: cad6637488679332c98a498f6ef60a0fb288faa735bd3b0851c495b386534b2add7dd9eb38dab1457c4174c6e7576e5a3538261c7cedcddcfe812c28bdf71721
|
data/lib/wunderbar/render.rb
CHANGED
data/lib/wunderbar/version.rb
CHANGED
data/lib/wunderbar/websocket.rb
CHANGED
@@ -183,25 +183,25 @@ module Wunderbar
|
|
183
183
|
|
184
184
|
proc = Proc.new do
|
185
185
|
begin
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
186
|
+
channel = Wunderbar::Channel.new(port, buffer, opts[:locals])
|
187
|
+
if sock1
|
188
|
+
sock1.send('x',0)
|
189
|
+
sock1.close
|
190
|
+
end
|
191
|
+
channel.instance_eval(&block)
|
192
192
|
rescue Exception => exception
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
193
|
+
channel._ :type=>:stderr, :line=>exception.inspect
|
194
|
+
exception.backtrace.each do |frame|
|
195
|
+
next if Wunderbar::CALLERS_TO_IGNORE.any? {|re| frame =~ re}
|
196
|
+
channel._ :type=>:stderr, :line=>" #{frame}"
|
197
|
+
end
|
198
198
|
ensure
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
199
|
+
if channel
|
200
|
+
channel.complete = true
|
201
|
+
sleep 5
|
202
|
+
sleep 60 unless channel.connected or opts[:sync]
|
203
|
+
channel.close
|
204
|
+
end
|
205
205
|
end
|
206
206
|
end
|
207
207
|
|