File: remove-use-of-git-ls-files.patch

package info (click to toggle)
ruby-glob 0.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 200 kB
  • sloc: ruby: 449; makefile: 7; sh: 4
file content (20 lines) | stat: -rw-r--r-- 726 bytes parent folder | download
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) }