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"
