parallel 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parallel.rb +8 -5
- data/lib/parallel/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: b3c6aee00aba4108047f5dd9ff76a2e74e434f1b
|
4
|
+
data.tar.gz: ba9fd463a747ec749b30e93ffa6f42af642dcc6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1120fd09ea83aae7eeee92405ade029d1331271abfeab51ab470406da750b16280efa457229b3f7cb2aa8468eb46a5763d661461f7a4a2250c13e4c523127f2
|
7
|
+
data.tar.gz: ec9e3cd619f647d3dd5a59ac451f0cafa7094bcb1d0f8670552ed5d4951f107f68dd3d294517927b279d5f9660e58005dae321a80209fef16e06f1f0a283605a
|
data/lib/parallel.rb
CHANGED
@@ -15,13 +15,10 @@ module Parallel
|
|
15
15
|
end
|
16
16
|
|
17
17
|
class UndumpableException < StandardError
|
18
|
+
attr_reader :backtrace
|
18
19
|
def initialize(original)
|
19
20
|
super "#{original.class}: #{original.message}"
|
20
|
-
@
|
21
|
-
end
|
22
|
-
|
23
|
-
def backtrace
|
24
|
-
@bracktrace
|
21
|
+
@backtrace = original.backtrace
|
25
22
|
end
|
26
23
|
end
|
27
24
|
|
@@ -30,6 +27,12 @@ module Parallel
|
|
30
27
|
class ExceptionWrapper
|
31
28
|
attr_reader :exception
|
32
29
|
def initialize(exception)
|
30
|
+
# Remove the bindings stack added by the better_errors gem,
|
31
|
+
# because it cannot be marshalled
|
32
|
+
if exception.instance_variable_defined? :@__better_errors_bindings_stack
|
33
|
+
exception.send :remove_instance_variable, :@__better_errors_bindings_stack
|
34
|
+
end
|
35
|
+
|
33
36
|
@exception =
|
34
37
|
begin
|
35
38
|
Marshal.dump(exception) && exception
|
data/lib/parallel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: michael@grosser.it
|