Shrine v1.4.0 Release Notes
Release Date: 2016-04-15 // about 8 years ago-
๐ Return "Content-Length" response header in download_endpoint plugin (@janko)
Make determine_mime_type and store_dimensions automatically rewind IO with custom analyzer (@janko)
Make
before_*
andafter_*
hooks happen before and afteraround_*
hooks (@janko)โช Rename restore_cached plugin to more accurate "restore_cached_data" (@janko)
Prevent errors when attempting to validate dimensions when they are absent (@janko)
โ Remove "thread" gem dependency in parallelize plugin (@janko)
โ Add
:filename
to data_uri plugin for generating filenames based on content type (@janko)๐ฒ Make user-defined hooks always happen around logging (@janko)
Add
:presign_location
to direct_upload for generating the key (@janko)Add separate
:presign_options
option for receiving presign options in direct_upload plugin (@janko)โ Add ability to generate fake presigns for storages which don't support them for testing (@janko)
๐ Change the
/:storage/:name
route to/:storage/upload
in direct_upload plugin (@janko)๐ Fix logger not being inherited in the logging plugin (@janko)
โ Add delete_promoted plugin for deleting promoted files after record has been updated (@janko)
๐ Allow passing phase to
Attacher#promote
and generalize promoting background job (@janko)๐ Close the cached file after extracting its metadata in restore_cached plugin (@janko)
๐ Rename delete_uploaded plugin to "delete_raw" to better explain its functionality (@janko)
Pass the SSL CA bundle to open-uri when downloading an S3 file (@janko)
โ Add
Attacher.dump
andAttacher.load
for writing custom background jobs with custom functionality (@janko)๐ Fix S3 URL erroring due to not being URL-encoded when
:host
option is used (@janko)โ Remove a tiny possibility of a race condition with backgrounding on subsequent updates (@janko)
โ Add
:delegate
option to migration_helpers for opting out of defining methods on the model (@janko)๐ Make logging plugin log number of both input and output files for processing (@janko)
๐ Make deleting backup work with backgrounding plugin (@janko)
Make storing backup happen after promoting instead of before (@janko)
โ Add
:fallbacks
to versions plugin for fallback URLs for versions which haven't finished processing (@janko)๐ Fix keep_files not to spawn a background job when file will not be deleted (@janko)