Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move the bundle cache to BUNDLE_PATH/cache/bundler

  • Loading branch information...
commit 310083df2f5907aab9f2ee9cecf9305227fed145 1 parent 58b31d8
Carlhuda authored
2  lib/bundler.rb
View
@@ -96,7 +96,7 @@ def install_path
end
def cache
- home.join("cache")
+ bundle_path.join('cache/bundler')
end
def root
2  spec/install/gems_spec.rb
View
@@ -16,7 +16,7 @@
gem 'rack'
G
- home(".bundle/#{Gem.ruby_engine}/#{Gem::ConfigMap[:ruby_version]}/gems/rack-1.0.0").should exist
+ default_bundle_path("gems/rack-1.0.0").should exist
should_be_installed("rack 1.0.0")
end
4 spec/install/git_spec.rb
View
@@ -24,6 +24,10 @@
out.should == "WIN"
end
+ it "caches the git repo" do
+ default_bundle_path('cache/bundler/git/foo-1.0-2da26eec78721fc54f4cc2709816e1cd504a4e82').should exist
+ end
+
it "floats on master if no ref is specified" do
update_git "foo"
4 spec/support/path.rb
View
@@ -12,6 +12,10 @@ def home(*path)
tmp.join("home", *path)
end
+ def default_bundle_path(*path)
+ home(".bundle/#{Gem.ruby_engine}/#{Gem::ConfigMap[:ruby_version]}", *path)
+ end
+
def bundled_app(*path)
root = tmp.join("bundled_app")
FileUtils.mkdir_p(root)
Please sign in to comment.
Something went wrong with that request. Please try again.