summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam Wanninger <ajwann@users.noreply.github.com>2017-08-13 09:31:01 -0400
committerAdam Wanninger <ajwann@users.noreply.github.com>2017-08-13 09:31:01 -0400
commit9375eb9545239f417986cd2276b0995bbb94cfab (patch)
tree589b8f7a129856ab50d6620f9569f6826ca369c0 /lib
parentb7a412a2de9a562629aeeda4d83b10ac2b50887a (diff)
downloadbundler-9375eb9545239f417986cd2276b0995bbb94cfab.tar.gz
use include? instead of match
Diffstat (limited to 'lib')
-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 07ea3e98b5..5d3956abc1 100644
--- a/lib/bundler/shared_helpers.rb
+++ b/lib/bundler/shared_helpers.rb
@@ -204,7 +204,7 @@ module Bundler
private
def validate_bundle_path
- return unless Bundler.bundle_path.to_s.match(File::PATH_SEPARATOR)
+ return unless Bundler.bundle_path.to_s.include?(File::PATH_SEPARATOR)
message = "Your bundle path contains a '#{File::PATH_SEPARATOR}', " \
"which is the path separator for your system. Bundler cannot " \
"function correctly when the Bundle path contains the " \