summaryrefslogtreecommitdiff
path: root/bundler.gemspec
diff options
context:
space:
mode:
authorColby Swandale <me@colby.fyi>2018-12-29 17:11:42 +1100
committerColby Swandale <me@colby.fyi>2018-12-29 17:11:42 +1100
commit3472aa9750252ed83dc32c348c2bd3082dd00d4e (patch)
treebd439423e2bdfe2d514a272070ba8736d3c97db6 /bundler.gemspec
parentc77d49660c489d1a25676622e32410b0b284d6fe (diff)
downloadbundler-3472aa9750252ed83dc32c348c2bd3082dd00d4e.tar.gz
embed Shellwords.escape into bundler gemspec
Diffstat (limited to 'bundler.gemspec')
-rw-r--r--bundler.gemspec3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundler.gemspec b/bundler.gemspec
index 634340e6f3..12b1b59b98 100644
--- a/bundler.gemspec
+++ b/bundler.gemspec
@@ -47,7 +47,8 @@ Gem::Specification.new do |s|
s.add_development_dependency "ronn", "~> 0.7.3"
s.add_development_dependency "rspec", "~> 3.6"
- s.files = IO.popen("git -C #{File.dirname(__FILE__)} ls-files -z", &:read).split("\x0").select {|f| f.match(%r{^(lib|exe)/}) }
+ base_dir = File.dirname(__FILE__).gsub(%r{([^A-Za-z0-9_\-.,:\/@\n])}, "\\\\\\1")
+ s.files = IO.popen("git -C #{base_dir} ls-files -z", &:read).split("\x0").select {|f| f.match(%r{^(lib|exe)/}) }
# we don't check in man pages, but we need to ship them because
# we use them to generate the long-form help for each command.