about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-30 04:03:54 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-30 04:05:41 +0000
commit58935096fcacdaa986bdc2aaae1f7688a7b7369a (patch)
tree1d12e450ccb287a60f937ed9acaf03cf3c00a6ce
parenta547f9f2d40e8d7809e00e78b287ee77e3ab763b (diff)
downloaddtas-58935096fcacdaa986bdc2aaae1f7688a7b7369a.tar.gz
RubyGems requires executables to be registered with it explicitly,
placing them in bin/ is not enough...
-rw-r--r--dtas.gemspec4
1 files changed, 3 insertions, 1 deletions
diff --git a/dtas.gemspec b/dtas.gemspec
index e94a927..df93c6c 100644
--- a/dtas.gemspec
+++ b/dtas.gemspec
@@ -1,13 +1,15 @@
 # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
 # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
 Gem::Specification.new do |s|
+  manifest = File.read('.gem-manifest').split(/\n/)
   s.name = %q{dtas}
   s.version = ENV["VERSION"]
   s.authors = ["dtas hackers"]
   s.summary = "duct tape audio suite for *nix"
   s.description = File.read("README").split(/\n\n/)[1].strip
   s.email = %q{e@80x24.org}
-  s.files = File.read('.gem-manifest').split(/\n/)
+  s.executables = manifest.grep(%r{\Abin/}).map { |s| s.sub(%r{\Abin/}, "") }
+  s.files = manifest
   s.homepage = 'http://dtas.80x24.org/'
   s.licenses = "GPLv3+"
 end