File: no-git-in-gemspec.patch

package info (click to toggle)
ruby-ethon 0.16.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 636 kB
  • sloc: ruby: 5,402; makefile: 6
file content (17 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Do not use git in gemspec
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2021-11-22
Forwarded: no

--- a/ethon.gemspec
+++ b/ethon.gemspec
@@ -20,7 +20,7 @@
 
   s.add_dependency('ffi', ['>= 1.15.0'])
 
-  s.files        = `git ls-files`.split("\n")
-  s.test_files   = `git ls-files -- spec/*`.split("\n")
+  s.files        = Dir.glob("**/*").reject { |f| f =~ /^debian/ }
+  s.test_files   = Dir.glob("spec/**/*")
   s.require_path = 'lib'
 end