RubyFlow The Ruby and Rails community linklog

Shrine 1.0.0 released

A month ago I released Shrine, a new solution for file uploads in Ruby, and now it has reached 1.0.0. There are a lot of new features, improvements and fixes, take a look at the release notes.

Comments

How does this compare to Paperclip?

I’ve made a blog post about Shrine a month ago which explains the main ideas, and I also wrote “Shrine for Paperclip Users”. In short, some advantages are:

  • built for background jobs
  • caching assigned attachment
  • 1 DB column instead of 4
  • uploading configuration in a separate class
  • ORMs other than ActiveRecord
  • more natural instance-level processing and validations interface
  • better logging
  • more powerful storages
  • ability to move files instead of copying

Very nice, I loved the code design. Is Refile going to be maintained in future? Should I update all my apps using Refile to use Shrine? Will Shrine be maintained for a long time?

Well, Refile will probably continue to be maintained as it is now, but I’m not sure what are the intentions of the author. If you don’t need on-the-fly processing, then for me it’s worth upgrading to Shrine, since in my opinion it’s much more advanced (but big credits to Refile for making steps in the right way). Since I’m not planning on moving away from Ruby any time soon, I think it will be maintained for a long time :)

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in