summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-12-20 17:26:41 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-12-20 17:36:29 +0100
commit322236491329e6136fc239fce31d00c6e3193d98 (patch)
tree15fb8608da6d1d5959afbd84bffdb20dfc46162e /lib
parent6ab5f479ae7e53e0833a342fb4129ae3952b049e (diff)
downloadbundler-322236491329e6136fc239fce31d00c6e3193d98.tar.gz
Fix `rake build` when path has spaces on itfix/rake_build_with_spaced_path
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/gem_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb
index 7d4e382be8..a09d03a448 100644
--- a/lib/bundler/gem_helper.rb
+++ b/lib/bundler/gem_helper.rb
@@ -73,7 +73,7 @@ module Bundler
def build_gem
file_name = nil
- sh("#{gem_command} build -V #{spec_path}".shellsplit) do
+ sh("#{gem_command} build -V #{spec_path.shellescape}".shellsplit) do
file_name = File.basename(built_gem_path)
SharedHelpers.filesystem_access(File.join(base, "pkg")) {|p| FileUtils.mkdir_p(p) }
FileUtils.mv(built_gem_path, "pkg")