Shrine v2.19.0 Release Notes

Release Date: 2019-07-18 // over 2 years ago
    • pretty_location โ€“ Allow specifying a different identifier from id (@00dav00)

    • ๐Ÿšš data_uri โ€“ Soft-move Shrine::Plugins::DataUri::DataFile to Shrine::DataFile (@janko)

    • ๐Ÿšš rack_file โ€“ Soft-move Shrine::Plugins::RackFile::UploadedFile to Shrine::RackFile (@janko)

    • ๐Ÿ—„ backup โ€“ Deprecate the plugin over mirroring uploads via the instrumentation plugin (@janko)

    • ๐Ÿšš moving โ€“ Deprecate the plugin in favor of the :move option for FileSystem#upload (@janko)

    • ๐Ÿšš file_system โ€“ Add :move option for FileSystem#upload (@janko)

    • ๐Ÿ“‡ file_system โ€“ Don't fill size metadata if missing in FileSystem#upload (@janko)

    • ๐Ÿ—„ logging โ€“ Deprecate plugin in favour of instrumentation (@janko)

    • ๐Ÿ”Œ instrumentation โ€“ Add plugin which sends events via ActiveSupport::Notifications or dry-monitor (@janko)

    • ๐Ÿ“‡ core โ€“ Add UploadedFile#[] shorthand for accessing metadata (@janko)

    • ๐Ÿ“‡ add_metadata โ€“ Allow calling super when overriding dynamically defined UploadedFile 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 โ€“ Add Shrine.logger and make any warnings go through it (@janko)

    • ๐Ÿ—„ copy โ€“ Deprecate the plugin (@janko)

    • ๐Ÿ“‡ core โ€“ Add ability to force metadata extraction by passing metadata: true to Shrine#upload (@janko)

    • ๐Ÿ“‡ core โ€“ Add ability to skip metadata extraction by passing metadata: false to Shrine#upload (@janko)

    • ๐Ÿ—„ file_system โ€“ Deprecate :older_than option for FileSystem#clear! in favour of a block (@janko)

    • file_system โ€“ Add the ability for FileSystem#clear! to take a block (@janko)

    • signature โ€“ Add Shrine.signature alias for Shrine.calculcate_signature (@janko)

    • store_dimensions โ€“ Add Shrine.dimensions alias for Shrine.extract_dimensions (@janko)

    • determine_mime_type โ€“ Add Shrine.mime_type alias for Shrine.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)