Shrine v1.4.0 Release Notes

Release Date: 2016-04-15 // about 8 years ago
    • ๐Ÿ”Œ Return "Content-Length" response header in download_endpoint plugin (@janko)

    • Make determine_mime_type and store_dimensions automatically rewind IO with custom analyzer (@janko)

    • Make before_* and after_* hooks happen before and after around_* hooks (@janko)

    • โช Rename restore_cached plugin to more accurate "restore_cached_data" (@janko)

    • Prevent errors when attempting to validate dimensions when they are absent (@janko)

    • โœ‚ Remove "thread" gem dependency in parallelize plugin (@janko)

    • โž• Add :filename to data_uri plugin for generating filenames based on content type (@janko)

    • ๐ŸŒฒ Make user-defined hooks always happen around logging (@janko)

    • Add :presign_location to direct_upload for generating the key (@janko)

    • Add separate :presign_options option for receiving presign options in direct_upload plugin (@janko)

    • โž• Add ability to generate fake presigns for storages which don't support them for testing (@janko)

    • ๐Ÿ”„ Change the /:storage/:name route to /:storage/upload in direct_upload plugin (@janko)

    • ๐Ÿ›  Fix logger not being inherited in the logging plugin (@janko)

    • โž• Add delete_promoted plugin for deleting promoted files after record has been updated (@janko)

    • ๐Ÿ‘ Allow passing phase to Attacher#promote and generalize promoting background job (@janko)

    • ๐Ÿ“‡ Close the cached file after extracting its metadata in restore_cached plugin (@janko)

    • ๐Ÿ”Œ Rename delete_uploaded plugin to "delete_raw" to better explain its functionality (@janko)

    • Pass the SSL CA bundle to open-uri when downloading an S3 file (@janko)

    • โž• Add Attacher.dump and Attacher.load for writing custom background jobs with custom functionality (@janko)

    • ๐Ÿ›  Fix S3 URL erroring due to not being URL-encoded when :host option is used (@janko)

    • โœ‚ Remove a tiny possibility of a race condition with backgrounding on subsequent updates (@janko)

    • โž• Add :delegate option to migration_helpers for opting out of defining methods on the model (@janko)

    • ๐Ÿ”Œ Make logging plugin log number of both input and output files for processing (@janko)

    • ๐Ÿ”Œ Make deleting backup work with backgrounding plugin (@janko)

    • Make storing backup happen after promoting instead of before (@janko)

    • โž• Add :fallbacks to versions plugin for fallback URLs for versions which haven't finished processing (@janko)

    • ๐Ÿ›  Fix keep_files not to spawn a background job when file will not be deleted (@janko)