diff options
author | Michael Pitman <michaelp@ibglobalweb.com> | 2017-08-29 16:38:52 +1000 |
---|---|---|
committer | Michael Pitman <michaelp@ibglobalweb.com> | 2017-08-29 16:38:52 +1000 |
commit | ab8c6381af8ad62c7af8edf3a6996c3f24f1793d (patch) | |
tree | ccfcc20dfd989acca4212f49d4935d54aa3ec289 /lib/bundler/shared_helpers.rb | |
parent | e0846667872e02cc1b6a81767ebbecad843b4dc0 (diff) | |
download | bundler-ab8c6381af8ad62c7af8edf3a6996c3f24f1793d.tar.gz |
Ensure that we use the appropriate path separator in the error message when displaying the bundle_path error for a RubyGems version earlier than 2.0
Diffstat (limited to 'lib/bundler/shared_helpers.rb')
-rw-r--r-- | lib/bundler/shared_helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb index 74710b5f51..7a8dda6e60 100644 --- a/lib/bundler/shared_helpers.rb +++ b/lib/bundler/shared_helpers.rb @@ -223,11 +223,11 @@ module Bundler def validate_bundle_path path_separator = Gem.respond_to?(:path_separator) ? Gem.path_separator : File::PATH_SEPARATOR return unless Bundler.bundle_path.to_s.split(path_separator).size > 1 - message = "Your bundle path contains text matching #{Gem.path_separator.inspect}, " \ + message = "Your bundle path contains text matching #{path_separator.inspect}, " \ "which is the path separator for your system. Bundler cannot " \ "function correctly when the Bundle path contains the " \ "system's PATH separator. Please change your " \ - "bundle path to not match #{Gem.path_separator.inspect}." \ + "bundle path to not match #{path_separator.inspect}." \ "\nYour current bundle path is '#{Bundler.bundle_path}'." raise Bundler::PathError, message end |