file_pool 0.5.1 → 0.5.2

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.
@@ -1,3 +1,3 @@
1
1
  module FilePool
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.5.1
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-03-26 00:00:00 +02:00
18
+ date: 2018-10-19 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency