summaryrefslogtreecommitdiff
path: root/lib/bundler/shared_helpers.rb
diff options
context:
space:
mode:
authorMichael Pitman <michaelp@ibglobalweb.com>2017-08-30 13:09:01 +1000
committerMichael Pitman <michaelp@ibglobalweb.com>2017-08-30 13:09:01 +1000
commit17e9a37c1a79d9c3220a90e36f5f32dc61c69245 (patch)
tree238d9ffc7673f193c534e89efbc39de5a6a31a24 /lib/bundler/shared_helpers.rb
parent22752b09366973ab9a05343aae7be9fb1bc14109 (diff)
downloadbundler-17e9a37c1a79d9c3220a90e36f5f32dc61c69245.tar.gz
Move the path_separator logic into the appropriate RubygemsIntegration classes
Diffstat (limited to 'lib/bundler/shared_helpers.rb')
-rw-r--r--lib/bundler/shared_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb
index 7a8dda6e60..a18966b324 100644
--- a/lib/bundler/shared_helpers.rb
+++ b/lib/bundler/shared_helpers.rb
@@ -221,7 +221,7 @@ module Bundler
private
def validate_bundle_path
- path_separator = Gem.respond_to?(:path_separator) ? Gem.path_separator : File::PATH_SEPARATOR
+ path_separator = Bundler.rubygems.path_separator
return unless Bundler.bundle_path.to_s.split(path_separator).size > 1
message = "Your bundle path contains text matching #{path_separator.inspect}, " \
"which is the path separator for your system. Bundler cannot " \