Skip to content

Commit

Permalink
Use git ls-files for bundled gems preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jan 24, 2025
1 parent 051164f commit 1ef78ae
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions irb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,9 @@ 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.glob("lib/**/*")
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.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
Expand Down

0 comments on commit 1ef78ae

Please sign in to comment.