google-api-ruby-client/lib/google/apis
Janko Marohnić 0eeb3ee9f9 Recover from non-Ranged responses without rewinding
Not all IO objects know how to #rewind themselves. For example, Ruby
pipes (returned by `IO.pipe`) do implement #rewind, but they will throw
an error if you try to call it.

  rd, wr = IO.pipe
  wr.rewind # Errno::ESPIPE: Illegal seek

But we don't need to rewind and overwrite the IO object if we didn't get
the Ranged response we expected, we could instead wait out the content
that has already been downloaded, and start appending again once we
reached where we left off. This is what this commit does.
2017-06-23 11:22:37 +02:00
..
core Recover from non-Ranged responses without rewinding 2017-06-23 11:22:37 +02:00
generator Bump version, regen APIs 2017-06-14 10:06:42 -07:00
errors.rb Update check_status to better support different types of errors (#517) 2017-02-01 23:20:19 -08:00
generator.rb Import refactored library. See MIGRATING.MD for details 2015-06-23 15:15:14 -07:00
options.rb Allow using v2 error messages + fix to_json signature to allow arbitrary args 2017-05-19 17:16:22 -06:00
version.rb Bump version, regen APIs 2017-06-14 10:06:42 -07:00