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 73340f2 commit 79fc33f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reline.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/ruby/reline'
spec.license = 'Ruby'

spec.files = Dir['BSDL', 'COPYING', 'README.md', 'license_of_rb-readline', '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.require_paths = ['lib']
spec.metadata = {
"bug_tracker_uri" => "https://github.com/ruby/reline/issues",
Expand Down

0 comments on commit 79fc33f

Please sign in to comment.