All Versions
45
Latest Version
Avg Release Cycle
65 days
Latest Release
1045 days ago

Changelog History
Page 3

  • v2.12.0 Changes

    August 22, 2018
    • Ignore nil values when assigning files from a remote URL (@janko)

    • Ignore nil values when assigning files from a data URI (@GeekOnCoffee)

    • Raise Shrine::Error when child process failed to be spawned in :file MIME type analyzer (@hmistry)

    • ๐Ÿ”Œ Use the appropriate unit in error messages of filesize validators in validation_helpers plugin (@hmistry)

    • ๐Ÿ›  Fix subclassing not inheriting storage resolvers from superclass in dynamic_storage plugin (@janko)

    • ๐Ÿ—„ Un-deprecate assigning cached versions (@janko)

    • Add Attacher#assign_remote_url which allows dynamically passing downloader options (@janko)

    • ๐Ÿ”Œ Deprecate :storages option in download_endpoint plugin in favour of UploadedFile#download_url (@janko)

    • โž• Add :redirect option to download_endpoint plugin for redirecting to the uploaded file (@janko)

    • ๐Ÿ›  Fix encoding issues when uploading IO object with unknown size to S3 (@janko)

    • Accept additional File.open arguments in FileSystem#open (@janko)

    • โž• Add :rewindable option to S3#open for disabling caching of read content to disk (@janko)

    • ๐Ÿ‘‰ Make UploadedFile#open always open a new IO object and close the previous one (@janko)

  • v2.11.0 Changes

    April 28, 2018
    • โž• Add Shrine.with_file for temporarily converting an IO-like object into a file (@janko)

    • โž• Add :method value to the S3#presign result indicating the HTTP verb that should be used (@janko)

    • โž• Add ability to specify method: :put in S3#presign to generate data for PUT upload (@janko)

    • Return a Struct instead of a Aws::S3::PresignedPost object in S3#presign (@janko)

    • ๐Ÿ—„ Deprecate Storage#presign returning a custom object in presign_endpoint (@janko)

    • ๐Ÿ‘ Allow Storage#presign to return a Hash in presign_endpoint (@janko)

    • โž• Add ability to specify upload checksum in upload_endpoint plugin (@janko)

    • ๐Ÿ’Ž Don't raise exception in :mini_magick and :ruby_vips dimensions analyzers when image is invalid (@janko)

    • Don't remove bucket name from S3 URL path with :host when :force_path_style is set (@janko)

    • Correctly determine MIME type from extension of empty files (@janko)

    • Modify UploadedFile#download not to reopen the uploaded file if it's already open (@janko)

    • โž• Add UploadedFile#stream for streaming content into a writable object (@janko)

    • ๐Ÿ”Œ Deprecate direct_upload plugin in favor of upload_endpoint and presign_endpoint plugins (@janko)

  • v2.10.0 Changes

    March 28, 2018
    • Add :fastimage analyzer to determine_mime_type plugin (@mokolabs)

    • ๐Ÿ“‡ Keep download endpoint URL the same regardless of metadata ordering (@MSchmidt)

    • Remove :rack_mime extension inferrer from the infer_extension plugin (@janko)

    • ๐Ÿ‘ Allow UploadedFile#download to accept a block for temporary file download (@janko)

    • Add :ruby_vips analyzer to store_dimensions plugin (@janko)

    • Add :mini_magick analyzer to store_dimensions plugin (@janko)

    • ๐ŸŒฒ Soft-rename :heroku logging format to :logfmt (@janko)

    • ๐Ÿ—„ Deprecate Shrine::IO_METHODS constant (@janko)

    • Don't require IO size to be known on upload (@janko)

    • Inherit the logger on subclassing Shrine and make it shared across subclasses (@hmistry)

  • v2.9.0 Changes

    January 27, 2018
    • ๐Ÿ‘Œ Support arrays of files in versions plugin (@janko)

    • Added :marcel analyzer to determine_mime_type plugin (@janko)

    • ๐Ÿ”Œ Deprecate :filename option of the data_uri plugin in favour of the new infer_extension plugin (@janko)

    • โž• Add infer_extension plugin for automatically deducing upload location extension from MIME type (@janko)

    • 0๏ธโƒฃ Apply default storage options passed via Attachment.new in backgrounding plugin (@janko)

    • ๐Ÿ›  Fix S3 storage replacing spaces in filename with "+" symbols (@ndbroadbent)

    • ๐Ÿ—„ Deprecate the multi_delete plugin (@janko)

    • ๐Ÿ‘ Allow calling UploadedFile#open without passing a block (@hmistry)

    • โœ‚ Delete tempfiles in case of errors in UploadedFile#download and Storage::S3#download (@hmistry)

    • Freeze all string literals (@hmistry)

    • ๐Ÿ‘ Allow passing options to Model#<attachment>_attacher for overriding Attacher options (@janko)

  • v2.8.0 Changes

    October 11, 2017
    • Expand relative directory paths when initializing Storage::FileSystem (@janko)

    • ๐Ÿ›  Fix logging plugin erroring on :json format when ActiveSupport is loaded (@janko)

    • ๐Ÿ‘ Allow Storage::S3#clear! to take a block for specifying which objects to delete (@janko)

    • ๐Ÿ‘‰ Make :filemagic analyzer close the FileMagic descriptor even in case of exceptions (@janko)

    • ๐Ÿ‘‰ Make :file analyzer work for potential file types which have magic bytes farther than 256 KB (@janko)

    • ๐Ÿ—„ Deprecate aws-sdk 2.x in favour of the new aws-sdk-s3 gem (@janko)

    • Modify UploadedFile#extension to always return the extension in lowercase format (@janko)

    • Downcase the original file extension when generating an upload location (@janko)

    • ๐Ÿ‘ Allow specifying the full record attribute name in metadata_attributes plugin (@janko)

    • ๐Ÿ‘ Allow specifying metadata mappings on metadata_attributes plugin initialization (@janko)

    • Add support for ranged requests in download_endpoint and rack_response plugins (@janko)

    • ๐Ÿ‘ Allow Storage::S3#open and Storage::S3#download to accept additional options (@janko)

    • Forward any options given to UploadedFile#open or UploadedFile#download to the storage (@janko)

    • โšก๏ธ Update direct_upload plugin to support Roda 3 (@janko)

  • v2.7.0 Changes

    September 11, 2017
    • ๐Ÿ—„ Deprecate the Shrine::DownloadEndpoint constant over Shrine.download_endpoint (@janko)

    • ๐Ÿ‘ Allow an additional #headers attribute on presigns and return it in presign_endpoint (@janko)

    • Allow overriding upload_endpoint and presign_endpoint options per-endpoint (@janko)

    • Add :presign and :rack_response options to presign_endpoint (@janko)

    • Add :upload, :upload_context and :rack_response options to upload_endpoint (@janko)

    • Modify upload_endpoint and presign_endpoint to return text/plain error responses (@janko)

    • โž• Add :request upload context parameter in upload_endpoint (@janko)

    • ๐Ÿ”„ Change :action upload context parameter to :upload in upload_endpoint (@janko)

    • Return 405 Method Not Allowed on invalid HTTP verb in upload_endpoint and presign_endpoint (@janko)

    • Modify upload_endpoint and presign_endpoint to handle requests on the root URL (@janko)

    • Allow creating Rack apps dynamically in upload_endpoint and presign_endpoint (@janko)

    • Remove Roda dependency from upload_endpoint and presign_endpoint plugins (@janko)

    • ๐Ÿ”Œ Split direct_upload plugin into upload_endpoint and presign_endpoint plugins (@janko)

    • ๐Ÿ‘Œ Support the new aws-sdk-s3 gem in Shrine::Storage::S3 (@lizdeika)

    • Return Cache-Control header in download_endpoint to permanently cache responses (@janko)

    • Return 404 Not Found when uploaded file doesn't exist in download_endpoint (@janko)

    • ๐Ÿ“‡ Utilize uploaded file metadata when generating response in download_endpoint (@janko)

    • ๐Ÿ›  Fix deprecation warning when generating fake presign with query parameters (@janko)

    • ๐Ÿšฉ Don't raise error in file and filemagic MIME type analyzer on empty IO (@ypresto)

    • ๐Ÿ”Œ Require down in remote_url plugin even when a custom downloader is given (@janko)

    • ๐Ÿ”Œ Require time library in logging plugin to fix undefined method #iso8601 for Time (@janko)

    • ๐Ÿ‘ Allow validations defined on a superclass to be reused in a subclass (@printercu)

    • ๐Ÿ‘ Allow validation error messages to be an array of arguments for ActiveRecord (@janko)

    • ๐Ÿ‘ Allow model subclasses to override the attachment with a different uploader (@janko)

    • Accept Attacher.new options like store: and cache: via Attachment.new (@ypresto)

    • Raise ArgumentError when :bucket option is nil in Shrine::Storage::S3#initialize (@janko)

    • Don't wrap base64-encoded content into 60 columns in UploadedFile#base64 and #data_uri (@janko)

    • Add :mini_mime option to determine_mime_type plugin for using the mini_mime gem (@janko)

    • ๐Ÿ›  Fix data_uri plugin raising an exception on Ruby 2.4.1 when using raw data URIs (@janko)

    • Implement Shrine::Storage::S3#open using the aws-sdk gem instead of Down.open (@janko)

    • ๐Ÿ—„ Un-deprecate Shrine.uploaded_file accepting file data as JSON string (@janko)

    • Don't wrap base64-formatted signatures to 60 columns (@janko)

    • Don't add a newline at the end of the base64-formatted signature (@janko)

  • v2.6.1 Changes

    April 12, 2017
    • ๐Ÿ›  Fix download_endpoint returning incorrect reponse body in some cases (@janko)
  • v2.6.0 Changes

    April 04, 2017
    • ๐Ÿ‘‰ Make Shrine::Storage::FileSystem#path public which returns path to the file as a Pathname object (@janko)

    • Add Shrine.rack_file to rack_file plugin for converting Rack uploaded file hash into an IO (@janko)

    • ๐Ÿ—„ Deprecate passing a Rack file hash to Shrine#upload (@janko)

    • Expose Shrine.extract_dimensions and Shrine.dimensions_analyzers in store_dimensions plugin (@janko)

    • โž• Add metadata_attributes plugin for syncing attachment metadata with additional record attributes (@janko)

    • Remove the undocumented :magic_header option from determine_mime_type plugin (@janko)

    • Expose Shrine.determine_mime_type and Shrine.mime_type_analyzers in determine_mime_type plugin (@janko)

    • โž• Add signature plugin for calculating a SHA{1,256,384,512}/MD5/CRC32 hash of a file (@janko)

    • ๐Ÿ”Œ Return the resolved plugin module when calling Shrine.plugin (@janko)

    • ๐Ÿ“‡ Accept hash of metadata with symbol keys as well in add_metadata block (@janko)

    • โž• Add refresh_metadata plugin for re-extracting metadata from an uploaded file (@janko)

    • ๐Ÿ‘ Allow S3 storage to use parallelized multipart upload for files from FileSystem storage as well (@janko)

    • ๐Ÿ‘Œ Improve default multipart copy threshold for S3 storage (@janko)

    • ๐Ÿ‘ Allow specifying multipart upload and copy thresholds separately in Shrine::Storage::S3 (@janko)

    • ๐Ÿ›  Fix Storage::FileSystem#clear! not deleting old files if there are newer files in the same directory (@janko)

    • ๐Ÿ‘ Allow media type in the data URI to have additional parameters (@janko)

    • URI-decode non-base64 data URIs, as such data URIs are URI-encoded according to the specification (@janko)

    • ๐Ÿ‘Œ Improve performance of parsing data URIs by 10x switching from a regex to StringScanner (@janko)

    • โฌ‡๏ธ Reduce memory usage of Shrine.data_uri and UploadedFile#base64 by at least 2x (@janko)

    • Add Shrine.data_uri to data_uri plugin which parses and converts the given data URI to an IO object (@janko)

    • ๐Ÿ”Œ Make rack_file plugin work with HashWithIndifferentAccess-like objects such as Hashie::Mash (@janko)

    • ๐Ÿ”ฆ Expose Aws::S3::Client via Shrine::Storage::S3#client, and deprecate Shrine::Strorage::S3#s3 (@janko)

    • ๐Ÿ”Œ Modify delete_raw plugin to delete any IOs that respond to #path (@janko)

    • Require the Tempfile standard library in lib/shrine.rb (@janko)

    • ๐Ÿ—„ Deprecate dimensions validations passing when a dimension is nil (@janko)

    • ๐Ÿ—„ Deprecate passing regexes to type/extension whitelists/blacklists in validation_helpers (@janko)

    • 0๏ธโƒฃ Don't include list of blacklisted types and extensions in default validation_helpers messages (@janko)

    • ๐Ÿ‘Œ Improve default error messages in validation_helpers plugin (@janko)

    • ๐Ÿ”Œ Don't require the benchmark standard library in logging plugin (@janko)

    • Don't dirty the attacher in Attacher#set when attachment hasn't changed (@janko)

    • ๐Ÿ“‡ Rename Attacher#attached? to a more accurate Attacher#changed? (@janko)

    • ๐Ÿ‘ Allow calling Attacher#finalize if attachment hasn't changed, instead of raising an error (@janko)

    • ๐Ÿ‘‰ Make Shrine::Storage::S3#object method public (@janko)

    • Prevent autoloading race conditions in aws-sdk gem by eager loading the S3 service (@janko)

    • Raise Shrine::Error when Shrine#generate_location returns nil (@janko)

  • v2.5.0 Changes

    November 11, 2016
    • โž• 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)

  • v2.4.1 Changes

    October 17, 2016
    • ๐Ÿšš Move back JSON serialization from Attacher#write to Attacher#_set (@janko)

    • ๐Ÿšš Make remove_invalid plugin assign back a previous attachment if was there (@janko)

    • ๐Ÿ—„ Deprecate Storage::FileSystem#download (@janko)

    • In UploadedFile#download use extension from #original_filename if #id doesn't have it (@janko)