From a25864c29f2f84cd18585e6544e8764f51cfa2e9 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sun, 12 May 2024 19:37:36 -0300 Subject: [PATCH] Decouple gemspec from git --- bsdcontrol.rb.gemspec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bsdcontrol.rb.gemspec b/bsdcontrol.rb.gemspec index 455d3f5..208261f 100644 --- a/bsdcontrol.rb.gemspec +++ b/bsdcontrol.rb.gemspec @@ -9,7 +9,13 @@ Gem::Specification.new do |gem| gem.homepage = 'https://git.hardenedbsd.org/0x1eef/bsdcontrol.rb#readme' gem.version = BSD::Control::VERSION gem.licenses = ['0BSD'] - gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) + gem.files = Dir[ + File.join(__dir__, "lib", "*.rb"), + File.join(__dir__, "lib", "**", "*.rb"), + File.join(__dir__, "ext", "bsdcontrol.rb", "*.{c,h,rb}"), + File.join(__dir__, "share", "bsdcontrol.rb", "examples", "*.rb"), + "README.md", "LICENSE" + ] gem.require_paths = ['lib'] gem.extensions = %w[ext/bsdcontrol.rb/extconf.rb] gem.summary = 'Ruby bindings for libhbsdcontrol'