iso_latte 1.3 → 1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iso_latte.rb +17 -6
- data/lib/iso_latte/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: dbb60f8d6fa05d2ca859b6bdf9bc102ce520e124
|
4
|
+
data.tar.gz: ccecf26e78ef15774633aeddb7db7f9bd77a648e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee629ccfa2d5cfcdc40a1338f3203a244d1afd3dde8de0825eddc7973e376d26bd27466636c957dc9a47828e12d23714ee641965d3869c02206c24528557e5d9
|
7
|
+
data.tar.gz: 799d0881063a6c3c98a404f18f71f7da2b41854ba83d5e218b44eb6025bf92ca4ffbb663ae2234a473c88cc72af9baf9e88403f3a60a1bf0142c0699a97a0b34
|
data/lib/iso_latte.rb
CHANGED
@@ -46,8 +46,7 @@ module IsoLatte
|
|
46
46
|
block.call
|
47
47
|
end
|
48
48
|
rescue StandardError => e
|
49
|
-
|
50
|
-
Marshal.dump e, write_ex
|
49
|
+
self.marshal(e, write_ex)
|
51
50
|
write_ex.flush
|
52
51
|
write_ex.close
|
53
52
|
exit!(EXCEPTION_RAISED)
|
@@ -107,10 +106,22 @@ module IsoLatte
|
|
107
106
|
# Save us from the race condition where it exited just as we decided to kill it.
|
108
107
|
end
|
109
108
|
|
110
|
-
def self.
|
111
|
-
|
112
|
-
|
113
|
-
|
109
|
+
def self.marshal(e, io)
|
110
|
+
begin
|
111
|
+
Marshal.dump(e, io)
|
112
|
+
rescue NoMethodError
|
113
|
+
end
|
114
|
+
|
115
|
+
begin
|
116
|
+
e2 = e.class.new(e.message)
|
117
|
+
e2.set_backtrace(e.backtrace)
|
118
|
+
Marshal.dump(e2, io)
|
119
|
+
rescue NoMethodError
|
120
|
+
end
|
121
|
+
|
122
|
+
e3 = IsoLatte::Error.new("Marshalling error with: #{e.message}")
|
123
|
+
e3.set_backtrace(e.backtrace)
|
124
|
+
Marshal.dump(e3, io)
|
114
125
|
end
|
115
126
|
|
116
127
|
class Error < StandardError; end
|
data/lib/iso_latte/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iso_latte
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emcien Engineering
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-08
|
12
|
+
date: 2015-09-08 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: IsoLatte allows execution to be forked from the main process for safety
|
15
15
|
email:
|