summaryrefslogtreecommitdiff
path: root/lib/bundler/templates/newgem
diff options
context:
space:
mode:
authorAndré Arko <mail@arko.net>2015-02-13 10:18:57 +0930
committerAndré Arko <mail@arko.net>2015-02-13 10:18:57 +0930
commit42105c671b9910963b0345e45406438687800d5b (patch)
tree8b2a93777df71b1cc32b71d67af0a35dc5ae4435 /lib/bundler/templates/newgem
parent3adb756a8dee0d9757146048112467ee98f11d5c (diff)
parentabcddc15df1662d4930fcb203839b353dd0e8b54 (diff)
downloadbundler-42105c671b9910963b0345e45406438687800d5b.tar.gz
Merge pull request #3395 from TimMoore/issue-3392-set-gem-bindir
Set spec.bindir to the new executables location in the new gem template
Diffstat (limited to 'lib/bundler/templates/newgem')
-rw-r--r--lib/bundler/templates/newgem/newgem.gemspec.tt1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/newgem.gemspec.tt b/lib/bundler/templates/newgem/newgem.gemspec.tt
index efc08c9544..bc52852b73 100644
--- a/lib/bundler/templates/newgem/newgem.gemspec.tt
+++ b/lib/bundler/templates/newgem/newgem.gemspec.tt
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
+ spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
<%- if config[:ext] -%>