Comments (16)
For those trying to upgrade to Rails 5 and stumble here, here's the guide to migrate to Baby Squeel: https://github.com/rzane/baby_squeel/wiki/Migrating-from-Squeel
from squeel.
It would be wonderful for the current users if Squeel were upgraded to handle Rails 5, and I support any efforts by the current maintainers to do so. It's a great gem, realistically, it would have been great if it had been brought into the core for us!
However we are executing our Rails 5 upgrade now, and the discussion in #412 led me to believe that, after seven months, we were still in the 'discussion' phase of maintaining this gem. Because of time constraints, the migration to @rzane's baby squeel was relatively painless and preserved our functionality... And with the recent inclusion of a wiki guide for former Squeel
users relatively handy. I'll keep a branch of our application with the old syntax open if you want help in testing any future maintenance on the gem.
from squeel.
As mentioned previously, I'd be happy to have an active maintainer of the current Squeel codebase -- but would not be interested in a wholesale replacement of the codebase released under the same name and with an incompatible API.
from squeel.
@jonatack When I started writing Baby Squeel, I was actually attempting to write a really small subset of Squeel's features for a project I'm working on. I had no intention of it ever having any degree of compatability with Squeel. Then it kind of grew.
If I had known how far I was going to go with it, I probably would have just contributed to Squeel. This might sound crazy, but what if Baby Squeel just became the next major version of Squeel?
from squeel.
Similar conversation on #412 too. I upgraded to Rails 5 and migrated to Baby Squeel
, which is much more actively maintained and now has a wiki on migrating from Squeel to Baby Squeel, works fine on my system now. https://github.com/rzane/baby_squeel
https://github.com/rzane/baby_squeel/wiki/Migrating-from-Squeel
I think this gem worked really, really well for us on 4.2.7, and if we didn't upgrade to 5.0.0 we could have kept using it no problem. If you're interested in a similar solution with maintenance and 5 compatibility, I haven't had problems with the switch.
from squeel.
That's great to hear all around. I think @mckinnsb, @bmulholland expressed some interest in the mantle and @bigxiang as of a few months ago had indicated that maintenance from that end would still be a while. It seems @bmulholland put down a few commits on a branch on this March 8th. How is that branch doing? https://github.com/bmulholland/squeel/commits/master
from squeel.
@Schwad It turned out to be quite daunting, and well beyond both my current abilities and the time I have available. Our plan is to switch to baby_squeel
in the coming months along with a Rails 5 upgrade.
from squeel.
See: https://ernie.io/2013/11/17/anyone-interested-in-activerecord-hackery/
@bigxiang did a fantastic job bringing Rails 4 compatibility to Squeel. He appears to be less available now. Someone could step up 👍
from squeel.
@jonatack got that, thanks for quick response
from squeel.
Looked at @bigxiang's GitHub profile and there is no activity at all for the past year. So unless he returns to open source on GitHub, I suppose it would be fair to venture that Squeel is not currently maintained.
from squeel.
@Schwad @rzane I'm curious, why not just maintain Squeel? Seems like it would be a win for all of its current users.
Upgrading Squeel and Ransack to Rails 4 was a bit of a pain. But (at least for me with Ransack), upgrading the gem from Rails 4 to 5 has been pretty painless on the Active Record side and it seems that Sean Griffin (AR maintainer) is working to keep the API stable and even bring Arel back to public API in a stable way according the the latest BikeShed episode (http://bikeshed.fm/74).
from squeel.
I don't use Squeel (yet) otherwise would have stepped forth to maintain it, because (a) I like to know the dependencies I use, and (b) because I'm familiar with Polyamorous, which I work on occasionally for Ransack and which Squeel also depends on.
If @rzane or someone capable wanted to maintain Squeel I'm sure Ernie would be happy to let them run with it and see Squeel continue to help Rubyists going forward. I'd be happy to work with them for Polyamorous.
from squeel.
@rzane I don't think that is a good idea. The whole point of squeel by the original developer was to maintain compatibility with AR in the hopes of it getting merged into core
from squeel.
For anyone still using this and looking to update closer to a currently supported Rails, Baby Squeel also does not support anything above Rails 5.2.1. It might be worth keeping that in mind as you plan your way forward.
from squeel.
@CodingAnarchy I'd say you guys could mention this in readme to prevent such questions
from squeel.
It would however appear that BabySqueel is actively working on a 5.2.1 solution if you want to take a look here and join in: rzane/baby_squeel#97
I filed a PR against Squeel 2.5 years ago that would mark this gem as unmaintained and gives information about the options out there (including a brave soul valiantly stepping up to maintain this gem).
from squeel.
Related Issues (20)
- Using squeel with existing scopes ? HOT 1
- Literals don't work well with nil HOT 4
- Using BETWEEN condition in squeel?
- Undefined method | (pipe) HOT 2
- Accessing a records associations with a scope HOT 2
- Support for rewhere
- Group_by not working HOT 1
- Using complex IN + OR scope inside an association results in invalid SQL on join condition HOT 5
- rails 5 support HOT 18
- Support for PostgreSQL arrays
- Subquery generation when using a Relation as a parameter in regular where() HOT 4
- Performance issues HOT 1
- Default scope where conditions with or in rails 4 and squeel HOT 4
- MySQL concat function HOT 1
- makes #reorder break #last
- common table expressions (CTEs)
- Active record 5 support HOT 1
- Convert column HOT 1
- Undefined method `alias_method_chain' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from squeel.