Bump to 3.1.1 to support Rails 4 and up.