Shrine v2.7.0 Release Notes
Release Date: 2017-09-11 // over 6 years ago-
๐ Deprecate the
Shrine::DownloadEndpoint
constant overShrine.download_endpoint
(@janko)๐ Allow an additional
#headers
attribute on presigns and return it inpresign_endpoint
(@janko)Allow overriding
upload_endpoint
andpresign_endpoint
options per-endpoint (@janko)Add
:presign
and:rack_response
options topresign_endpoint
(@janko)Add
:upload
,:upload_context
and:rack_response
options toupload_endpoint
(@janko)Modify
upload_endpoint
andpresign_endpoint
to returntext/plain
error responses (@janko)โ Add
:request
upload context parameter inupload_endpoint
(@janko)๐ Change
:action
upload context parameter to:upload
inupload_endpoint
(@janko)Return
405 Method Not Allowed
on invalid HTTP verb inupload_endpoint
andpresign_endpoint
(@janko)Modify
upload_endpoint
andpresign_endpoint
to handle requests on the root URL (@janko)Allow creating Rack apps dynamically in
upload_endpoint
andpresign_endpoint
(@janko)Remove Roda dependency from
upload_endpoint
andpresign_endpoint
plugins (@janko)๐ Split
direct_upload
plugin intoupload_endpoint
andpresign_endpoint
plugins (@janko)๐ Support the new
aws-sdk-s3
gem inShrine::Storage::S3
(@lizdeika)Return
Cache-Control
header indownload_endpoint
to permanently cache responses (@janko)Return
404 Not Found
when uploaded file doesn't exist indownload_endpoint
(@janko)๐ Utilize uploaded file metadata when generating response in
download_endpoint
(@janko)๐ Fix deprecation warning when generating fake presign with query parameters (@janko)
๐ฉ Don't raise error in
file
andfilemagic
MIME type analyzer on empty IO (@ypresto)๐ Require
down
inremote_url
plugin even when a custom downloader is given (@janko)๐ Require
time
library inlogging
plugin to fixundefined method #iso8601 for Time
(@janko)๐ Allow validations defined on a superclass to be reused in a subclass (@printercu)
๐ Allow validation error messages to be an array of arguments for ActiveRecord (@janko)
๐ Allow model subclasses to override the attachment with a different uploader (@janko)
Accept
Attacher.new
options likestore:
andcache:
viaAttachment.new
(@ypresto)Raise
ArgumentError
when:bucket
option is nil inShrine::Storage::S3#initialize
(@janko)Don't wrap base64-encoded content into 60 columns in
UploadedFile#base64
and#data_uri
(@janko)Add
:mini_mime
option todetermine_mime_type
plugin for using the mini_mime gem (@janko)๐ Fix
data_uri
plugin raising an exception on Ruby 2.4.1 when using raw data URIs (@janko)Implement
Shrine::Storage::S3#open
using the aws-sdk gem instead ofDown.open
(@janko)๐ Un-deprecate
Shrine.uploaded_file
accepting file data as JSON string (@janko)Don't wrap base64-formatted signatures to 60 columns (@janko)
Don't add a newline at the end of the base64-formatted signature (@janko)