Skip to content

Commit

Permalink
Merge pull request #813 from ruby/fixup-rbinstall
Browse files Browse the repository at this point in the history
Reject directory from Gem::Specification#files
  • Loading branch information
hsbt authored Jan 28, 2025
2 parents ec28843 + defcd36 commit 7bb1e88
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions reline.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/ruby/reline'
spec.license = 'Ruby'

spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
Dir['BSDL', 'COPYING', 'README.md', 'license_of_rb-readline', 'lib/**/*']
spec.files = [
'BSDL',
'COPYING',
'README.md',
'license_of_rb-readline'
] + Dir.chdir(File.expand_path('..', __FILE__)) do
Dir.glob("lib/**/*").map {|f| f unless File.directory?(f) }.compact
end
spec.require_paths = ['lib']
spec.metadata = {
Expand Down

0 comments on commit 7bb1e88

Please sign in to comment.