pasv_lib 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/lib/pasv_lib/version.rb +1 -1
- data/vendor/systemu.rb +17 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92881093b3dfe7566a15d203c8bb234271651c7db55c3b8dcb482cdc3be0dd61
|
4
|
+
data.tar.gz: ac9d8d2d24d822c0247061d1bd61ed0b4af8ed1b953b6a69940fd510d6f84605
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fb5080462dcf9a18cdd997f2e7862be0ec8db6bfd30fdfc8f0abb2bbd057542987b3843206a78f5399d80fed8ef212fc6ccef737c91ef95c481298868f0f304
|
7
|
+
data.tar.gz: daa030798be2f4ee29d3d4cd93c1d0ccd121cfe8cc79f1ed2d70461e4f3b6eacb5a040d33b9f7c87992732d9fc95019935bf16a9f740c8a253482f5d398dec99
|
data/.gitignore
CHANGED
data/lib/pasv_lib/version.rb
CHANGED
data/vendor/systemu.rb
CHANGED
@@ -48,6 +48,9 @@ class SystemUniversal
|
|
48
48
|
class Error < RuntimeError
|
49
49
|
end
|
50
50
|
|
51
|
+
class Eexist < Error
|
52
|
+
end
|
53
|
+
|
51
54
|
#
|
52
55
|
# constants
|
53
56
|
#
|
@@ -128,10 +131,19 @@ class SystemUniversal
|
|
128
131
|
buf = pipe.read
|
129
132
|
buf = "#{ line }#{ buf }"
|
130
133
|
e = Marshal.load buf
|
131
|
-
|
132
|
-
raise
|
134
|
+
|
135
|
+
# If Marshal load loaded a particular exception, raise it.
|
136
|
+
if Exception === e
|
137
|
+
raise e
|
138
|
+
else
|
139
|
+
raise
|
140
|
+
end
|
141
|
+
|
142
|
+
# regardless of the error raised, we want to raise SystemUniversal::Error so we have one thnig to catch.
|
143
|
+
rescue e
|
144
|
+
raise Error, "systemu: Error - process interrupted (original error: #{e.inspect})!\n#{ buf }\n"
|
133
145
|
rescue
|
134
|
-
raise Error "systemu: Error - process interrupted!\n#{ buf }\n"
|
146
|
+
raise Error, "systemu: Error - process interrupted!\n#{ buf }\n"
|
135
147
|
end
|
136
148
|
end
|
137
149
|
thread = new_thread cid, @block if @block
|
@@ -280,8 +292,8 @@ class SystemUniversal
|
|
280
292
|
|
281
293
|
begin
|
282
294
|
Dir.mkdir tmp
|
283
|
-
rescue Errno::EEXIST
|
284
|
-
raise
|
295
|
+
rescue Errno::EEXIST => e
|
296
|
+
raise Eexist, e.message if i >= max
|
285
297
|
next
|
286
298
|
end
|
287
299
|
|