diff options
author | Jan Piotrowski <piotrowski+git@gmail.com> | 2019-03-03 20:31:38 +0100 |
---|---|---|
committer | Jan Piotrowski <piotrowski+git@gmail.com> | 2019-03-03 20:31:38 +0100 |
commit | 6464fc09a16d1bf226dc3f5163e63136bee6692a (patch) | |
tree | a9018be0c988ca1a091b7f615dbe8d958ed4f003 | |
parent | eeb5722f24e8868cbbf3687cc772254ac65d19df (diff) | |
download | bundler-6464fc09a16d1bf226dc3f5163e63136bee6692a.tar.gz |
adapt path regex to also work with Windows paths
-rw-r--r-- | spec/support/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index 9be5955ac3..d9ccd86f63 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -318,7 +318,7 @@ module Spec Dir.chdir(root) { gem_command! :build, gemspec.to_s } end bundler_path = root + "bundler-#{Bundler::VERSION}.gem" - elsif g.to_s =~ %r{\A/.*\.gem\z} + elsif g.to_s =~ %r{\A[A-Z]?:/.*\.gem\z} g else "#{gem_repo}/gems/#{g}.gem" |