File: git-in-gemspecs.patch

package info (click to toggle)
ruby-httparty 0.24.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 964 kB
  • sloc: ruby: 7,521; xml: 425; sh: 35; makefile: 14
file content (22 lines) | stat: -rw-r--r-- 828 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
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