Change gem version depending on Rails version