rubygems/rubygems — Issue #279: gem env reports EXECUTABLE DIRECTORY that is not what gem install actually uses
Author: whatcould
Created: 2012-02-18 18:20:50+00:00
State: open

When running `gem env`, rubygems reports the EXECUTABLE DIRECTORY as the result of `Gem.bindir`. But when installing/uninstalling gems, it actually uses `@bin_dir = options[:bin_dir] || Gem.bindir(gem_home)` -- `options[:bin_dir]` includes settings in the .gemrc.

I had a line `gem -n/usr/local/bin` in my .gemrc for some reason. This caused me some confusion, as my gem bins were not installing where `gem env` seemed to say they would be.

So, as the title says, `gem environment` was reporting a value that did not reflect the actual configuration of my environment.

I'd add a pull request but I'm not sure what the solution would be; maybe ideally, the environment command would actually parse the .gemrc file options? At the very least, maybe call it "default executable directory"?