iso_latte 1.5 → 1.6
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 +6 -5
- data/lib/iso_latte/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74656872518b776b3d175d9ab8f327fa4da0fc23
|
4
|
+
data.tar.gz: b8922365509c5bdbc7f1166948993006cb877817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3e5a8635fd179976d36d9fbe9a03030a7a4a6703ade7f7028358da62423a97856ff1343ee60080b5da50b255829866ebf737a886ae7ae14ca897465ee45c3a7
|
7
|
+
data.tar.gz: 25b9d79ccc52abb68f475f7ef332bfa73e1163bd3c814273f5d2efbcf85f545574d286715a36c000d7d815b2770c0b3ab950f05ef2fe5fc5bba70e219364a35f
|
data/lib/iso_latte.rb
CHANGED
@@ -46,7 +46,8 @@ module IsoLatte
|
|
46
46
|
block.call
|
47
47
|
end
|
48
48
|
rescue StandardError => e
|
49
|
-
|
49
|
+
mex = marshal(e)
|
50
|
+
write_ex.write(mex)
|
50
51
|
write_ex.flush
|
51
52
|
write_ex.close
|
52
53
|
exit!(EXCEPTION_RAISED)
|
@@ -106,9 +107,9 @@ module IsoLatte
|
|
106
107
|
# Save us from the race condition where it exited just as we decided to kill it.
|
107
108
|
end
|
108
109
|
|
109
|
-
def self.marshal(e
|
110
|
+
def self.marshal(e)
|
110
111
|
begin
|
111
|
-
return Marshal.dump(e
|
112
|
+
return Marshal.dump(e)
|
112
113
|
rescue NoMethodError
|
113
114
|
rescue TypeError
|
114
115
|
end
|
@@ -116,14 +117,14 @@ module IsoLatte
|
|
116
117
|
begin
|
117
118
|
e2 = e.class.new(e.message)
|
118
119
|
e2.set_backtrace(e.backtrace)
|
119
|
-
return Marshal.dump(e2
|
120
|
+
return Marshal.dump(e2)
|
120
121
|
rescue NoMethodError
|
121
122
|
rescue TypeError
|
122
123
|
end
|
123
124
|
|
124
125
|
e3 = IsoLatte::Error.new("Marshalling error with: #{e.message}")
|
125
126
|
e3.set_backtrace(e.backtrace)
|
126
|
-
Marshal.dump(e3
|
127
|
+
Marshal.dump(e3)
|
127
128
|
end
|
128
129
|
|
129
130
|
class Error < StandardError; end
|
data/lib/iso_latte/version.rb
CHANGED