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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be770934a7f9d0f34e1d506ae7d27f35c5e2ab1a3e5720f56e85fbebf1a02a71
4
- data.tar.gz: 63546e1889f0aabaf22cf605d0f415c294368732c018279281be18cb79209500
3
+ metadata.gz: 2633787e3fe5370fb9c661d09f7774f01e0bd8343d6f67e03ff0798827c7b19f
4
+ data.tar.gz: 39ca7d33dae070f59192b525c318c485f2e931a21c0b375be21ae350be65169a
5
5
  SHA512:
6
- metadata.gz: d23d1a99ad26576668e673da84c73d7cb1eaf376cb9e407084bbcb2d038efba67d01eda47307b82a6c4f50d77539e6378659d2320b0c0efa140644c04f18e712
7
- data.tar.gz: 2fca8fbf9bbfd2b765db8d9af73ae6ab16fa99654990bab026c2ca2802aba72fa8a1d63bb679fed65dfd1fbf9da0fa91ad6a2cbed423504343606817eca15363
6
+ metadata.gz: b44d6101629179c0ec3048b118a2bd2246bc3faf439452202b44dfa22ec09be3457db421b98a8713be47c4c0c68a5b21dfed86d092b0f90a50476172c267f542
7
+ data.tar.gz: cad6637488679332c98a498f6ef60a0fb288faa735bd3b0851c495b386534b2add7dd9eb38dab1457c4174c6e7576e5a3538261c7cedcddcfe812c28bdf71721
@@ -7,7 +7,7 @@ end
7
7
  require 'wunderbar/sinatra'
8
8
  require 'wunderbar/script'
9
9
 
10
- if RUBY_VERSION =~ /^1|^2\.0/
10
+ if RUBY_VERSION =~ /^1|^2\.[0-4]/
11
11
  require 'nokogumbo'
12
12
  else
13
13
  require 'nokogiri'
@@ -2,7 +2,7 @@ module Wunderbar
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 5
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -183,25 +183,25 @@ module Wunderbar
183
183
 
184
184
  proc = Proc.new do
185
185
  begin
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)
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
- 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
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
- if channel
200
- channel.complete = true
201
- sleep 5
202
- sleep 60 unless channel.connected or opts[:sync]
203
- channel.close
204
- end
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wunderbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby