lib/bundler.rb in bundler-1.0.11 vs lib/bundler.rb in bundler-1.0.12

- old
+ new

@@ -263,10 +263,12 @@ paths = [Gem.dir, Gem.path].flatten.compact.uniq.reject{|p| p.empty? } ENV["GEM_PATH"] = paths.join(File::PATH_SEPARATOR) ENV["GEM_HOME"] = bundle_path.to_s end - FileUtils.mkdir_p bundle_path.to_s + # TODO: This mkdir_p is only needed for JRuby <= 1.5 and should go away (GH #602) + FileUtils.mkdir_p bundle_path.to_s rescue nil + Gem.clear_paths end def upgrade_lockfile lockfile = default_lockfile