diff options
author | Smit Shah <who828@gmail.com> | 2014-11-18 01:37:08 -0800 |
---|---|---|
committer | Smit Shah <who828@gmail.com> | 2014-11-18 15:52:52 -0800 |
commit | 714f23e99c9628260909e11099dcfba3dda35b0a (patch) | |
tree | 9ad175efb19e62098cf5d6e9f8a4225ea9197969 | |
parent | 48e90facfc57da4d44d2c90839fb8f8ff83f2355 (diff) | |
download | bundler-714f23e99c9628260909e11099dcfba3dda35b0a.tar.gz |
||= is not thread safe
-rw-r--r-- | lib/bundler/shared_helpers.rb | 3 |
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) |