v0.3.2December 10, 2019
v0.3.1December 06, 2019
🔌 Shrine.cr got plugin system! Hooray!
📇 Two plugins (
AddMetadata) are are included into this shard, you can read more about them in Readme.
📇 Also I refactored
Shrine::UploadedFile::MetadataTypewhich is now a
NamedTupleare also replaced with
v0.2.4November 15, 2019
➕ Added Shrine::UploadedFile#mime_type
➕ Added Shrine::UploadedFile#download.
v0.2.1October 30, 2019
➕ Added ability to extend Shrine with plugins
module FooPlugin# This will extend your uploader class methodsmodule ClassMethods; def foo; "plugin_foo"; end; end# This will included into your uploader instance methodsmodule InstanceMethods; def foo; "plugin_foo"; end; end# This will extend <YourUploader>::UploadedFile class methodsmodule FileClassMethods; def foo; "plugin_foo"; end; end# This will included into <YourUploader>::UploadedFile instance methodsmodule FileMethods; def foo; "plugin_foo"; end; endendclass Shrine load_plugin ::FooPlugin create_plugins_class_methodend
v0.1.3October 21, 2019
v0.1.2October 20, 2019