hmans/rbfu — Issue #11: Does not switch back to home/higher directory version
Author: craiglittle
Created: 2012-03-09 10:43:00+00:00
State: open

First of all, love the script!

Here's the issue:

Let's say I have .rbfu-version files sitting in my home directory and an app folder. The auto feature is turned on. When I cd down into the app directory, the ruby version changes just fine. But when I cd back out of the directory, it stays the same version as specified in the project directory.

I think it would be more intuitive if it would automatically switch back to the next highest version definition in the directory tree (if there is one) instead of staying on the project version.

Example:

~ (1.9.3)
|
-- stuff (1.9.2)
|
-- projects
|
-- sample_app (1.8.7)

Entering the sample_app folder switches me to 1.8.7. Moving back up to projects keeps me at 1.8.7. It seems like the script should look for the next available version file in the tree; in this case, 1.9.2 located in stuff.

Let me know what you think (or if I'm doing something wrong)!