summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSmit Shah <who828@gmail.com>2014-11-18 01:37:08 -0800
committerSmit Shah <who828@gmail.com>2014-11-18 15:52:52 -0800
commit714f23e99c9628260909e11099dcfba3dda35b0a (patch)
tree9ad175efb19e62098cf5d6e9f8a4225ea9197969
parent48e90facfc57da4d44d2c90839fb8f8ff83f2355 (diff)
downloadbundler-714f23e99c9628260909e11099dcfba3dda35b0a.tar.gz
||= is not thread safe
-rw-r--r--lib/bundler/shared_helpers.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb
index ae12f6a209..20db09c3e5 100644
--- a/lib/bundler/shared_helpers.rb
+++ b/lib/bundler/shared_helpers.rb
@@ -19,6 +19,7 @@ end
module Bundler
module SharedHelpers
attr_accessor :gem_loaded
+ CHDIR_MONITOR = Monitor.new
def default_gemfile
gemfile = find_gemfile
@@ -35,7 +36,7 @@ module Bundler
end
def chdir_monitor
- @chdir_monitor ||= Monitor.new
+ CHDIR_MONITOR
end
def chdir(dir, &blk)