1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
Author: Andreas Tille <tille@debian.org>
Last-Update: 2026-02-06
Description: Do not rely on Git to know about spec.files
--- a/ninix-fmo.gemspec
+++ b/ninix-fmo.gemspec
@@ -15,12 +15,15 @@ Gem::Specification.new do |spec|
spec.metadata["source_code_uri"] = "https://github.com/Tatakinov/ninix-fmo"
# Specify which files should be added to the gem when it is released.
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
- `git ls-files -z`.split("\x0").reject do |f|
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features|utils)/|\.(?:git|travis|circleci)|appveyor|debian)})
- end
- end
+ # Debian: avoid using git at build time
+ spec.files =
+ Dir.glob("{lib,exe,ext}/**/*").reject { |f| File.directory?(f) } +
+ Dir.glob("README*") +
+ %w[
+ COPYING
+ ChangeLog.ninix-aya
+ ninix-kagari.gemspec
+ ]
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
|