File: no-git-in-gemspec.patch

package info (click to toggle)
ruby-sorted-set 1.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 136 kB
  • sloc: ruby: 114; makefile: 4; sh: 4
file content (18 lines) | stat: -rw-r--r-- 736 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: remove usage of git in gemspec
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2021-10-14
Forwarded: no

--- a/sorted_set.gemspec
+++ b/sorted_set.gemspec
@@ -16,9 +16,7 @@
 
   # 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.
-  spec.files         = Dir.chdir(File.expand_path('..', __FILE__)) do
-    `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
-  end
+  spec.files         = Dir.glob('**/*').filter { |f| f !~ /^debian/ }
   spec.bindir        = "exe"
   spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
   spec.require_paths = ["lib"]