File: 0001-gemspec-drop-git-usage.patch

package info (click to toggle)
ruby-debug-inspector 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 140 kB
  • sloc: ruby: 96; ansic: 89; sh: 4; makefile: 4
file content (24 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Antonio Terceiro <terceiro@debian.org>
Date: Thu, 4 Nov 2021 10:14:30 -0300
Subject: gemspec: drop git usage

---
 debug_inspector.gemspec | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/debug_inspector.gemspec b/debug_inspector.gemspec
index a4d88ba..bb29beb 100644
--- a/debug_inspector.gemspec
+++ b/debug_inspector.gemspec
@@ -25,9 +25,8 @@ TXT
   spec.metadata["source_code_uri"] = "https://github.com/banister/debug_inspector"
   spec.metadata["changelog_uri"] = "https://github.com/banister/debug_inspector/releases"
 
-  spec.files         = Dir.chdir(File.expand_path('..', __FILE__)) do
-    `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|bin)/}) }
-  end
+  spec.files         = Dir.glob('**/*').reject { |f| f.match(%r{^(test|bin)/}) }
+  spec.files        -= Dir.glob('debian/**/*')
 
   spec.require_paths = ["lib"]