I've been using this technique in most of my Ruby projects lately where Ruby versions are required:
- Create
.rbenv-versioncontaining the target Ruby using a definition name defined in ruby-build (example below). These strings are a proper subset of RVM Ruby string names so far... - Create
.rvmrc(withrvm --create --rvmrc "1.9.3@myapp") and edit theenvironment_id=line to fetch the Ruby version from.rbenv-version(example below).
Today I learned about another Ruby manager, rbfu, where the author is using a similar technique with .rbfu-version.