-
Include query parameters in CDN-ed S3 URLs, making them work for private objects (janko-m)
-
Remove the
:include_error
option from remote_url plugin (janko-m) -
Make previous plugin options persist when reapplying the plugin (janko-m)
-
Improve how upload options and metadata are passed to storage's
#upload
and#move
(janko-m) -
Remove
Shrine::Confirm
and confirmingStorage#clear!
in general (janko-m) -
Allow implementing a custom dimensions analyzer using built-in ones (janko-m)
-
Don't error in determine_mime_type when MimeMagic cannot determine the MIME (janko-m)
-
Allow implementing a custom MIME type analyzer using built-in ones (janko-m)
-
Don't check that the cached file exists in restore_cached_data plugin (janko-m)
-
Deprecate migration_helpers plugin and move
Attacher#cached?
andAttacher#stored?
to base (janko-m) -
Don't trigger restore_cached_data plugin functionality when assigning the same cached attachment (janko-m)
-
Give
Attacher#_promote
andAttacher#promote
the same method signature (janko-m) -
Add
Attacher#_delete
which now spawns a background job instead ofAttacher#delete!
(janko-m) -
Make
Attacher#cache!
,Attacher#store!
, andAttacher#delete!
public (janko-m) -
Don't cache storages in dynamic_storage plugin (janko-m)
-
Make only one HTTP request in download_endpoint plugin (janko-m)
-
Print secuity warning when not using determine_mime_type plugin (janko-m)
-
Support Mongoid in backgrounding plugin (janko-m)
-
Allow including attachment module to non-
Sequel::Model
objects in sequel plugin (janko-m) -
Handle paths that start with "-" in determine_mime_type plugin when
:file
analyzer is used (zaeleus) -
Allow including attachment module to non-
ActiveRecord::Base
objects in activerecord plugin (janko-m) -
Remove deprecated "restore_cached" alias for restore_cached_data plugin (janko-m)
-
Remove deprecated "delete_uploaded" alias for delete_raw plugin (janko-m)
-
Make the default generated unique location shorter (janko-m)
-
Make the
:delegate
option in migration_helpers default tofalse
(janko-m) -
Don't require
:storages
option anymore in moving plugin (janko-m) -
Don't delete uploaded IO if storage doesn't support moving in moving plugin (janko-m)
-
Rename delete phases to be shorter and consistent in naming with upload phases (janko-m)
-
Remove deprecated
Shrine#default_url
(janko-m) -
Remove deprecated
:subdirectory
on FileSystem storage (janko-m) -
Don't return the uploaded file in
Attacher#set
andAttacher#assign
(janko-m) -
Return the attacher instance in
Attacher.promote
andAttacher.delete
in backgrounding plugin (janko-m) -
Rename "attachment" to "name", and "uploaded_file" to "attachment" in backgrounding plugin (janko-m)
-
Remove using
:presign
for presign options instead of:presign_options
(janko-m) -
Remove deprecated
Shrine.direct_endpoint
from direct_upload plugin (janko-m) -
Remove deprecated keep_location plugin (janko-m)
-
Make
Shrine#extract_dimensions
a private method in store_dimensions plugin (janko-m) -
Keep
Shrine#extract_mime_type
a private method when loading determine_mime_type plugin (janko-m) -
Deprecate loading the backgrounding plugin through the old "background_helpers" alias (janko-m)
-
Removed ActiveRecord's automatic support for optimistic locking as it wasn't stable (janko-m)
-
Fixed record's dataset being modified after promoting preventing further updates with the same instance (janko-m)
- Bring back triggering callbacks on promote in ORM plugins, and add support for optimistic locking (janko-m)
-
Return "Content-Length" response header in download_endpoint plugin (janko-m)
-
Make determine_mime_type and store_dimensions automatically rewind IO with custom analyzer (janko-m)
-
Make
before_*
andafter_*
hooks happen before and afteraround_*
hooks (janko-m) -
Rename restore_cached plugin to more accurate "restore_cached_data" (janko-m)
-
Prevent errors when attempting to validate dimensions when they are absent (janko-m)
-
Remove "thread" gem dependency in parallelize plugin (janko-m)
-
Add
:filename
to data_uri plugin for generating filenames based on content type (janko-m) -
Make user-defined hooks always happen around logging (janko-m)
-
Add
:presign_location
to direct_upload for generating the key (janko-m) -
Add separate
:presign_options
option for receiving presign options in direct_upload plugin (janko-m) -
Add ability to generate fake presigns for storages which don't support them for testing (janko-m)
-
Change the
/:storage/:name
route to/:storage/upload
in direct_upload plugin (janko-m) -
Fix logger not being inherited in the logging plugin (janko-m)
-
Add delete_promoted plugin for deleting promoted files after record has been updated (janko-m)
-
Allow passing phase to
Attacher#promote
and generalize promoting background job (janko-m) -
Close the cached file after extracting its metadata in restore_cached plugin (janko-m)
-
Rename delete_uploaded plugin to "delete_raw" to better explain its functionality (janko-m)
-
Pass the SSL CA bundle to open-uri when downloading an S3 file (janko-m)
-
Add
Attacher.dump
andAttacher.load
for writing custom background jobs with custom functionality (janko-m) -
Fix S3 URL erroring due to not being URL-encoded when
:host
option is used (janko-m) -
Remove a tiny possibility of a race condition with backgrounding on subsequent updates (janko-m)
-
Add
:delegate
option to migration_helpers for opting out of defining methods on the model (janko-m) -
Make logging plugin log number of both input and output files for processing (janko-m)
-
Make deleting backup work with backgrounding plugin (janko-m)
-
Make storing backup happen after promoting instead of before (janko-m)
-
Add
:fallbacks
to versions plugin for fallback URLs for versions which haven't finished processing (janko-m) -
Fix keep_files not to spawn a background job when file will not be deleted (janko-m)
-
Add
<attachment>_cached?
and<attachment>_stored?
to migration_helpers plugin (janko-m) -
Fix
Attacher#backup_file
from backup plugin not to modify the given uploaded file (janko-m) -
Allow modifying UploadedFile's data hash after it's instantiated to change the UploadedFile (janko-m)
-
Deprecate the keep_location plugin (janko-m)
-
Don't mutate context hash inside the uploader (janko-m)
-
Make extracted metadata accessible in
#generate_location
through:metadata
in context hash (janko-m) -
Don't require the "metadata" key when instantiating a
Shrine::UploadedFile
(janko-m) -
Add
:include_error
option to remote_url for accessing download error in:error_message
block (janko-m) -
Give different error message when file wasn't found or was too large in remote_url (janko-m)
-
Rewind the IO after extracting MIME type with MimeMagic (janko-m)
-
Rewind the IO after extracting image dimensions even when extraction failed (kaapa)
-
Correctly infer the extension in
#generate_location
when uploading anUploadedFile
(janko-m) -
Fix ability for errors to accumulate in data_uri and remote_url plugins when assigning mutliples to same record instance (janko-m)
-
Bump Down dependency to 2.0.0 in order to fix downloading URLs with "[]" characters (janko-m)
-
Add
:namespace
option to pretty_location for including class namespace in location (janko-m) -
Don't include the namespace of the class in the location with the pretty_location plugin (janko-m)
-
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-m)
-
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-m)
-
Make
Shrine::Attacher.promote
andShrine::Attacher.delete
return the record in backgrounding plugin (janko-m) -
Close the IO on upload even if the upload errors (janko-m)
-
Use a transaction when checking if attachment has changed after storing during promotion (janko-m)
-
Don't attempt to start promoting in background if attachment has already changed (janko-m)
-
Don't error in backgrounding when record is missing (janko-m)
-
Prevent multiline content type spoof attempts in validation_helpers (xzo)
-
Make custom metadata inherited from uploaded files and make
#extract_metadata
called only on caching (janko-m)
-
Rename the "background_helpers" plugin to "backgrounding" (janko-m)
-
Rename the
:subdirectory
option to:prefix
on FileSystem storage (janko-m) -
Add download_endpoint plugin for downloading files uploaded to database storages and for securing downloads (janko-m)
-
Make
around_*
hooks return the result of the corresponding action (janko-m) -
Make the direct upload endpoint customizable, inheritable and inspectable (janko-m)
-
Add upload_options plugin for dynamically generating storage-specific upload options (janko-m)
-
Allow the context hash to be modified (janko-m)
-
Fix extension not being returned for storages which remove it from ID (Flickr, SQL, GridFS) (janko-m)
-
Delete underlying Tempfiles when closing an
UploadedFile
(janko-m) -
Fix background_helpers plugin not working with ActiveJob (janko-m)
-
Add
UploadedFile#base64
to the data_uri plugin (janko-m) -
Optimize
UploadedData#data_uri
to not download the file and instantiate file contents string only once (janko-m) -
Allow adding S3 upload options dynamically per upload (janko-m)
-
Add delete_uploaded plugin for automatically deleting files after they're uploaded (janko-m)
-
Close an open file descriptor left after downloading a FileSystem file (janko-m)
-
Make
FileSystem#url
Windows compatible (janko-m) -
Add
UploadedFile#content_type
alias to#mime_type
for better integration with upload libraries (janko-m) -
Add a
UploadedFile#data_uri
method to the data_uri plugin (janko-m) -
Allow the data_uri plugin to accept "+" symbols in MIME type names (janko-m)
-
Make the data_uri plugin accept data URIs which aren't base64 encoded (janko-m)
-
Close all IOs after uploading them (janko-m)
-
Allow passing a custom IO object to the Linter (janko-m)
-
Add remove_invalid plugin for automatically deleting and deassigning invalid cached files (janko-m)
-
Add
:max_size
option to the direct_upload plugin (janko-m) -
Move
Shrine#default_url
to default_url plugin (janko-m) -
Enable
S3#multi_delete
to delete more than 1000 objects by batching deletes (janko-m) -
Add the keep_location plugin for easier debugging or backups (janko-m)
-
Add the backup plugin for backing up stored files (janko-m)
-
Storages don't need to rewind the files after upload anymore (janko-m)
-
Make S3 presigns work when the
:endpoint
option is given (NetsoftHoldings) -
Fix parallelize plugin to always work with the moving plugin (janko-m)
-
Fix S3 storage to handle copying files that are larger than 5GB (janko-m)
-
Add
:upload_options
to S3 storage for applying additional options on upload (janko-m) -
Reduce length of URLs generated with pretty_location plugin (gshaw)
-
Improve Windows compatibility in the FileSystem storage (janko-m)
-
Remove the ability for FileSystem storage to accept IDs starting with a slash (janko-m)
-
Fix keep_files plugin requiring context for deleting files (janko-m)
-
Extract assigning cached files by parsed JSON into a parsed_json plugin (janko-m)
-
Add
(before|around|after)_upload
to the hooks plugin (janko-m) -
Fix
S3#multi_delete
andS3#clear!
not using the prefix (janko-m) -
Add ability to pass presign options to storages in the direct_upload plugin (janko-m)
-
Remove
Shrine.io!
because it was actually meant to be only for internal use (janko-m) -
Remove
Shrine.delete
because of redundancy (janko-m) -
Add default_url_options plugin for specifiying default URL options for uploaded files (janko-m)
-
Add module_include plugin for easily extending core classes for given uploader (janko-m)
-
Add support for Sequel's Postgres JSON column support (janko-m)
-
Fix migration_helpers plugin not detecting when column changed (janko-m)
-
Add the
:public
option to S3 storage for retrieving public URLs which aren't signed (janko-m) -
Remove the delete_invalid plugin, as it could cause lame errors (janko-m)
-
Don't delete cached files anymore, as it can cause errors with backgrounding (janko-m)
-
Add a
:host
option to the S3 storage for specifying CDNs (janko-m) -
Don't allow same attachment to be promoted multiple times with backgrounding (janko-m)
-
Fix recache plugin causing an infinite loop (janko-m)
-
Fix an encoding error in determine_mime_type when using
:file
with non-files (janko-m) -
Make
UploadedFile
actually delete itself only once (janko-m) -
Make
UploadedFile#inspect
cleaner by showing only the data hash (janko-m) -
Make determine_mime_type able to accept non-files when using :file (janko-m)
-
Make logging plugin accept PORO instance which don't have an #id (janko-m)
-
Add rack_file plugin for attaching Rack file hashes to models (janko-m)