paper_trail 7.1.3 Support for ActiveRecord < 4.2 - paper-trail-gem

We are using rails 4.1.15 & ActiveRecord 4.1.15. We integrated with the latest version of paper_trail(7.1.3) that supports our rails version.
When using this, we receive a warning:
DEPRECATION WARNING: Your version of ActiveRecord (< 4.2) has reached EOL. PaperTrail will soon drop support. Please upgrade ActiveRecord ASAP.
(This change was added in March 2017 as part of commit)
As we have a huge application and no current plans to upgrade our rails, wanted to understand a few things:
PaperTrail will soon drop support - When will this happen?
When PaperTrail does drop support, what will be the impact? I assume that it will work just fine. Is there something we need to be careful of?
Is there is a way to suppress this warning?

DEPRECATION WARNING: Your version of ActiveRecord (< 4.2) has reached EOL. PaperTrail will soon drop support. Please upgrade ActiveRecord ASAP. (This change was added in March 2017 as part of commit)
PaperTrail will soon drop support - When will this happen?
This happened years ago. See the changelog for exact date.
When PaperTrail does drop support, what will be the impact? I assume that it will work just fine. Is there something we need to be careful of?
You can continue to use old, unsupported versions of PT and/or rails as long as you want.
Is there is a way to suppress this warning?
You could fork PT, or pipe to /dev/null.

Related

How to find out what Ruby version a project has used + Github

I cloned one of my 3years old project from Github to resurrect, however I'm getting bunch of migrations, gem, etc errors. Googling gives me tips about possibly using wrong ruby version.
I want to assign the specific rbenv local rubyver but I don't know which one I used and I can't find it in any settings?
Any idea how I can find what Ruby version is this project using?
There's a few places this might be annotated:
A .ruby-version file, though these are often ignored to avoid friction between developers with slightly different versions. This is what rbenv uses, as well as other tools like RVM.
The Gemfile can have a ruby version lock in it, though this is usually a minimum requirement, like >= 2.3.0.
The README if the developer is kind.
Otherwise, there's no real way to know.
It's worth noting that Ruby 2.0, 2.4 and 3.0 are often the biggest upgrade hurdles, so it's worth trying with the latest version you can get away with, like 2.7.2 if practical, 3.0.0 if possible.

Is WSF / WSO2 compatible with ruby 1.9.3p0?

I'm working with WSF here: http://wso2.org/project/wsf/ruby/1.1.0/docs/manual.html
The documentation cites 1.8.5 or above, but I'm running into issues with 1.9.3p0. Can anyone confirm that this framework is incompatible with ruby 1.9.3?
The WSF/Ruby framework can most probably be incompatible with 1.9.3p0. That statement of version 1.8.5 or higher is based on the assumption that WSF/Ruby will remain backward compatible. Since there is no active development on the project, any issues with later Ruby versions may not be fixed.

What is the latest stable Rails version?

What is the latest stable version of rails? I want to install rails 3.1 but I see there is 3.1.3 now, what is the difference? What ruby version is it most compatible with?
I recommend to always check on GitHub via the "branches" menu what the latest version is on each branch.
You can see the latest version easily by checking the contents of the RAILS_VERSION file
https://github.com/rails/rails
You could also check RubyOnRails.org, but looking at the source code is the most reliable way.
If you already have a Rails App in production, I would highly recommend: don't just blindly take the latest version just because it just came out -- there were many cases in the past where a new version introduced incompatibilities or new bugs which were serious enough to have to wait for a fix before the features in the Rails release were really usable. I know a couple of people who have Production sites and still run 3.0.11 or lower, rather than 3.l.x
Again: check on GitHub under "Issues" which open Issues there are for a release, and/or google "Rails 3.y.z Problems" with the exact version number, so you get a feel of what problems could be introduced by upgrading to a new / the latest version.
On Wikipedia they have a list of historic release dates for the major Rails versions:
https://en.wikipedia.org/wiki/Ruby_on_Rails
The Rails version numbers have been explained reasonably well (Joseph Le Brech's answer), but the Ruby version numbers are slightly confusing and I could see why it's not really obvious what's going on there.
Joseph's explanation of Rails version number scheme is correct for Rails, but Ruby has a slightly different approach
1.9.3 is the most recent version of Ruby. Having said that, it was only released maybe a month ago, so it's possible there are breaking issues with certain gems. (Yes, there were breakages. Ruby in general will introduce breaking things between hotfix releases, and it's true here too)
1.9.2 is a more tried and true version of Ruby, having been out for at least 6 months now.
1.8.7 is the last version in the Ruby 1.8 line. Major language rework happened between 1.8 and 1.9, so some older gems may not have made the transition.
My recommendation: use Ruby 1.9.2 and Rails 3.1.3, unless you have really good excuses not to.
Ruby 1.9.2 is probably the safest bet for a Rails newbie, or green-field projects (projects without a lot of preexisting code). Rails 3.1 is an excellent version of Rails, which solves a lot of problems I had with the framework.
Rails 3.1 was released this fall, so old tutorials won't work, or will give odd errors. Try to look and read what version of Rails the book/tutorial/website/blog entry is talking about, before you dive in.
Latest stable release is always shown on the Ruby on Rails website's home page here http://rubyonrails.org/
To list all rails versions by gem:
gem list -ra rails | grep -G "^rails\ "
It's also helpful for cheeking what is the latest version for 4.x, 3.x and 2.x too.
According to rubygems, it's 3.1.3. Looks like you forgot a ..
major.minor.hotfix hotfixes will never change the behavior of an app unless you previously had a workaround for a bug implemented. Apps can easily be upgraded thru minor revisions, but it's usually not worth it and can be a distraction from getting features out of the way.
The latest release is 3.1.3. This is a minor release which has security and minor improvements.
The main version is 3.1, while minor upgrades are included in 3.1.x releases.
Anyway you should always use the latest one.
usually if you'll pull the latest rails gem, it's the stable one (unless once in history). although you can still use ruby 1.8.x version with the latest rails 3.x, it is more recommended to use 1.9.x.
anyway, everything you might need is in http://guides.rubyonrails.org and some nice people (including myself) are answering all bunch of questions in IRC on irc.freenode.net (#rubyonrails and #railsbridge)
good luck
The latest release is 6.0. it was released on August 16, 2019, making Webpack default, adding mailbox routing. Rails 5.2 is still maintained.

