Skip to content

Commit

Permalink
Keep current file list
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jan 27, 2025
1 parent cf5e61e commit 0ae3d26
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions irb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 0ae3d26

Please sign in to comment.