switchman 1.5.16 → 1.5.17

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
  SHA1:
3
- metadata.gz: 211d4cd37f40dcadb51a8b83fb6d3fd85462c664
4
- data.tar.gz: 70f7d6ec5c7b2f201398f22b7f0bcaf55805b368
3
+ metadata.gz: f304aef7570bb1f9343ea6d41b7128ff22adf401
4
+ data.tar.gz: bbb189dda31a1ba8e286bbb880b39b493bd202cf
5
5
  SHA512:
6
- metadata.gz: 9736326b9ee5c92bf46ac6fdecf789ab969bcfa697f1f42ec758f243b97801ad3e075dafeef8fbe89c377567f427b4f56d1b612d0accc3a66f1377970dc14708
7
- data.tar.gz: c40ac77605fb1d865c73fbf885ee438b1d1d66372eacdd4e107dff4bf99a099f519667f7b33d4ee546a5a1cdd18020544ff009c2a301ee495e61d53a7468a05a
6
+ metadata.gz: c5fd27c1f879019eefe1290c63f5d1353756f627810d80f1d6f506d0b48b7ff49765827e061d288d5bdd7a4d35d597ffb42c7931aaaa4429e4464cefb10644ee
7
+ data.tar.gz: e863f8aa792c7324eb912b74d8c0ee4ebabd6184aa4eda77910e7726e9a6e37b34e90a718fc670a59eba6eb9860efb614eb021f64e53359d2e3cc03060a2cfeb
@@ -255,8 +255,6 @@ module Switchman
255
255
  end
256
256
  # only one process; don't bother forking
257
257
  if scopes.length == 1 && subscopes.length == 1
258
- exception_pipe.first.close
259
- exception_pipe.last.close
260
258
  return with_each_shard(subscopes.first, categories, options) { yield }
261
259
  end
262
260
 
@@ -319,10 +317,10 @@ module Switchman
319
317
  # check for an exception; we only re-raise the first one
320
318
  exception_pipes.each do |exception_pipe|
321
319
  begin
322
- exception = Marshal.load exception_pipe.first
320
+ serialized_exception = exception_pipe.first.read
321
+ next if serialized_exception.empty?
322
+ exception = Marshal.load(serialized_exception)
323
323
  raise exception
324
- rescue EOFError
325
- # No exceptions
326
324
  ensure
327
325
  exception_pipe.first.close
328
326
  end
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.5.16"
2
+ VERSION = "1.5.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.16
4
+ version: 1.5.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-08-22 00:00:00.000000000 Z
13
+ date: 2016-08-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties