file_pool 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/file_pool.rb +4 -5
- data/lib/file_pool/version.rb +1 -1
- metadata +4 -4
data/lib/file_pool.rb
CHANGED
@@ -330,14 +330,13 @@ module FilePool
|
|
330
330
|
# Crypt the file in the temp folder and copy after
|
331
331
|
cipher = create_cipher
|
332
332
|
result = Tempfile.new 'FilePool-encrypt'
|
333
|
-
|
333
|
+
result.sync = true
|
334
334
|
buf = ''
|
335
335
|
|
336
336
|
File.open(path) do |inf|
|
337
|
-
|
338
|
-
|
339
|
-
result.
|
340
|
-
result.fsync
|
337
|
+
size = 0
|
338
|
+
while inf.read(@@block_size, buf)
|
339
|
+
result << cipher.update(buf)
|
341
340
|
end
|
342
341
|
result << cipher.final
|
343
342
|
end
|
data/lib/file_pool/version.rb
CHANGED
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: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 10
|
10
|
+
version: 0.3.10
|
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-10-
|
18
|
+
date: 2018-10-24 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|