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 an UploadedFile (@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)