File: 0001-updating-git-in-gemspec.patch

package info (click to toggle)
ruby-rqrcode-core 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 328 kB
  • sloc: ruby: 1,346; sh: 4; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 713 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Updating git files in gemspec
Author: Samyak Jain <samyak.jn11@gmail.com>
Bug-Debian: https://bugs.debian.org/943746

---

--- a/rqrcode_core.gemspec
+++ b/rqrcode_core.gemspec
@@ -21,9 +21,7 @@ Gem::Specification.new do |spec|
     "changelog_uri" => "https://github.com/whomwah/rqrcode_core/blob/main/CHANGELOG.md"
   }
 
-  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("**/*").select {|v| v !~ /^(test|spec|features|debian)/}
   spec.bindir = "exe"
   spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
   spec.require_paths = ["lib"]