summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2018-03-18 14:51:38 -0600
committermo <mo.khan@gmail.com>2018-03-18 14:51:38 -0600
commit98b49a0ac3cac4ba05a50499c5bc58cfa61f7366 (patch)
tree44aabb77e671ba9d6b6873195539d2579a44869f
parent2ed4e10db248704346c490f7ffc5d913f2985ef6 (diff)
ignore dotfiles and bin dir.v0.1.0
-rw-r--r--ats-cli.gemspec6
1 files changed, 4 insertions, 2 deletions
diff --git a/ats-cli.gemspec b/ats-cli.gemspec
index e0c3a65..233f78c 100644
--- a/ats-cli.gemspec
+++ b/ats-cli.gemspec
@@ -14,8 +14,10 @@ Gem::Specification.new do |spec|
spec.homepage = "https://www.mokhan.ca/"
spec.license = "MIT"
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
- f.match(%r{^(test|spec|features)/})
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
+ f.match(%r{^(test|spec|features)/}) ||
+ f.match(/^\..*/) ||
+ f.match(%r{^bin/.*})
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }