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

package info (click to toggle)
ruby-mocha 2.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,540 kB
  • sloc: ruby: 11,899; javascript: 477; makefile: 14
file content (21 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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(-)

diff --git a/mocha.gemspec b/mocha.gemspec
index 5d3caab..33ce06a 100644
--- a/mocha.gemspec
+++ b/mocha.gemspec
@@ -13,7 +13,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')