File: 0006-gemspec-drop-git-usage.patch

package info (click to toggle)
ruby-rmagick 2.16.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,400 kB
  • ctags: 2,291
  • sloc: ansic: 17,146; ruby: 13,758; sh: 28; makefile: 12
file content (21 lines) | stat: -rw-r--r-- 739 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Antonio Terceiro <terceiro@debian.org>
Date: Sat, 3 Dec 2016 19:10:09 -0200
Subject: gemspec: drop git usage

---
 rmagick.gemspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rmagick.gemspec b/rmagick.gemspec
index d8d7f2d..fed816d 100644
--- a/rmagick.gemspec
+++ b/rmagick.gemspec
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
   s.homepage = 'https://github.com/rmagick/rmagick'
   s.license = 'MIT'
 
-  tracked_files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
+  tracked_files = Dir['**/*'] - Dir['debian/**/*']
   file_exclusion_regex = %r{(\Alib/rvg/to_c.rb)}
   files         = tracked_files.reject{|file| file[file_exclusion_regex] }
   test_files    = files.grep(%r{^(test|spec|features)/})