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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe0347d89e0d7dd0d17b7996c3b15513cc3503fa
4
- data.tar.gz: c969cc1840851d701189a435b011f246421b2a9a
3
+ metadata.gz: 74656872518b776b3d175d9ab8f327fa4da0fc23
4
+ data.tar.gz: b8922365509c5bdbc7f1166948993006cb877817
5
5
  SHA512:
6
- metadata.gz: 063d060ac3b77c262f1b6378f17d6325c099be224bd3958f2f98fb1940e543402b78618250b5e144c0b829d9e9434ee5551d095a72aaa925a3048869ed5113f7
7
- data.tar.gz: 2dce0040685a5f153287e632e62cde1946010b14f6c9ec4c1026d3e5ad81e26577eab83958c6699daae707d9d2ca4c02f6665b80ded5a3810a5ba7929dccc2a1
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
- self.marshal(e, write_ex)
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, io)
110
+ def self.marshal(e)
110
111
  begin
111
- return Marshal.dump(e, io)
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, io)
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, io)
127
+ Marshal.dump(e3)
127
128
  end
128
129
 
129
130
  class Error < StandardError; end
@@ -1,3 +1,3 @@
1
1
  module IsoLatte
2
- VERSION = "1.5"
2
+ VERSION = "1.6"
3
3
  end
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.5'
4
+ version: '1.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emcien Engineering