5 ms·
We use a gem called olive branch. Yes it’s going to give you a performance hit, but it keeps you sane which is very worthwhile
by xcskier56 2y ago
We use a gem called olive branch. Yes it’s going to give you a performance hit, but it keeps you sane which is very worthwhile
- izietto 2y agoThis one? https://github.com/vigetlabs/olive_branch https://github.com/vigetlabs/olive_branch Looks interesting, unfortunately its latest update is from 3 years ago
- sensanaty 2y agoIf you look at the source [1], you'll see what it's doing is very simple (the file I linked is basically the whole library, everything else is Gem-specific things and tests). You can even skip the gem and implement it yourself, not a big dependency at all, so no need for constant maintenance in this case :p [1] https://github.com/vigetlabs/olive_branch/blob/main/lib/olive_branch/middleware.rb https://github.com/vigetlabs/olive_branch/blob/main/lib/oliv...
- werdnapk 2y agoI don't understand the issue with it not being updated for 3 years. Perhaps it's stable and requires no updates? If the author says it's no longer maintained, then that's something different.
- izietto 2y agoThis is my concern: https://github.com/vigetlabs/olive_branch/blob/8bd792610945ff3dc7b379a0aa7e039aa79a4e94/.travis.yml#L3-L16 https://github.com/vigetlabs/olive_branch/blob/8bd792610945f... No guarantee it's going to work with Ruby > 2.7 || Rails > 6.1. When I upgrade components I want to know other components are not going to break anything.
- werdnapk 2y agoOk, updates regarding dependencies is definitely a good point.