diff options
author | Homu <homu@barosl.com> | 2015-08-14 16:04:27 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2015-08-14 16:04:27 +0900 |
commit | 1b3eb2465a64d938490110e84b5ca97a51253d14 (patch) | |
tree | 1188f25e6d5a9a7b80f980085a04617ba271fae5 /lib/bundler/source/git | |
parent | c51de5b27d116c9c1e3520c5d3b1de18f5b1a16d (diff) | |
parent | 122518fb89d97628589782e0fdac72f716496d18 (diff) | |
download | bundler-1b3eb2465a64d938490110e84b5ca97a51253d14.tar.gz |
Auto merge of #3924 - Koronen:fix-style-regexp_literal, r=segiddins
Fix Style/RegexpLiteral
Diffstat (limited to 'lib/bundler/source/git')
-rw-r--r-- | lib/bundler/source/git/git_proxy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb index 9b1dfc859a..bc6513bcea 100644 --- a/lib/bundler/source/git/git_proxy.rb +++ b/lib/bundler/source/git/git_proxy.rb @@ -86,7 +86,7 @@ module Bundler git_retry %|clone --no-checkout --quiet "#{path}" "#{destination}"| File.chmod(((File.stat(destination).mode | 0777) & ~File.umask), destination) rescue Errno::EEXIST => e - file_path = e.message[/.*?(\/.*)/, 1] + file_path = e.message[%r{.*?(/.*)}, 1] raise GitError, "Bundler could not install a gem because it needs to " \ "create a directory, but a file exists - #{file_path}. Please delete " \ "this file and try again." |