aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler.rb
diff options
context:
space:
mode:
authorKohei Suzuki <kohei-suzuki@cookpad.com>2013-05-14 14:58:40 +0900
committerKohei Suzuki <kohei-suzuki@cookpad.com>2013-05-23 13:32:40 +0900
commit4be789d60f71adc684fe763c414a220751af9c9f (patch)
tree326b65de47cd97bb6fcc3482011d8ac0d455303e /lib/bundler.rb
parenta350159498ee55a146b4200f7da0373cecf8bc52 (diff)
downloadbundler-4be789d60f71adc684fe763c414a220751af9c9f.tar.gz
Prohibit Dir.pwd while another thread is doing Dir.chdir
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r--lib/bundler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index ff0f646d..54137df3 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -316,7 +316,7 @@ module Bundler
path = Pathname.new(file)
# Eval the gemspec from its parent directory, because some gemspecs
# depend on "./" relative paths.
- Dir.chdir(path.dirname.to_s) do
+ SharedHelpers.chdir(path.dirname.to_s) do
contents = path.read
if contents[0..2] == "---" # YAML header
eval_yaml_gemspec(path, contents)