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 of direct_upload plugin (@jonasheinrich)

    • Add :fallback_to_original option to versions plugin for disabling fallback to original file (@janko)

    • โž• Add #dimensions method to UploadedFile when loading store_dimensions plugin (@janko)

    • ๐Ÿ“‡ Make it possible to extract multiple metadata values at once with the add_metadata plugin (@janko)