Releases: jetrockets/shrine.cr
Releases · jetrockets/shrine.cr
Crystal 1.3.0 support
- Added support for Crystal 1.3.0
- Upgraded dependencies
- Added Lucky(Avram) Usage Screencast (thanks to @stephendolan)
v0.6.4
Updated S3 upload mechanics.
v0.6.3
Updated dependencies.
Fixed supported Crystal versions.
Crystal 1.0.0
v0.6.2 Added Crystal 1.0.0 support
Support for Crystal 0.6.1
v0.6.1 Updated Crystal minumum required version and bumped version
StoreDimensions plugin implemented
The StoreDimensions
plugin extracts dimensions of uploaded images and stores them into the metadata.
class Uploader < Shrine
load_plugin(Shrine::Plugins::StoreDimensions,
analyzer: Shrine::Plugins::StoreDimensions::Tools::BuiltIn)
finalize_plugins!
end
image.metadata["width"]
image.metadata["height"]
v0.5.1
Crystal 0.34 support
v0.5.0 Crystal 0.34
v0.4.0
Added support for S3 Storage.
Pluggable Shrine
Shrine.cr got plugin system! Hooray!
Two plugins (DetermineMimeType
and AddMetadata
) are are included into this shard, you can read more about them in Readme.
Also I refactored Shrine::UploadedFile::Metadata
into Shrine::UploadedFile::MetadataType
which is now a Hash
. NamedTuple
are also replaced with Hash
in Shrine
and Shrine::UploadedFile
classes.