Shrine v1.1.0 Release Notes

Release Date: 2015-12-26 // over 8 years ago
    • ๐Ÿ”Œ Rename the "background_helpers" plugin to "backgrounding" (@janko)

    • ๐Ÿ“‡ Rename the :subdirectory option to :prefix on FileSystem storage (@janko)

    • โž• Add download_endpoint plugin for downloading files uploaded to database storages and for securing downloads (@janko)

    • ๐Ÿ‘‰ Make around_* hooks return the result of the corresponding action (@janko)

    • ๐Ÿ‘‰ Make the direct upload endpoint customizable, inheritable and inspectable (@janko)

    • โž• Add upload_options plugin for dynamically generating storage-specific upload options (@janko)

    • ๐Ÿ‘ Allow the context hash to be modified (@janko)

    • ๐Ÿ›  Fix extension not being returned for storages which remove it from ID (Flickr, SQL, GridFS) (@janko)

    • โœ‚ Delete underlying Tempfiles when closing an UploadedFile (@janko)

    • ๐Ÿ›  Fix background_helpers plugin not working with ActiveJob (@janko)

    • โž• Add UploadedFile#base64 to the data_uri plugin (@janko)

    • โšก๏ธ Optimize UploadedData#data_uri to not download the file and instantiate file contents string only once (@janko)

    • ๐Ÿ‘ Allow adding S3 upload options dynamically per upload (@janko)

    • โž• Add delete_uploaded plugin for automatically deleting files after they're uploaded (@janko)

    • Close an open file descriptor left after downloading a FileSystem file (@janko)

    • ๐Ÿ Make FileSystem#url Windows compatible (@janko)

    • Add UploadedFile#content_type alias to #mime_type for better integration with upload libraries (@janko)

    • Add a UploadedFile#data_uri method to the data_uri plugin (@janko)

    • ๐Ÿ‘ Allow the data_uri plugin to accept "+" symbols in MIME type names (@janko)

    • ๐Ÿ”Œ Make the data_uri plugin accept data URIs which aren't base64 encoded (@janko)

    • Close all IOs after uploading them (@janko)

    • ๐Ÿ‘ Allow passing a custom IO object to the Linter (@janko)

    • โž• Add remove_invalid plugin for automatically deleting and deassigning invalid cached files (@janko)

    • Add :max_size option to the direct_upload plugin (@janko)

    • 0๏ธโƒฃ Move Shrine#default_url to default_url plugin (@janko)

    • Enable S3#multi_delete to delete more than 1000 objects by batching deletes (@janko)

    • โž• Add the keep_location plugin for easier debugging or backups (@janko)

    • โž• Add the backup plugin for backing up stored files (@janko)

    • Storages don't need to rewind the files after upload anymore (@janko)

    • ๐Ÿ‘‰ Make S3 presigns work when the :endpoint option is given (@NetsoftHoldings)

    • ๐Ÿ›  Fix parallelize plugin to always work with the moving plugin (@janko)

    • ๐Ÿ›  Fix S3 storage to handle copying files that are larger than 5GB (@janko)

    • โž• Add :upload_options to S3 storage for applying additional options on upload (@janko)

    • โฌ‡๏ธ Reduce length of URLs generated with pretty_location plugin (@gshaw)