File: remove-git-from-gemspec.patch

package info (click to toggle)
ruby-redis-client 0.27.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,108 kB
  • sloc: ansic: 7,517; ruby: 5,684; makefile: 246; sh: 123
file content (22 lines) | stat: -rw-r--r-- 883 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
Description: Drop usage of Git in the gemspec file
Author: Simon Quigley <tsimonq2@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-03-09
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/redis-client.gemspec
+++ b/redis-client.gemspec
@@ -22,11 +22,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.
   gemspec = File.basename(__FILE__)
-  spec.files = Dir.chdir(File.expand_path(__dir__)) do
-    `git ls-files -z`.split("\x0").reject do |f|
-      (f == gemspec) || f.start_with?(*%w[bin/ hiredis-client/ test/ benchmark/ .git .rubocop Gemfile Rakefile])
-    end
-  end
+  spec.files = Dir.glob("**/*")
   spec.require_paths = ["lib"]
 
   spec.add_runtime_dependency "connection_pool"