-
-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.3.1 and 2.3.2 have broken dependencies #1098
Comments
Disclaimer: I read this from the changelog and did not tested this with code. Maybe I am wrong here, but the changelog tells it that way |
Hi @tvdeyen thanks very much for your message. You have some good points, I will look after it this evening. I was under the impression that Polyamorous had been completely imported into the Ransack, as it has been archived. If Ransack is in fact pointing to still pointing to the external Polyamorous I will update it. https://github.com/activerecord-hackery/ransack/tree/master/polyamorous/lib/polyamorous Perhaps I need to publish Polyamorous from within Ransack? If this is the case I'll reverse the integration until it can be completely imported properly. Thanks. |
As far as I can tell polyamorous has a separate gemspec now (#1002). That means it has to be build and pushed to rubygems separately, as gems are just packaged files uploaded. I also saw that the ransack gem still includes all files from the git repo, meaning that polyamorous is now shipped twice - once in the ransack gem package and once with polyamorous itself. |
Yes I can see that. I’ll clean it up, in the meantime please pin your code to 2.3.0
…Sent from my iPhone
On 12 Jan 2020, at 11:46, Thomas von Deyen ***@***.***> wrote:
As far as I can tell polyamorous has a separate gemspec now (#1002). That means it has to be build and pushed to rubygems separately, as gems are just packaged files uploaded.
I also saw that the ransack gem still includes all files from the git repo, meaning that polyamorous is now shipped twice - once in the ransack gem package and once with polyamorous itself.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Polyamorous stayed a separate gem, but the files are in the same repository, so issues can be managed at one place. I kept it a separate gem to make it possible to use it as a dependency without relying on ransack as well. Like what baby_squeel does. |
Thanks @gregmolnar I had forgotten about baby_squeel. It doesn't seem like the project is that active https://github.com/rzane/baby_squeel/commits/master I think Ransack needs a serious refactor, and the first step is to properly internalize Polyamorous (as a module). It will possibly need to be extended to fix these 6.0 issues. Also Polyamorous was never intended to be a shared gem, and wasn't documented etc. I think we really need to break from the past and modernize Ransack. Unfortunately there has only been a few of us contributing to the codebase. Each major version of Rails has required changes to Polyamorous, this will probably continue. I've posted a job on Upwork to handle these issues, and have already made an offer to a contractor https://www.upwork.com/ab/applicants/1215911323418488832/job-details. I would prefer to continue down this path. By the way, is anyone else having problems with 2.3.2? It's bundling fine for me for Rails 5.2.
CC @mohdsameer |
@seanfcarroll I think that might be because when you specify a git sourced gem, |
@deivid-rodriguez ah that makes sense. Thank you. |
To fix this issue we just need to release the 2 polyamorous version by the way. I will do so shortly. |
I pushed the missing polyamorous versions, so everyone should be able to bundle now. As a follow up, I will create a PR to change the how we handle the polyamorous dependency, so it can have a separate version from ransack. |
Thanks for trying @gregmolnar |
Thanks @gregmolnar for releasing the gems. There are still two issues remaining
and
I will create two individual issues, ok? |
@tvdeyen it would be great if you would open 2 separate issues for those. Thank you! |
Hey. Great work with Ransack.
It seems you released a new version of Ransack that was meant to raise polyamorous version, but the latter has never been released. Currently you cannot bundle either ransack 2.3.1 nor 2.3.2. The latest released version on rubygems of polyamorous is 2.3.0. Bundler cannot find it.
Also it seems that you released the removal of Rails 5.0 and 5.1 in 2.3.1 (a patch level release). Was this a mistake or intentional? Not that I am a huge semver fan, but this seems odd to me.
The pressing issue here is that currently you cannot bundle ransack. As you can see in this PR AlchemyCMS/alchemy_cms#1711
IMO you should release a 2.3.3 that reverts the changes of 2.3.1 and 2.3.2 and release a 3.0.0. (Please do not yank gems. This will cause even more issues for people using CIs). Also please do not forget to also release polyamorous with ransack, since they are separated gems now.
Thanks.
The text was updated successfully, but these errors were encountered: