Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
When GEM_HOME is set to an empty value, GEM_PATH get's built wrong. #133
An empty GEM_HOME should not be used to generate the GEM_PATH. When bundler creates the path it creates an invalid GEM_PATH=":/Users/User/.gem/ruby/1.8:/opt/local/lib/ruby/gems/1.8:". It should not have that leading ':'
Aridious on IRC suggests the issue lies in Bundler#configure_gem_home_and_path
I couldn't quite track it down, as to who was setting GEM_HOME incorrectly (rvm? rubygem update --system?).
in Bundler#configure_gem_home_and_path ln 122, the array [gem_home, gem_path] looked like this:
if the code is switched to:
it is ugly; perhaps scrubbing elsewhere is more appropriate (so another error like this doesn't show up somewhere else).