Skip to content

Releases: jetrockets/shrine.cr

Crystal 1.3.0 support

04 Apr 08:32
da3c080
Compare
Choose a tag to compare
  • Added support for Crystal 1.3.0
  • Upgraded dependencies
  • Added Lucky(Avram) Usage Screencast (thanks to @stephendolan)

v0.6.4

27 Jul 14:24
Compare
Choose a tag to compare

Updated S3 upload mechanics.

v0.6.3

07 Jul 08:26
Compare
Choose a tag to compare

Updated dependencies.
Fixed supported Crystal versions.

Crystal 1.0.0

09 Apr 14:54
Compare
Choose a tag to compare
v0.6.2

Added Crystal 1.0.0 support

Support for Crystal 0.6.1

11 Feb 11:37
Compare
Choose a tag to compare
v0.6.1

Updated Crystal minumum required version and bumped version

StoreDimensions plugin implemented

25 May 07:16
Compare
Choose a tag to compare

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

14 May 07:37
Compare
Choose a tag to compare

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

Crystal 0.34 support

08 Apr 08:19
Compare
Choose a tag to compare
v0.5.0

Crystal 0.34

v0.4.0

21 Feb 18:50
Compare
Choose a tag to compare

Added support for S3 Storage.

Pluggable Shrine

06 Dec 13:45
Compare
Choose a tag to compare

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.