-
Notifications
You must be signed in to change notification settings - Fork 42
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
Switch .uniq to .distinct while dropping rails 3.2 Support #53
Conversation
I resolved some dependency issues that were causing CI to fail. Please rebase from master. I was planning to hold off on this until Rails 5.1. was released. I would prefer not to drop Rails 3.2 support until absolutely necessary. Is there a motivating factor for this, beyond getting rid of the annoying deprecation warnings? |
Rebased @dwbutler No other motivation other than the warning / Trying to help out, assumed that master would track the upcoming release. This PR can sit in purgatory for the time being if you don't want to merge yet. |
Sounds good. Thanks for helping out! I'll leave this open until Rails 5.1 is released, and then I'll merge it and drop Rails 3.2 support officially. Also, the changelog is auto-generated, so you can remove the change there. |
Also, Rails 3.2 needs to be removed from the Travis CI build. |
Passing a class as a value in an Active Record query is deprecated and will be removed. Pass a string instead.
Any thoughts on removing End of Life (EOL) versions of ruby from the build matrix? It appears we are building over 100 times per commit. |
I usually continue supporting older Rubies until it becomes too painful. (Usually because of test dependencies.) AFAIK, Ruby 2.0.0 is the only version that has been officially EOLed. I would be fine with removing it. |
@@ -149,10 +149,10 @@ def define_member_association(member_klass, association_name = nil) | |||
|
|||
if ActiveSupport::VERSION::MAJOR > 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The conditional here can be removed since Rails 3 will no longer be supported or expected to work.
@rposborne Rails 5.1 is out. We can also remove support for Ruby 2.1, since it was recently EOL'ed. |
3 Failures for 5.1, traced it to here. rails/rails@09cac8c But I seem to sense that we weren't hitting this before, and some code is not being loaded when it needs to be. |
@rposborne The failing specs are here and here. To be honest, this looks like invalid syntax, and I'm not sure how these tests ever passed. In any case, it's not syntax that should be supported. So these lines can be removed. |
@dwbutler I tend to agree, but it appears this syntax is working from other perspectives... which has me confused as I am not sure where the code path for the successful call is coming from. Here is a working example of the same lookup. |
@rposborne The syntax |
@rposborne Actually, I found the code that implements this behavior here. Evidently it doesn't work any more in ActiveRecord 5.1. I would suggest that it be removed. The behavior isn't documented anywhere. |
@rposborne For now you can add this to the
|
…ted by jruby active record adaptor
@dwbutler Should be in good shape! Final review :) I do think this is a major version bump regardless with the syntax deprecation and dropping of support of rubies / rails. |
Awesome, thanks for all the hard work! I don't think a major bump is necessarily needed here. The API documented in the Readme is the only officially supported interface. The internals can change/break as needed. But definitely this will bump the version from 0.8.0 to 0.9.0. |
Released in 0.9.0. Thanks! |
See #52