From 4a149f8096cb80646bd148be155a21ae8044a81e Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 28 Jan 2025 09:19:37 +0900 Subject: [PATCH] debug --- irb.gemspec | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/irb.gemspec b/irb.gemspec index cce77e68f..c2b059115 100644 --- a/irb.gemspec +++ b/irb.gemspec @@ -21,19 +21,21 @@ Gem::Specification.new do |spec| spec.metadata["documentation_uri"] = "https://ruby.github.io/irb/" spec.metadata["changelog_uri"] = "#{spec.homepage}/releases" - 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.files = Dir.chdir(File.expand_path('..', __FILE__)) do + [ + "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.glob("lib/**/*") + end spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"]