diff options
author | Stefan Lance <stefan@lances.net> | 2015-06-18 20:24:51 -0500 |
---|---|---|
committer | Stefan Lance <stefan@lances.net> | 2015-07-01 18:56:18 -0500 |
commit | 851bb0c8170efc1d169f95eda30a61a99f30fb06 (patch) | |
tree | e998e5a68193e9d7cc9481a2404a045cd149e4bd | |
parent | 9b5cad63f4b6ee2bcb5c00b9d48d43c5cd8d24a0 (diff) | |
download | bundler-851bb0c8170efc1d169f95eda30a61a99f30fb06.tar.gz |
Change default install path to ./.bundle/gems
-rw-r--r-- | lib/bundler/settings.rb | 2 | ||||
-rw-r--r-- | spec/commands/show_spec.rb | 2 | ||||
-rw-r--r-- | spec/support/path.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index beb53205ec..4e5aedb537 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -138,7 +138,7 @@ module Bundler if path = self[:path] "#{path}/#{Bundler.ruby_scope}" else - Bundler.rubygems.gem_dir + File.join(@root, Bundler.ruby_scope) end end diff --git a/spec/commands/show_spec.rb b/spec/commands/show_spec.rb index f38da20222..945f5cdff1 100644 --- a/spec/commands/show_spec.rb +++ b/spec/commands/show_spec.rb @@ -31,7 +31,7 @@ describe "bundle show" do end it "warns if path no longer exists on disk" do - FileUtils.rm_rf("#{system_gem_path}/gems/rails-2.3.2") + FileUtils.rm_rf("#{default_bundle_path}/gems/rails-2.3.2") bundle "show rails" diff --git a/spec/support/path.rb b/spec/support/path.rb index 56e8dd8b41..9c08f90380 100644 --- a/spec/support/path.rb +++ b/spec/support/path.rb @@ -15,7 +15,7 @@ module Spec end def default_bundle_path(*path) - system_gem_path(*path) + bundled_app(".bundle", Bundler.ruby_scope, *path) end def bundled_app(*path) |