Shrine v1.1.0 Release Notes
Release Date: 2015-12-26 // over 8 years ago-
๐ Rename the "background_helpers" plugin to "backgrounding" (@janko)
๐ Rename the
:subdirectory
option to:prefix
on FileSystem storage (@janko)โ Add download_endpoint plugin for downloading files uploaded to database storages and for securing downloads (@janko)
๐ Make
around_*
hooks return the result of the corresponding action (@janko)๐ Make the direct upload endpoint customizable, inheritable and inspectable (@janko)
โ Add upload_options plugin for dynamically generating storage-specific upload options (@janko)
๐ Allow the context hash to be modified (@janko)
๐ Fix extension not being returned for storages which remove it from ID (Flickr, SQL, GridFS) (@janko)
โ Delete underlying Tempfiles when closing an
UploadedFile
(@janko)๐ Fix background_helpers plugin not working with ActiveJob (@janko)
โ Add
UploadedFile#base64
to the data_uri plugin (@janko)โก๏ธ Optimize
UploadedData#data_uri
to not download the file and instantiate file contents string only once (@janko)๐ Allow adding S3 upload options dynamically per upload (@janko)
โ Add delete_uploaded plugin for automatically deleting files after they're uploaded (@janko)
Close an open file descriptor left after downloading a FileSystem file (@janko)
๐ Make
FileSystem#url
Windows compatible (@janko)Add
UploadedFile#content_type
alias to#mime_type
for better integration with upload libraries (@janko)Add a
UploadedFile#data_uri
method to the data_uri plugin (@janko)๐ Allow the data_uri plugin to accept "+" symbols in MIME type names (@janko)
๐ Make the data_uri plugin accept data URIs which aren't base64 encoded (@janko)
Close all IOs after uploading them (@janko)
๐ Allow passing a custom IO object to the Linter (@janko)
โ Add remove_invalid plugin for automatically deleting and deassigning invalid cached files (@janko)
Add
:max_size
option to the direct_upload plugin (@janko)0๏ธโฃ Move
Shrine#default_url
to default_url plugin (@janko)Enable
S3#multi_delete
to delete more than 1000 objects by batching deletes (@janko)โ Add the keep_location plugin for easier debugging or backups (@janko)
โ Add the backup plugin for backing up stored files (@janko)
Storages don't need to rewind the files after upload anymore (@janko)
๐ Make S3 presigns work when the
:endpoint
option is given (@NetsoftHoldings)๐ Fix parallelize plugin to always work with the moving plugin (@janko)
๐ Fix S3 storage to handle copying files that are larger than 5GB (@janko)
โ Add
:upload_options
to S3 storage for applying additional options on upload (@janko)โฌ๏ธ Reduce length of URLs generated with pretty_location plugin (@gshaw)