From 0ae3d265aa5e5db8a23f1038975b4693cc6f5e68 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 27 Jan 2025 19:06:46 +0900 Subject: [PATCH] Keep current file list --- irb.gemspec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/irb.gemspec b/irb.gemspec index c30b9fb7c..cce77e68f 100644 --- a/irb.gemspec +++ b/irb.gemspec @@ -21,9 +21,19 @@ Gem::Specification.new do |spec| spec.metadata["documentation_uri"] = "https://ruby.github.io/irb/" spec.metadata["changelog_uri"] = "#{spec.homepage}/releases" - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do - `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - end + spec.files = [ + "Gemfile", + "LICENSE.txt", + "README.md", + "Rakefile", + "bin/console", + "bin/setup", + "doc/irb/irb-tools.rd.ja", + "doc/irb/irb.rd.ja", + "exe/irb", + "irb.gemspec", + "man/irb.1", + ] + Dir.chdir(File.expand_path('..', __FILE__)) { Dir.glob("lib/**/*") } spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"]