Description: don't use git in gemspecs
Origin: vendor
Forwarded: no
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2026-02-10

--- a/httparty.gemspec
+++ b/httparty.gemspec
@@ -23,10 +23,10 @@
   # If this line is removed, all hard partying will cease.
   s.post_install_message = "When you HTTParty, you must party hard!"

-  all_files = `git ls-files`.split("\n")
-  test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+  all_files = Dir.glob("**/*").select {|v| v !~ /^debian/}
+  test_files = all_files.select {|v| v =~ /^(test|spec|features)/}

   s.files         = all_files - test_files
-  s.executables   = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
+  s.executables   = all_files.select {|v| v =~ /^bin\//}.map { |f| File.basename(f) }
   s.require_paths = ["lib"]
 end
