File: 0002-gemspec-remove-git-usage.patch

package info (click to toggle)
ruby-fog-libvirt 0.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 512 kB
  • sloc: ruby: 2,595; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 672 bytes parent folder | download
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: Fri, 14 Oct 2016 20:13:48 -0300
Subject: gemspec: remove git usage
Forwarded: not-needed

---
 fog-libvirt.gemspec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/fog-libvirt.gemspec
+++ b/fog-libvirt.gemspec
@@ -41,7 +41,7 @@
   s.add_development_dependency("yard")
 
   # Let's not ship dot files and gemfiles
-  git_files = `git ls-files`.split("\n")
+  git_files = Dir.glob('**/*') - Dir.glob('debian/**/*')
   s.files = git_files.delete_if{ |f| f =~ /^\..*/ || f =~ /^gemfiles\/*/ }
-  s.test_files = `git ls-files -- {spec,tests}/*`.split("\n")
+  s.test_files = Dir.glob('{spec,tests}/**/*')
 end