Class: OpenURI::Buffer

Inherits:
Object
  • Object
show all
Defined in:
lib/omnibus/core_extensions/open_uri.rb

Overview

Force Kernel#open to always return a Tempfile. This works around the fact that the OpenURI-provided Kernel#open returns a StringIO OR a Tempfile instances depending on the size of the data being downloaded. In the case of Omnibus we always want a Tempfile.

rubocop:disable Naming/ConstantName

Constant Summary collapse

StringMax =
0