File: patch-use-of-git-in-gemspec.patch

package info (click to toggle)
ruby-public-suffix 6.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 336 kB
  • sloc: ruby: 1,425; makefile: 10
file content (19 lines) | stat: -rw-r--r-- 601 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
Description: don't use git in gemspecs
Author: Hans-Christoph Steiner <hans@eds.org>
Last-Update: 2025-03-19
Forwarded: not-needed
--- a/public_suffix.gemspec
+++ b/public_suffix.gemspec
@@ -23,9 +23,10 @@
   }
 
   s.files = Dir.chdir(__dir__) do
-    `git ls-files -z`.split("\x0").reject do |f|
+    Dir.glob("**/*").reject do |f|
       (File.expand_path(f) == __FILE__) ||
-        f.start_with?(*%w[bin/ test/ .git .rubocop Gemfile Rakefile])
+        File.directory?(f) ||
+        f.start_with?(*%w[bin debian test .git .rubocop Gemfile Rakefile])
     end
   end
   s.require_paths = ["lib"]