class OpenURI::Buffer
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.
@see winstonyw.com/2013/10/02/openuris_open_tempfile_and_stringio/
rubocop:disable Naming/ConstantName
Constants
- StringMax