Shrine.cr Versions Save

File Attachment toolkit for Crystal applications. Heavily inspired by Shrine for Ruby.

v0.6.5

2 years ago
  • Added support for Crystal 1.3.0
  • Upgraded dependencies
  • Added Lucky(Avram) Usage Screencast (thanks to @stephendolan)

v0.6.4

2 years ago

Updated S3 upload mechanics.

v0.6.3

2 years ago

Updated dependencies. Fixed supported Crystal versions.

v0.6.2

3 years ago

v0.6.1

3 years ago

v0.5.3

4 years ago

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

4 years ago

Removed JSON.mapping in favor of JSON::Serializable. Thanks to @wout.

v0.5.0

4 years ago

v0.4.0

4 years ago

Added support for S3 Storage.

v0.3.0

4 years ago

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.