I have an existing Ruby on Rails project. How do I find out which version of Ruby is originally used for the application?
Edit:
To sum up this thread: If there are no ruby-version specific gems, every Ruby should work.
All your posts were helpful – Thanks.
If no version-specific gems are in use, I’m not sure it’s possible to determine the exact ruby version used during development. In any case, the app may work fine against several versions, depending on the features it has.
If the app has comprehensive tests, you could just work back to find the latest version for which all the tests pass.
Checking the minimum version of Ruby compatible with the Rails version used would also help to narrow the field.