summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Arcieri <tony@medioh.com>2010-09-30 20:29:49 -0600
committerAndre Arko <andre@arko.net>2010-10-01 20:08:24 -0700
commit1c05f01dcef0edbd79756108cec28df8a6744079 (patch)
tree54094178867bc21dabc11540aa143b737a1ae012
parent480f0396d27c1293f0358d2ba5f5b8348ff6c0f9 (diff)
downloadbundler-1c05f01dcef0edbd79756108cec28df8a6744079.tar.gz
Create the GEM_HOME directory before setting it
When Bundler sets GEM_HOME before creating the path in question, JRuby's monkeypatch to Gem.set_paths ignores the directory because it doesn't exist. There is a JRuby bug (and patch) at http://jira.codehaus.org/browse/JRUBY-5104, but it won't be included in JRuby until 1.5.4 at the earliest. Closes #602, #734
-rw-r--r--lib/bundler.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index e25b7cae00..1b28908a5e 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -253,6 +253,7 @@ module Bundler
ENV["GEM_HOME"] = bundle_path.to_s
end
+ FileUtils.mkdir_p bundle_path.to_s
Gem.clear_paths
end