From 1c05f01dcef0edbd79756108cec28df8a6744079 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Thu, 30 Sep 2010 20:29:49 -0600 Subject: [PATCH] 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 --- lib/bundler.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bundler.rb b/lib/bundler.rb index e25b7cae003..1b28908a5ea 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -253,6 +253,7 @@ def configure_gem_home_and_path ENV["GEM_HOME"] = bundle_path.to_s end + FileUtils.mkdir_p bundle_path.to_s Gem.clear_paths end