File: 0001-Remove-git-usage-in-gemspec.patch

package info (click to toggle)
ruby-perfect-toml 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 224 kB
  • sloc: ruby: 1,929; makefile: 4
file content (25 lines) | stat: -rw-r--r-- 933 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
22
23
24
25
From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil@debian.org>
Date: Fri, 28 Nov 2025 14:24:42 +0100
Subject: Remove git usage in gemspec

---
 perfect_toml.gemspec | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/perfect_toml.gemspec b/perfect_toml.gemspec
index 8cc818b..e3b75f1 100644
--- a/perfect_toml.gemspec
+++ b/perfect_toml.gemspec
@@ -23,11 +23,7 @@ END
 
   # 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|travis|circleci)|appveyor)})
-    end
-  end
+  spec.files = %w{lib/perfect_toml.rb}
   spec.bindir = "exe"
   spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
   spec.require_paths = ["lib"]