implement file format 2.0
authorLunar <lunar@anargeek.net>
Tue, 6 Mar 2012 23:30:26 +0000 (00:30 +0100)
committerLunar <lunar@anargeek.net>
Thu, 14 Mar 2013 09:12:08 +0000 (10:12 +0100)
commit9a0a408aa0e1cc8a0adebdb1dd62c399448f6ca8
tree1d0f2b17d391862d30f44577abc9c543d66b639d
parentbfe3a3ce4ba7c6897cd563009d0f7d28181b7536
implement file format 2.0

We want to be able to write files for which we will not be sure of the size
before all its content has been written. Easiest way to achieve this is two
have two files instead of one: the first for the encrypted file content, and
the second with metadata (in clear and encrypted, as before).

StoredFile is still able to read files with format 1.0. New files will be
written using the 2.0 format.
12 files changed:
README
lib/coquelicot/app.rb
lib/coquelicot/depot.rb
lib/coquelicot/stored_file.rb
spec/coquelicot/depot_spec.rb
spec/coquelicot/stored_file_spec.rb
spec/coquelicot_spec.rb
spec/fixtures/LICENSE-secret-2.0/reference [new file with mode: 0644]
spec/fixtures/LICENSE-secret-2.0/stored_file [new file with mode: 0644]
spec/fixtures/LICENSE-secret-2.0/stored_file.content [new file with mode: 0644]
spec/spec_helper.rb
tools/migrate_jyraphe.rb