AbstractAdapter wasn't delegating `binmode` or `binmode?` to the underlying @tempfile object. `binmode` is useful for cases where the Adapter object gets handed on to another library expecting an `IO` object holding image data. We ran into this with Prawn and people using `prawnto` in conjunction with Paperclip. Prawn wants to ensure the `IO` is in binmode for embedding the image data.
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
abstract_adapter_test.rb | Loading commit data... | |
attachment_adapter_test.rb | Loading commit data... | |
data_uri_adapter_test.rb | Loading commit data... | |
empty_string_adapter_test.rb | Loading commit data... | |
file_adapter_test.rb | Loading commit data... | |
http_url_proxy_adapter_test.rb | Loading commit data... | |
identity_adapter_test.rb | Loading commit data... | |
nil_adapter_test.rb | Loading commit data... | |
registry_test.rb | Loading commit data... | |
stringio_adapter_test.rb | Loading commit data... | |
uploaded_file_adapter_test.rb | Loading commit data... | |
uri_adapter_test.rb | Loading commit data... |