Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reject directory from Gem::Specification#files #813

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading