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.
@@ -1,3 +1,3 @@
1
1
  module FilePool
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 4
10
- version: 0.3.4
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-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