3842: Keep::Manifest concatenates file information from manifest.
authorBrett Smith <brett@curoverse.com>
Wed, 10 Sep 2014 16:39:58 +0000 (12:39 -0400)
committerBrett Smith <brett@curoverse.com>
Wed, 10 Sep 2014 16:38:00 +0000 (12:38 -0400)
commitbafb417c531d6094697a13a7465313d1cc7c0bc9
tree320d380c5b8f20b5929ce75dea25a2e12953173c
parentb0440160e64caecbff160a26f62301dd15d84c7f
3842: Keep::Manifest concatenates file information from manifest.

The previous implementation failed to consider the possibility that
file information would be spread across multiple lines of a manifest.
This would cause, e.g., the same file to be yielded many times from
each_file.

This requirement makes it impossible to return file size information
without parsing the entire manifest.  Because of that, I have reworked
the Ruby SDK API so that method names are more consistent with their
performance characteristics.  I have also added some methods to do
some basic file existence checking that do not require parsing the
whole manifest.

Closes #3842.  Refs #3720.
apps/workbench/Gemfile
apps/workbench/Gemfile.lock
apps/workbench/app/controllers/collections_controller.rb
apps/workbench/app/models/collection.rb
sdk/ruby/lib/arvados/keep.rb
sdk/ruby/test/test_keep_manifest.rb
services/api/Gemfile
services/api/Gemfile.lock
services/api/app/models/collection.rb