Skip to content

Commit 7bb1e88

Browse files
authored
Merge pull request #813 from ruby/fixup-rbinstall
Reject directory from Gem::Specification#files
2 parents ec28843 + defcd36 commit 7bb1e88

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

reline.gemspec

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ Gem::Specification.new do |spec|
1616
spec.homepage = 'https://github.com/ruby/reline'
1717
spec.license = 'Ruby'
1818

19-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20-
Dir['BSDL', 'COPYING', 'README.md', 'license_of_rb-readline', 'lib/**/*']
19+
spec.files = [
20+
'BSDL',
21+
'COPYING',
22+
'README.md',
23+
'license_of_rb-readline'
24+
] + Dir.chdir(File.expand_path('..', __FILE__)) do
25+
Dir.glob("lib/**/*").map {|f| f unless File.directory?(f) }.compact
2126
end
2227
spec.require_paths = ['lib']
2328
spec.metadata = {

0 commit comments

Comments
 (0)