5074: Improve discovery document caching in Ruby SDK.
authorBrett Smith <brett@curoverse.com>
Tue, 27 Jan 2015 21:22:35 +0000 (16:22 -0500)
committerBrett Smith <brett@curoverse.com>
Wed, 28 Jan 2015 22:35:54 +0000 (17:35 -0500)
commitd2299e0187a0b8621a17c9819215489b979da150
treedc1e186044471b031ffcbbe0e0d59182b7ff74f6
parent687f94f0e17dca2639ce1704b18f483f2e6bedb3
5074: Improve discovery document caching in Ruby SDK.

* Report a warning if there's an error reading or parsing a cached
  discovery document.
* Cache discovery documents to a tempfile and rename, to reduce the
  chances that we'll write corrupted caches due to I/O errors.
* Make this extension a separate module that can be loaded by users
  like the CLI SDK.
* Tighten exception handling throughout.
sdk/ruby/arvados.gemspec
sdk/ruby/lib/arvados.rb
sdk/ruby/lib/arvados/google_api_client.rb [new file with mode: 0644]