Shrine v2.4.0 Release Notes

Release Date: 2016-10-11 // over 7 years ago
    • Add #convert_before_write and #convert_after_read on the Attacher for data attribute conversion (@janko)

    • Extract the <attachment>_data attribute name into Attacher#data_attribute (@janko)

    • ๐Ÿ‘Œ Support JSON and JSONB PostgreSQL columns with ActiveRecord (@janko)

    • ๐Ÿ›  Fix S3 storage not handling filenames with double quotes in Content-Disposition header (@janko)

    • โ†ช Work around aws-sdk failing with non-ASCII characters in Content-Disposition header (@janko)

    • Allow dynamically generating URL options in default_url_options plugin (@janko)

    • ๐Ÿ”Œ Don't run file validations when duplicating the record in copy plugin (@janko)

    • ๐Ÿ”Œ Don't use Storage#stream in download_endpoint plugin anymore, rely on Storage#open (@janko)

    • โœ‚ Remove explicitly unlinking Tempfiles returned by Storage#open (@janko)

    • ๐Ÿšš Move :host from first-class storage option to #url option on FileSystem and S3 storage (@janko)

    • Don't fail in FileSystem storage when attempting to delete a file that doesn't exist (@janko)

    • In UploadedFile#open handle the case when Storage#open raises an error (@janko)

    • ๐Ÿ”Œ Make the sequel plugin use less memory during transactions (@janko)

    • ๐Ÿ”Œ Use Roda's streaming plugin in download_endpoint for better EventMachine integration (@janko)

    • ๐Ÿ—„ Deprecate accepting a JSON string in Shrine.uploaded_file (@janko)

    • In S3 storage automatically write original filename to Content-Disposition header (@janko)

    • ๐Ÿ‘ Override #to_s in Shrine::Attachment for better introspection with puts (@janko)