Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Have bundler install to $GEM_HOME by default instead of ~/.bundle. Th…

…is still does not handle the OS X sudo problem.
  • Loading branch information...
commit 8f2099b1f75577888ceed56b7ea9d70ff244006b 1 parent 2c996b1
Carlhuda authored
2  lib/bundler.rb
View
@@ -64,7 +64,7 @@ def ui
def bundle_path
@bundle_path ||= begin
- path = settings[:path] || "#{Gem.user_home}/.bundle/#{Gem.ruby_engine}/#{Gem::ConfigMap[:ruby_version]}"
+ path = settings[:path] || Gem.dir
Pathname.new(path).expand_path(root)
end
end
4 spec/install/gems/simple_case_spec.rb
View
@@ -295,13 +295,15 @@
end
end
+ it "warns when using --disable-shared-gems when not specifying a bundle path"
+
it "does not use available system gems" do
gemfile <<-G
source "file://#{gem_repo1}"
gem "rack"
G
- bundle "install --disable-shared-gems"
+ bundle "install vendor --disable-shared-gems"
should_be_installed "rack 1.0.0"
end
6 spec/support/path.rb
View
@@ -13,7 +13,7 @@ def home(*path)
end
def default_bundle_path(*path)
- home(".bundle/#{Gem.ruby_engine}/#{Gem::ConfigMap[:ruby_version]}", *path)
+ system_gem_path(*path)
end
def bundled_app(*path)
@@ -46,8 +46,8 @@ def gem_repo3(*args)
tmp("gems/remote3", *args)
end
- def system_gem_path
- tmp("gems/system")
+ def system_gem_path(*path)
+ tmp("gems/system", *path)
end
def lib_path(*args)
Please sign in to comment.
Something went wrong with that request. Please try again.