File: 0001-remove-git-from-gemspec.patch

package info (click to toggle)
ruby-jekyll-toc 0.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 244 kB
  • sloc: ruby: 912; makefile: 9
file content (28 lines) | stat: -rw-r--r-- 927 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
23
24
25
26
27
28
From: Daniel Leidert <dleidert@debian.org>
Date: Thu, 14 May 2020 15:03:35 +0200
Subject: Don't run git in gemspec

Avoid to run git and use pure Ruby instead.

Forwarded: not-needed
---
 jekyll-toc.gemspec | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/jekyll-toc.gemspec b/jekyll-toc.gemspec
index 0540ccb..b4f148a 100644
--- a/jekyll-toc.gemspec
+++ b/jekyll-toc.gemspec
@@ -20,11 +20,7 @@ Gem::Specification.new do |spec|
 
   # Specify which files should be added to the gem when it is released.
   # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
-  spec.files = Dir.chdir(__dir__) do
-    `git ls-files -z`.split("\x0").reject do |f|
-      (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
-    end
-  end
+  spec.files = Dir.glob("**/*").select {|v| v !~ /^debian/}
 
   spec.required_ruby_version = '>= 2.6'