Skip to content

Commit

Permalink
Don't use git ls-files
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Feb 7, 2025
1 parent a0075eb commit 6be77b8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions net-smtp.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ Gem::Specification.new do |spec|
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage

spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files README.md NEWS.md LICENSE.txt net-smtp.gemspec lib`.split
spec.files = [
"README.md",
"NEWS.md",
"LICENSE.txt",
"net-smtp.gemspec"
] + Dir.chdir(File.expand_path('..', __FILE__)) do
Dir.glob("lib/**/*").map {|f| f unless File.directory?(f) }.compact
end
spec.require_paths = ["lib"]

Expand Down

0 comments on commit 6be77b8

Please sign in to comment.