wayneeseguin/rvm — Issue #650: rvmrc gemset with capital letters not set in list
Author: fullbridge-batkins
Created: 2011-12-20 15:44:14+00:00
State: open

Just did an `rvm get head`. Version got upgraded to `1.10.0`. I have a bunch of Ruby projects in a directory, each with their own `.rvmrc` file. If I change around to most of the projects, it acts as expected. One of my gemsets is named `FB-cms`, (`F` and `B` are capital in the name).

If I `cd` into the project directory, and then do an `gem list`, I see the gems that are part of that gemset listed. However, if I do an `rvm gemset list`, it doesn't have arrows pointing to that gemset to indicate that that's the selected gemset. All of the other projects' gemset names have all lowercase letters so I'm assuming this is a casing issue.

If I do an `rvm info`, it prints out this:

environment:
PATH: ...
GEM_HOME: "/Users/batkins/.rvm/gems/ree-1.8.7-2011.03@fb-cms"
GEM_PATH: "/Users/batkins/.rvm/gems/ree-1.8.7-2011.03@fb-cms:/Users/batkins/.rvm/gems/ree-1.8.7-2011.03@global"
...
gemset: "fb-cms"

So for some reason, it seems to be doing a `downcase` on the name of the gemset after it reads it from the `.rvmrc` file. (And yes, I double checked the `.rvmrc` file to make sure the name had upper-case on the `F` and `B` in the file).

Note if I just open up a new shell, and do `rvm gemset use FB-cms`, it picks it up as expected and gets set in the list. If I do an `rvm info` after that, it prints out this:

environment:
PATH: ...
GEM_HOME: "/Users/batkins/.rvm/gems/ree-1.8.7-2011.03@FB-cms"
GEM_PATH: "/Users/batkins/.rvm/gems/ree-1.8.7-2011.03@FB-cms:/Users/batkins/.rvm/gems/ree-1.8.7-2011.03@global"
...
gemset: "FB-cms"

So as you can see, the capitalization of the letters here doesn't impair the expected functionality when using the `gemset use` command, but it does when using an `.rvmrc` file.