Shrine v2.19.0 Release Notes
Release Date: 2019-07-18 // almost 5 years ago-
pretty_location
โ Allow specifying a different identifier fromid
(@00dav00)๐
data_uri
โ Soft-moveShrine::Plugins::DataUri::DataFile
toShrine::DataFile
(@janko)๐
rack_file
โ Soft-moveShrine::Plugins::RackFile::UploadedFile
toShrine::RackFile
(@janko)๐
backup
โ Deprecate the plugin over mirroring uploads via theinstrumentation
plugin (@janko)๐
moving
โ Deprecate the plugin in favor of the:move
option forFileSystem#upload
(@janko)๐
file_system
โ Add:move
option forFileSystem#upload
(@janko)๐
file_system
โ Don't fillsize
metadata if missing inFileSystem#upload
(@janko)๐
logging
โ Deprecate plugin in favour ofinstrumentation
(@janko)๐
instrumentation
โ Add plugin which sends events viaActiveSupport::Notifications
ordry-monitor
(@janko)๐
core
โ AddUploadedFile#[]
shorthand for accessing metadata (@janko)๐
add_metadata
โ Allow callingsuper
when overriding dynamically definedUploadedFile
methods (@janko)store_dimensions
โ Add:on_error
option for specifying the exception strategy (@janko)โ
store_dimensions
โ Print warnings when exception occurred while extracting dimensions (@janko)โ
core
โ AddShrine.logger
and make any warnings go through it (@janko)๐
copy
โ Deprecate the plugin (@janko)๐
core
โ Add ability to force metadata extraction by passingmetadata: true
toShrine#upload
(@janko)๐
core
โ Add ability to skip metadata extraction by passingmetadata: false
toShrine#upload
(@janko)๐
file_system
โ Deprecate:older_than
option forFileSystem#clear!
in favour of a block (@janko)file_system
โ Add the ability forFileSystem#clear!
to take a block (@janko)signature
โ AddShrine.signature
alias forShrine.calculcate_signature
(@janko)store_dimensions
โ AddShrine.dimensions
alias forShrine.extract_dimensions
(@janko)determine_mime_type
โ AddShrine.mime_type
alias forShrine.determine_mime_type
(@janko)validation_helpers
โ Add#validate_max_dimensions
,#validate_min_dimensions
, and#validate_dimensions
(@janko)validation_helpers
- Add#validate_size
,#validate_width
, and#validate_height
shorthands (@janko)validation_helpers
โ Add#validate_mime_type
and#validate_extension
aliases for inclusion (@janko)0๏ธโฃ
validation_helpers
โ Simplify default validation error messages (@janko)core
โ Allow registering storage objects under string keys (@janko)