File: 0004-avoid-git-call-in-gemspec.patch

package info (click to toggle)
ruby-mocha 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,644 kB
  • sloc: ruby: 12,310; javascript: 499; makefile: 14
file content (19 lines) | stat: -rw-r--r-- 567 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Lucas Nussbaum <lucas@debian.org>
Date: Thu, 29 Dec 2022 14:07:57 +0100
Subject: avoid git call in gemspec

---
 mocha.gemspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mocha.gemspec
+++ b/mocha.gemspec
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
   s.email = 'mocha-developer@googlegroups.com'
 
   s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
-    `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(docs|test)/}) }
+    Dir.glob('**/*')
   end
   s.files.delete('.circleci/config.yml')
   s.files.delete('.gitignore')