Specify ruby version for special cases of Rails dependency