-
Notifications
You must be signed in to change notification settings - Fork 901
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
Updates to support Rails4 #199
Conversation
Thanks for the pull request. In a week or two, after |
I love rails, but minimising a gems dependency is always a good idea. |
@fullbridge-batkins can you please open a branch now and merge this so that other libraries (a la globalize3) can work on integration support now? Thanks! |
+1 works good nice to see it in master branch. |
There is a deprecation warning in Rails4 that this PR doesn't fix yet. The |
When you open a PR you can choose the base repo to be the PR owner and the base branch to be the PR branch so in this case you'd use lucisferre repo and rails4 branch. Locally you just use git fetch: git remote add -f lucisferre git://github.com/lucisferre/paper_trail
git checkout lucisferre_rails4_patch --track lucisferre/rails4
# make changes and add, make a commit
git push origin lucisferre_rails4_patch Now, on GitHub, open the pull request against lucisferre repo and rails4 branch. Hope that helps and that my instructions are correct. |
@iain confirmed the deprecation warning, using branch: rails 4 Loading development environment (Rails 4.0.0.beta1)
should be rewritten as the following:
. (called from has_paper_trail at /home/leckylao/.rbenv/versions/2.0.0-rc2/lib/ruby/gems/2.0.0/bundler/gems/paper_trail-283f13139ac0/lib/paper_trail/has_paper_trail.rb:60) |
Thank you for the work on this! Looking forward to using paper_trail with my Ruby 2.0 + Rails 4 app 👍 |
Good! Thank you. Glad to hear that. Sent from my iPhone On 16/03/2013, at 4:21 AM, Ben Atkins notifications@github.com wrote:
|
Hello there, |
Trying to find some extra time to work on some of the outstanding pull requests. The For the time being you can continue using the |
@chrisnicola - I'm making an effort to merge this pull request into the master branch, but I have a question. Is there a reason why you swapped in MiniTest for Shoulda? Maybe I just don't know the proper syntax for MiniTest, however, running |
You know what, I really should have written more detailed commit messages, sorry. It's been 6 months and I can't recall exactly, I think it might have had something to do with Rails 4 switching to MiniTest as the default test framework used by ActiveSupport::TestCase and Shoulda wasn't working properly for me? Sorry, if it works without those changes feel free to revert the tests. |
This will only support Rails4 as I'm not sure if you prefer to keep
a separate semantic version for Rails3 instead of trying to support both
in a single gem.
It should be fairly straightforward to support both, though testing
for each major version of rails could be quite tedious.