Shrine v2.14.0 Release Notes
Release Date: 2018-12-27 // over 5 years ago-
โ Add
tempfile
plugin for easier reusing of the same uploaded file copy on disk (@janko)๐ Don't re-open the uploaded file if it's already open in
refresh_metadata
plugin (@janko)โฌ๏ธ Drop support for MRI 2.1 and 2.2 (@janko)
๐ Fix
backgrounding
not working when default storage was changed withAttachment.new
(@janko)๐ Don't clear existing metadata definitions when loading
add_metadata
plugin (@janko)๐ Don't clear existing processing blocks when loading
processing
plugin (@janko)๐ Deprecate automatic escaping of
:content_disposition
inShrine::Storage::S3
(@janko)Use
content_disposition
gem inShrine::Storage::S3
andrack_response
plugin (@janko)๐ Make
FileSystem#clear!
work correctly when the storage directory is a symlink (@janko)๐ Don't abort promotion in
backgrounding
plugin when original metadata was updated (@janko)๐ Don't mutate the
UploadedFile
data hash inrefresh_metadata
plugin (@janko)๐ Deprecate
Storage::S3#download
(@janko)Stop using
Storage#download
inUploadedFile#download
for peformance (@janko)โ Remove
#download
from the Shrine storage specification (@janko)๐ Keep
context
argument in#extract_metadata
optional after loadingadd_metadata
plugin (@janko)๐ Include metadata key with
nil
value whennil
is returned inadd_metadata
block (@janko)Strip query params in upload location when re-uploading from
shrine-url
storage (@jrochkind)๐ Inline Base plugin into core classes, extract them to separate files (@printercu)
๐ Make
rack_response
plugin work withRack::Sendfile
forFileSystem
storage (@janko)โ Add
:filename
and:type
options torack_response
plugin (@janko)Add
:host
option toUploadedFile#download_url
indownload_endpoint
plugin (@janko)โ Add support for client-side encryption to S3 storage (@janko)
๐จ Don't look up the attachment class in each new model instance (@printercu)
๐ Allow
Attacher#cached?
andAttacher#stored?
to take anUploadedFile
object (@jrochkind)๐ Allow assigning a filename to the
DataFile
object inShrine.data_uri
(@janko)๐ Don't strip media type parameters for the
DataFile
object indata_uri
plugin (@janko)Add
:content_type
analyzer toShrine.mime_type_analyzers
indetermine_mime_type
plugin (@janko)Rename
:default
analyzer to:content_type
indetermine_mime_type
plugin (@janko)Don't display a warning when
determine_mime_type
plugin is loaded with:default
analyzer (@janko)Exclude media type parameters when copying
IO#content_type
intomime_type
metadata (@janko)โ Remove superfluous
#head_object
S3 API call inS3#download
(@janko)๐ Make
S3#download
andS3#open
work with server side encryption options (@janko)๐ Make previously extracted metadata available under
:metadata
inadd_metadata
plugin (@jrochkind)๐ Use a guard raise cause for
bucket
argument in S3 for an appropriate error message (@ardecvz)