Permalink
Browse files

Namespace the default bundle path to support with the ruby engine and…

… version.
  • Loading branch information...
1 parent 4d8a76f commit 58b31d84a2f28c3127f75dc09e76b75dc6d40cd4 Carlhuda committed Feb 12, 2010
Showing with 4 additions and 3 deletions.
  1. +1 −1 lib/bundler.rb
  2. +1 −0 spec/install/gems_spec.rb
  3. +2 −2 spec/support/path.rb
View
@@ -56,7 +56,7 @@ def ui
def bundle_path
@bundle_path ||= begin
- path = settings[:path] || "#{Gem.user_home}/.bundle"
+ path = settings[:path] || "#{Gem.user_home}/.bundle/#{Gem.ruby_engine}/#{Gem::ConfigMap[:ruby_version]}"
Pathname.new(path).expand_path(root)
end
end
@@ -16,6 +16,7 @@
gem 'rack'
G
+ home(".bundle/#{Gem.ruby_engine}/#{Gem::ConfigMap[:ruby_version]}/gems/rack-1.0.0").should exist
should_be_installed("rack 1.0.0")
end
@@ -8,8 +8,8 @@ def tmp(*path)
root.join("tmp", *path)
end
- def home
- tmp.join("home")
+ def home(*path)
+ tmp.join("home", *path)
end
def bundled_app(*path)

0 comments on commit 58b31d8

Please sign in to comment.