file_pool 0.3.4 → 0.3.5
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.
- data/lib/file_pool/version.rb +1 -1
- data/lib/file_pool.rb +4 -0
- metadata +4 -4
data/lib/file_pool/version.rb
CHANGED
data/lib/file_pool.rb
CHANGED
|
@@ -293,6 +293,8 @@ module FilePool
|
|
|
293
293
|
File.open(path) do |inf|
|
|
294
294
|
while inf.read(@@block_size, buf)
|
|
295
295
|
result << cipher.update(buf)
|
|
296
|
+
result.flush
|
|
297
|
+
result.fsync
|
|
296
298
|
end
|
|
297
299
|
result << cipher.final
|
|
298
300
|
end
|
|
@@ -324,6 +326,8 @@ module FilePool
|
|
|
324
326
|
File.open(path) do |inf|
|
|
325
327
|
while inf.read(@@block_size, buf)
|
|
326
328
|
output << decipher.update(buf)
|
|
329
|
+
output.flush
|
|
330
|
+
output.fsync
|
|
327
331
|
end
|
|
328
332
|
output << decipher.final
|
|
329
333
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: file_pool
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 25
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 0.3.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.3.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- "robokopp (Robert Anni\xC3\xA9s)"
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2018-
|
|
18
|
+
date: 2018-10-19 00:00:00 +02:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|