From: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Date: Thu, 30 Nov 2023 00:19:53 +0100
Subject: Remove git ls-files usage from gemspec file

Origin: other
Last-Update: 2022-01-06

Last-Update: 2022-01-06
---
 pygments.rb.gemspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pygments.rb.gemspec b/pygments.rb.gemspec
index da7f6cd..050a474 100644
--- a/pygments.rb.gemspec
+++ b/pygments.rb.gemspec
@@ -28,5 +28,5 @@ Gem::Specification.new do |s|
   s.add_development_dependency 'rubocop', '~> 1.28.2'
   s.add_development_dependency 'test-unit', '~> 3.6.0'
 
-  s.files = `git ls-files -z`.split("\0").reject { |f| File.symlink?(f) }
+  s.files = (Dir.glob('**/*', File::FNM_DOTMATCH) - Dir.glob('debian/**/*', File::FNM_DOTMATCH)).reject { |f| File.directory?(f) }
 end
