Skip to content

Commit

Permalink
Namespace the default bundle path to support with the ruby engine and…
Browse files Browse the repository at this point in the history
… version.
  • Loading branch information
Carlhuda committed Feb 12, 2010
1 parent 4d8a76f commit 58b31d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/bundler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions spec/install/gems_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions spec/support/path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 58b31d8

Please sign in to comment.