Shrine v2.4.0 Release Notes
Release Date: 2016-10-11 // over 7 years ago-
Add
#convert_before_write
and#convert_after_read
on the Attacher for data attribute conversion (@janko)Extract the
<attachment>_data
attribute name intoAttacher#data_attribute
(@janko)๐ Support JSON and JSONB PostgreSQL columns with ActiveRecord (@janko)
๐ Fix S3 storage not handling filenames with double quotes in Content-Disposition header (@janko)
โช Work around aws-sdk failing with non-ASCII characters in Content-Disposition header (@janko)
Allow dynamically generating URL options in
default_url_options
plugin (@janko)๐ Don't run file validations when duplicating the record in
copy
plugin (@janko)๐ Don't use
Storage#stream
in download_endpoint plugin anymore, rely onStorage#open
(@janko)โ Remove explicitly unlinking Tempfiles returned by
Storage#open
(@janko)๐ Move
:host
from first-class storage option to#url
option on FileSystem and S3 storage (@janko)Don't fail in FileSystem storage when attempting to delete a file that doesn't exist (@janko)
In
UploadedFile#open
handle the case whenStorage#open
raises an error (@janko)๐ Make the
sequel
plugin use less memory during transactions (@janko)๐ Use Roda's streaming plugin in
download_endpoint
for better EventMachine integration (@janko)๐ Deprecate accepting a JSON string in
Shrine.uploaded_file
(@janko)In S3 storage automatically write original filename to
Content-Disposition
header (@janko)๐ Override
#to_s
inShrine::Attachment
for better introspection withputs
(@janko)