[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] dtas.gemspec: mark executables correctly
From: |
Eric Wong |
Subject: |
[PATCH 1/4] dtas.gemspec: mark executables correctly |
Date: |
Mon, 30 Sep 2013 09:18:05 +0000 |
RubyGems requires executables to be registered with it explicitly,
placing them in bin/ is not enough...
---
dtas.gemspec | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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 <address@hidden> 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 = address@hidden
- 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
--
1.8.4
- [PATCH 1/4] dtas.gemspec: mark executables correctly,
Eric Wong <=