file_pool 0.3.9 → 0.3.10

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.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
- while inf.read(@@block_size, buf)
338
- result << cipher.update(buf)
339
- result.flush
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
@@ -1,3 +1,3 @@
1
1
  module FilePool
2
- VERSION = "0.3.9"
2
+ VERSION = "0.3.10"
3
3
  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: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 9
10
- version: 0.3.9
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-23 00:00:00 +02:00
18
+ date: 2018-10-24 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency