From 6bb53630c3398b2042fb99d5232c68399491d338 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 28 Jan 2025 09:36:44 +0900 Subject: [PATCH] Ignore to contain directory to Gem::Specification#files --- irb.gemspec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/irb.gemspec b/irb.gemspec index cce77e68f..af14713f6 100644 --- a/irb.gemspec +++ b/irb.gemspec @@ -33,7 +33,9 @@ Gem::Specification.new do |spec| "exe/irb", "irb.gemspec", "man/irb.1", - ] + Dir.chdir(File.expand_path('..', __FILE__)) { Dir.glob("lib/**/*") } + ] + Dir.chdir(File.expand_path('..', __FILE__)) do + Dir.glob("lib/**/*").map {|f| f unless File.directory?(f) }.compact + end spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"]