Which rails release is the best? [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
Now Rails 3 has come out, which version is the stable rails edition? Rails 2.3.3 , or Rails 2.3.4 ?
Rails 2.3.3 and 2.3.4 are out-of-date on the 2.x branch. The most recent Rails 2 version is 2.3.9.
The most recent release of Rails 3.x is 3.0.3.
They're all considered stable.
Rails 3 and 2 are both stable. Better use Rails 3 though
In the Rubygems, every release is considered stable, so you'd best choose the latest one.
Only versions that end in something like "pre", "beta" or "rc" are unstable, but unless you specify explicitly that you want an unstable version, you will get a stable one.
Install latest stable version:
gem install rails
Install latest unstable version:
gem install rails --pre
Currently 2x rails version is being outdated. Rails 3x is on step .
Rails 3.0 has been stable .So I will recommend you to move towards rails 3x
Rails 3 is the best one and also stable .
One of the key benefits of working with Rails is the vibrant community and regular iterative improvements that come with it. What that means is the pace of change will continue in all likelihood. Rails 3 has a lot of improvements over Rails 2. Since building on Rails 3.1 (I am currently building a project on rc5) I have to say there are a lot of very good features coming down the pipe (if you'll excuse the pun).
As a result, I'd say work with the newest version you feel comfortable with. Rails 3 is stable and most of the gems you'll use, that are being maintained actively (and you probably don't want to be using gems that were someone's part-time project they've forgotten about, anyway), are updated for Rails 3 and new gems are skipping over Rails 2 in a lot of cases.
So, future proof yourself and minimize the changes you'll have to make later when you want to take advantage of things like the Rails 3.1 asset pipeline, or some of the other features slated for release.
Edge rails i.e. rails 3.1.x is awesome with lot of improvements and bug fixes
rails 4 is on way and hopefully will be released in apr/may 2011. release is likely to disable support for ruby 1.8.7....stay tuned!
i am very happy with 3.0.3. did not have the guts to upgrade to 3.1. At one point i will need to bite the ebullet

Will upgrading gems break old Rails applications?

I have bunch of Rails apps running on Rails 1.x. I need to upgrade the gems so the question is, will these old apps still work after I upgrade gems?
Thank you.
The only way to be sure is to test, of course; that said, if you want to be sure the application works while you test, I believe that you can run
rake rails:freeze:gems
to copy the currently installed gems to the vendor folder inside your project. If, after testing, your project can use newer versions, run
rake rails:unfreeze
to return to the system installed versions of the gems.
It depends. If you're talking about upgrading to the latest gems that comprise Rails then if the applications use features that were long ago deprecated and subsequently removed, then they will break.
The only way to know for sure is to try it. Look out for deprecation warnings in the development log. Hopefully you have good test suites in place.
It's just like any other dependency. Look at the version number for each gem:
1.2.3
In this case, 1 is the major version. If this number has changed, then definitely do not upgrade. It will require work to use the new one.
2 is the minor version. You should be safe upgrading if only this number has changed, but be careful. Do a lot of smoke tests.
3 is a bug fix release. You can definitely upgrade if only this has changed. It's unlikely only this one has changed after so long, but if that's the case you're safe.
Unfortunately these are only guidelines, and many open-source projects among others do not follow them very well. So take the advice with a grain of salt.
If you are running with rails 1.x and you upgrade the rails gem, your application will break. Rails 2.x is very different.
Concerning other gems, they might break. Read the releases note, usually authors warn about backward compatibility.
If you don't want to upgrade, you could also freeze the gems.

Resources