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 +4 -4
- data/app/models/switchman/shard_internal.rb +3 -5
- data/lib/switchman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f304aef7570bb1f9343ea6d41b7128ff22adf401
|
4
|
+
data.tar.gz: bbb189dda31a1ba8e286bbb880b39b493bd202cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/switchman/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2016-08-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|