lib/bundler.rb in bundler-0.9.13 vs lib/bundler.rb in bundler-0.9.14

- old
+ new

@@ -1,12 +1,14 @@ require 'fileutils' require 'pathname' require 'yaml' require 'bundler/rubygems_ext' + module Bundler - VERSION = "0.9.13" + VERSION = "0.9.14" + ORIGINAL_ENV = ENV.to_hash autoload :Definition, 'bundler/definition' autoload :Dependency, 'bundler/dependency' autoload :Dsl, 'bundler/dsl' autoload :Environment, 'bundler/environment' @@ -95,19 +97,31 @@ def install_path home.join("gems") end + def specs_path + bundle_path.join("specifications") + end + def cache - bundle_path.join('cache/bundler') + bundle_path.join("cache/bundler") end def root default_gemfile.dirname end def settings @settings ||= Settings.new(root) + end + + def with_clean_env + bundled_env = ENV.to_hash + ENV.replace(ORIGINAL_ENV) + yield + ensure + ENV.replace(bundled_env.to_hash) end private def default_gemfile