File: Dont-run-git-in-gemspec.patch

package info (click to toggle)
ruby-html-proofer 3.19.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,040 kB
  • sloc: ruby: 3,203; sh: 9; makefile: 4; javascript: 1; php: 1
file content (22 lines) | stat: -rw-r--r-- 1,150 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Daniel Leidert <dleidert@debian.org>
Date: Tue, 7 Sep 2021 00:39:39 +0200
Subject: Don't run git in gemspec

Forwarded: not-needed
---
 html-proofer.gemspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: ruby-html-proofer/html-proofer.gemspec
===================================================================
--- ruby-html-proofer.orig/html-proofer.gemspec
+++ ruby-html-proofer/html-proofer.gemspec
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
   gem.summary       = %(A set of tests to validate your HTML output. These tests check if your image references are legitimate, if they have alt tags, if your internal links are working, and so on. It's intended to be an all-in-one checker for your documentation output.)
   gem.homepage      = "https://github.com/gjtorikian/html-proofer"
   gem.license       = "MIT"
-  all_files         = %x(git ls-files -z).split("\x0")
+  all_files         = Dir.glob("**/*").grep_v(%r{^(debian|script)/})
   gem.files         = all_files.grep(%r{^(bin|lib)/})
   gem.executables   = all_files.grep(%r{^bin/}) { |f| File.basename(f) }
   gem.test_files    = gem.files.grep(%r{^(spec)/})