lib/bundler.rb in bundler-0.9.8 vs lib/bundler.rb in bundler-0.9.9
- old
+ new
@@ -2,11 +2,11 @@
require 'pathname'
require 'yaml'
require 'bundler/rubygems_ext'
module Bundler
- VERSION = "0.9.8"
+ VERSION = "0.9.9"
autoload :Definition, 'bundler/definition'
autoload :Dependency, 'bundler/dependency'
autoload :Dsl, 'bundler/dsl'
autoload :Environment, 'bundler/environment'
@@ -116,11 +116,11 @@
def configure_gem_home_and_path
if settings[:disable_shared_gems]
ENV['GEM_HOME'] = File.expand_path(bundle_path, root)
ENV['GEM_PATH'] = ''
else
- gem_home, gem_path = Gem.dir, Gem.path
- ENV["GEM_PATH"] = [gem_home, gem_path].flatten.compact.join(File::PATH_SEPARATOR)
+ paths = [Gem.dir, Gem.path].flatten.compact.reject{|p| p.empty? }
+ ENV["GEM_PATH"] = paths.join(File::PATH_SEPARATOR)
ENV["GEM_HOME"] = bundle_path.to_s
end
Gem.clear_paths
end