Shrine v2.5.0 Release Notes
Release Date: 2016-11-11 // over 7 years ago-
โ Add
Attacher.default_url
as the idiomatic way of declaring default URLs (@janko)๐ Allow uploaders themselves to accept Rack uploaded files when
rack_file
is loaded (@janko)Raise a descriptive error when two versions are pointing to the same IO object (@janko)
๐ Make
backgrounding
plugin work with plain model instances (@janko)๐ Make validation methods in
validation_helpers
plugin return whether validation succeeded (@janko)๐ Make extension matching case insensitive in
validation_helpers
plugin (@jonasheinrich)๐ Make
remove_invalid
plugin remove dirty state on attacher after removing invalid file (@janko)๐ฉ Raise error if
Shrine::UploadedFile
isn't initialized with valid data (@janko)๐ Accept
extension
parameter without the dot in presign endpoint ofdirect_upload
plugin (@jonasheinrich)Add
:fallback_to_original
option toversions
plugin for disabling fallback to original file (@janko)โ Add
#dimensions
method toUploadedFile
when loadingstore_dimensions
plugin (@janko)๐ Make it possible to extract multiple metadata values at once with the
add_metadata
plugin (@janko)