-
Notifications
You must be signed in to change notification settings - Fork 120
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
Updated gem to work (and successfully test) with Rails 5.0 #39
Conversation
Update: PR now includes addition of All compatible Ruby/Rails version pairs have passing tests. |
@rafaelfranca and others, FYI: I just updated this PR to resolve the final deprecation warning, to add a CI test against ruby 2.3.0 (passing with all Rails versions), and to rebase my repo against changes to Is there any particular ETA on this PR being reviewed? I'm eager to see it merged. (Especially since another gem relies on it being merged.) |
@@ -0,0 +1,15 @@ | |||
appraise "rails-4-0" do |
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.
Could you remove appraisal? It is not necessary and I prefer to keep our setup simple.
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.
Happy to do so. Would you like to keep the separate Gemfiles for the different versions of Rails without appraisal though? So you can be sure that future changes don't break compatibility with older versions of Rails without having to manually test each one?
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.
Yes. We should keep the Gemfiles, just not use the appraisal gem.
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.
Got it.
Awesome work! I already reviewed it and commented. |
@rafaelfranca Thanks a ton! I'll make the changes we discussed now. |
@rafaelfranca Ok. Changes made. See the circular dependency errors. Any ideas? Seems the problem started existing with Rails 4.1. (Before I touched them with this PR, the tests had only been configured to work with Rails 4.) |
Ok. Seems like it is trying to load the User constant during it is already loading the User constant. The cause seems to be the line 22 in the railtie. Try to remove it |
- All tests for Rails versions 4.x.y thru 5.0.x now passing. - All warnings/deprecations resolved. - Added appraisal gem for CI testing against multiple simultaenous Ruby/Rails version combos (Ruby versions: 1.9, 2.0, 2.1, 2.2.4, 2.3.0 and ruby-head).
@rafaelfranca Ok. That did it. Everything appears to be passing now. Are we all set? |
Updated gem to work (and successfully test) with Rails 5.0
Thanks! |
Release a new version is not possible now. We need to get master version tested because it may have different behavior now. I'd recommend you to use the master version in your application to see if it works. |
Ok. Well I'm going to put together a PR for |
@rafaelfranca See collectiveidea/audited#252. All Is there anything else you'd like to see before you're comfortable pushing a new version? |
@mvastola 👍 I've upgraded to rails 5, added |
Cool! I'll release it tomorrow. |
Thanks so much! |
@rafaelfranca Do you have a new expected date for this? |
Hi, @rafaelfranca, as it's been another week, just another gentle reminder to push a release for this gem.. |
@rafaelfranca, just checking in on this again.. it's been nearly a month (it will be exactly one month on Friday) since you said you'd release this.. Is there some sort of complication? |
@jachenry I'm not sure what you mean by "special behavior for running observers in rspec".. Could you clarify? You shouldn't need to make any changes to your production code or tests to apply this update. What version of rails are you on? Can you offer an example app with non-functional observers? |
Also, @jachenry, out of curiosity, try switching back to master and putting the following in an initializer (@rafaelfranca had me remove this line to fix a bug and that was the only potentially substantive change that was really made) and see if it works then:
|
@jachenry Are you going to be able to provide more information on your problem? This should also really go in it's own issue now that this is merged. (Feel free to tag me) @rafaelfranca I have not heard from you at all on this.. (to the point that I'm not even sure you're getting these messages). I'm tempted to actually make an issue about the lack of a release itself if I don't hear back from you in the next day or so. |
@rafaelfranca upon further investigation, the CI tests don't seem to test that observers are instantiated. At the very least I want to make a test and ensure that it's passing against the current code before we release. I plan to write the test either tonight or tomorrow. Please still reply though so I know that someone's out there. |
Ok, I just added the test at https://github.com/Partyista/rails-observers and it is failing. I'm going to make a new PR to discuss fixing this issue and then we can talk about a release. |
Can we have the version release please? |
@kaspth Looking forward for the release soon. 👍 |
Hey guys, Long story short: Unfortunately, by the time someone else verified the fix in #41, commits had already been made that resulted in merge conflicts between #41 and HEAD. While these conflicts were simple enough to resolve (and have been resolved in #41 as it stands), the CI tests no longer pass (suggesting the commits to |
All tests for Rails versions 4.x.y thru 5.0.x now passing. (Previously the test suite had been left unmaintained and only passed with Rails 4.0.x.)
Nearly all warnings/deprecations resolved.
This PR resolves #37 and should provide for full Rails 5.0.x compatibility. I therefore request a new version be released once these changes are merged.