lib/bundler.rb in bundler-1.6.4 vs lib/bundler.rb in bundler-1.6.5
- old
+ new
@@ -187,10 +187,10 @@
def cache
bundle_path.join("cache/bundler")
end
def root
- default_gemfile.dirname.expand_path
+ @root ||= default_gemfile.dirname.expand_path
end
def app_config_path
ENV['BUNDLE_APP_CONFIG'] ?
Pathname.new(ENV['BUNDLE_APP_CONFIG']).expand_path(root) :