Shrine 2 support for Ruby 3 AND/OR Shrine 3 :versions_compatibility flag #615
-
I'm in the process of updating a large rails app to ruby 3, and am trying to find the best way to handle Shrine. Currently using Shrine 2.19.0 and very happy with it - so would prefer not to upgrade Shrine if that's possible. Can anyone confirm if there's a way to get Shrine 2 running with Ruby 3? I've seen some discussion about resolving the ruby 3 argument issues, but I think they were all for Shrine 3. We've also written a number of custom uploaders (for direct to S3) based on the shrine 2 storage format with an image_data column containing an :original and a :thumb key. I briefly experimented with Shrine 3 using the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The only way I can think of is to run Shrine 2 tests using Ruby 3. You may do this locally on a computer, or you may use github's CI:
I cannot comment on the second part of your question - where the param is ignored etc. |
Beta Was this translation helpful? Give feedback.
-
You should be able to just use the |
Beta Was this translation helpful? Give feedback.
You should be able to just use the
versions
plugin on Shrine 3. It is deprecated, but I highly doubt there will ever be a Shrine 4, so it will technically never be removed. Would this work for you?