-
Notifications
You must be signed in to change notification settings - Fork 678
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
Compatibility with Rails 5.0 #249
Comments
I'll try to get this today or tomorrow. Pull requests welcome in the meantime! ;) |
@danielmorrison So I'm going to see if I can get that working and then I will submit my commit as a PR (assuming all tests pass). |
Also, I wasn't sure what to do about your .travis.yml. I didn't change anything regarding this, but Rails 5 requires Ruby >= 2.2.2, so CI tests for Rails 5 on other versions of Ruby will definitely fail (which will be confusing in that it will presumably mark future valid PRs as having failed the CI testing). I'm not too fluent in Travis' config.. is there a way to specify that the Rails 5 appraisal should only be tested on that one Ruby version? |
@danielmorrison FYI, I have submitted rails/rails-observers#39, a PR to rails-observers which fixes various issues with its test suite (and very minor issues with the library itself) to verify full Rails 5.0 compatibility. I have further asked the maintainer(s) to release a new version following the adoption of my PR there. Once that happens, I have a PR nearly ready to go (it just needs the new version number of rails-observers) for audited which I will submit to you to enable Rails 5.0 interoperability. I have verified that audited's test suite passes against my rails-observers PR for now by locally adding the following to
And running the following in terminal:
If you could, your endorsement in favor of merging my pull request to rails-observers (or simply your statement that Rails 5.0 compatibility would help this gem), though not crucial, might help accelerate this process. |
@mvastola I really need a compatible version with rails5, when do you think you will be ready to merge this PR? |
@Azzurrio I will, however, put together an |
@Azzurrio See https://github.com/Partyista/audited/tree/rails5-pr-work @danielmorrison If you could check out #252 and let me know if everything is to your satisfaction (other than the reference to the |
Update: This was due to Rails 5's new support for nested transactions coinciding with the fact that |
Sorry for the delay. I had recalled this as being as simple as a version change, but I guess I had been thinking of another gem (I've been juggling a bunch of 5.0 upgrades as of late). Regardless, this PR is now passing all tests and ready to try out. |
@mvastola Great Work 👍 I will you use your fork untill ur PR is merged |
@Azzurrio Cool. Definitely let me know if you run into any issues with my fork! |
@mvastola I've added this to
After running
The problem here is that the
and it works perfectly after then 💃 Summary:
|
Yup. :-) In this comment I already mentioned:
I've already asked |
@Azzurrio Also, rails 5.0.0.beta1 is out, so you may want to upgrade from the alpha (though this is unrelated to your issue). |
@mvastola Yeah I know. But after upgrading to
I haven't invested time on that but the first problem was enough to rollback into rails alpha again. |
With the release of Rails 5.0.0.beta1 just days ago, many users (myself included) are seeking to upgrade their current Rails 4.2 apps to ensure forward-compatibility with this new version of Rails and to make use of its new features and capabilities.
Currently, the
audited.gemspec
includes the line:which prevents usage of this gem (or even experimentation with it) in this new version of Rails.
I would like to request that audited be made compatible with Rails 5.0.
The text was updated successfully, but these errors were encountered: