Shrine v1.3.0 Release Notes
Release Date: 2016-03-12 // about 8 years ago-
Add
<attachment>_cached?
and<attachment>_stored?
to migration_helpers plugin (@janko)๐ Fix
Attacher#backup_file
from backup plugin not to modify the given uploaded file (@janko)๐ Allow modifying UploadedFile's data hash after it's instantiated to change the UploadedFile (@janko)
๐ Deprecate the keep_location plugin (@janko)
Don't mutate context hash inside the uploader (@janko)
๐ Make extracted metadata accessible in
#generate_location
through:metadata
in context hash (@janko)๐ Don't require the "metadata" key when instantiating a
Shrine::UploadedFile
(@janko)Add
:include_error
option to remote_url for accessing download error in:error_message
block (@janko)Give different error message when file wasn't found or was too large in remote_url (@janko)
Rewind the IO after extracting MIME type with MimeMagic (@janko)
Rewind the IO after extracting image dimensions even when extraction failed (@kaapa)
Correctly infer the extension in
#generate_location
when uploading anUploadedFile
(@janko)Fix ability for errors to accumulate in data_uri and remote_url plugins when assigning mutliples to same record instance (@janko)
โฌ๏ธ Bump Down dependency to 2.0.0 in order to fix downloading URLs with "[]" characters (@janko)
โ Add
:namespace
option to pretty_location for including class namespace in location (@janko)๐ Don't include the namespace of the class in the location with the pretty_location plugin (@janko)
โ Remove aws-sdk deprecation warning when storage isn't instantiated with credentials (@reidab)
๐ Don't make uploaded file's metadata methods error when the corresponding key-value pair is missing (@janko)
Close the
UploadedFile
on upload only if it was previously opened, which doesn't happen on S3 COPY (@reidab)๐ Fix
NameError
when silencing "missing record" errors in backgrounding (@janko)