file_pool 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -294,6 +294,8 @@ module FilePool
|
|
294
294
|
File.open(path) do |inf|
|
295
295
|
while inf.read(@@block_size, buf)
|
296
296
|
result << cipher.update(buf)
|
297
|
+
result.flush
|
298
|
+
result.fsync
|
297
299
|
end
|
298
300
|
result << cipher.final
|
299
301
|
end
|
@@ -326,6 +328,8 @@ module FilePool
|
|
326
328
|
File.open(path) do |inf|
|
327
329
|
while inf.read(@@block_size, buf)
|
328
330
|
output << decipher.update(buf)
|
331
|
+
output.flush
|
332
|
+
output.fsync
|
329
333
|
end
|
330
334
|
output << decipher.final
|
331
335
|
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: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 2
|
10
|
+
version: 0.5.2
|
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
|