Permalink
Browse files

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
  • Loading branch information...
1 parent 480f039 commit 1c05f01dcef0edbd79756108cec28df8a6744079 Tony Arcieri committed with indirect Oct 1, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/bundler.rb
View
@@ -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

0 comments on commit 1c05f01

Please sign in to comment.