diff options
author | Patricia Arbona <arbonap@gmail.com> | 2017-09-28 14:12:05 -0400 |
---|---|---|
committer | Patricia Arbona <arbonap@gmail.com> | 2017-09-28 14:12:05 -0400 |
commit | f33ff098a66f81c5615e4b1d0cd8442b28be76a9 (patch) | |
tree | e68983debbbd30a8a9c8f074747ed417d3f6e425 /bundler.gemspec | |
parent | 5e9c40aa1c0b4993953059fffe1ff724f41da95e (diff) | |
download | bundler-f33ff098a66f81c5615e4b1d0cd8442b28be76a9.tar.gz |
Pass gemspec directory path to Git
Diffstat (limited to 'bundler.gemspec')
-rw-r--r-- | bundler.gemspec | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bundler.gemspec b/bundler.gemspec index 3de9c4db74..870d222f2b 100644 --- a/bundler.gemspec +++ b/bundler.gemspec @@ -4,6 +4,7 @@ lib = File.expand_path("../lib/", __FILE__) $:.unshift lib unless $:.include?(lib) require "bundler/version" +require "shellwords" Gem::Specification.new do |s| s.name = "bundler" @@ -43,7 +44,8 @@ Gem::Specification.new do |s| s.add_development_dependency "ronn", "~> 0.7.3" s.add_development_dependency "rspec", "~> 3.6" - s.files = `git ls-files -z`.split("\x0").select {|f| f.match(%r{^(lib|exe)/}) } + s.files = `git -C #{Shellwords.escape File.dirname(__FILE__)} ls-files -z`.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. s.files += Dir.glob("man/**/*") |