1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Remove use of 'git ls-files'
This removes use of 'git ls-file' in gemspec file.
Author: Vivek K J <vivekkj@protonmail.com>
Forwarded: not-needed
Last-Update: 2021-10-27
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/glob.gemspec
+++ b/glob.gemspec
@@ -27,9 +27,7 @@ Gem::Specification.new do |spec|
spec.metadata["documentation_uri"] = "#{github_tree_url}/README.md"
spec.metadata["license_uri"] = "#{github_tree_url}/LICENSE.md"
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
- `git ls-files -z`.split("\x0")
- end
+ spec.files = Dir.glob("lib/**/*.*")
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
|